---
title: "Get Public Web Widget"
method: GET
path: "/core/public/web-widgets/{id}"
tags: ["Public Web Widgets"]
---

# Get Public Web Widget

`GET /core/public/web-widgets/{id}`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/public/web-widgets/{id}`
- Auth: none declared

Return widget only if request Origin matches widget domains.

With a running experiment, `experiment` carries every variant's config
for the loader to bucket on; `variant` returns that variant's config as
`config` (an unknown key, or no running experiment, returns the widget's
own). Which variant a conversation is stamped with is decided on create.

## Path parameters

- `id` string, required

## Query parameters

- `variant` string, nullable

## Response `200`

Successful Response

- PublicWebWidget: ``GET /public/web-widgets/{id}``: the widget plus what the embed branches on.
  - `id` string, required
  - `organization_id` string, required
  - `agent_id` string, required
  - `agent_version_id` string, required
  - `domains` string[], required
  - `published` boolean, required
  - `collect_analytics` boolean
  - `config` object, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `created_by` string, nullable
  - `modified_by` string, nullable
  - `preset_id` string, nullable
  - `preset_sections` string[]
  - `identity_enabled` boolean
  - `experiment` PublicExperiment: The widget's running experiment. The loader buckets visitors with `salt`.
    - `id` string, required
    - `salt` string, required
    - `variants` PublicExperimentVariant[], required
      - `key` string, required
      - `name` string
      - `weight` integer, required
      - `config` object, required
  - `analytics_enabled` boolean
  - `agent_active` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
