---
title: "Get Widget Config"
method: GET
path: "/api/v1/public/text-widget/config"
tags: ["text-widget-public"]
---

# Get Widget Config

`GET /api/v1/public/text-widget/config`

Return public-safe widget configuration for the resolved group.

## Query parameters

- `key` string, nullable

## Headers

- `X-Widget-Key` string, nullable

## Response `200`

Successful Response

- TextWidgetConfigRead — Public-facing widget configuration. Exposes NO sensitive data.
  - `name` string, required
  - `greeting_message` string, nullable, required
  - `branding` object, nullable, required
  - `home_screen` object, nullable, required
  - `collect_fields` string[], required
  - `enabled` boolean, required
  - `production_origins` string[], required
  - `session_timeout_minutes` integer, nullable, required
  - `entries` TextWidgetGroupEntryRead[], required
    - `label` string, required
    - `icon` string, nullable
    - `description` string, nullable
    - `text_agent_id` string, uuid, required
  - `consent_config` ConsentConfig — GDPR consent configuration for the text widget. Controls the pre-chat consent gate shown to visitors.
    - `enabled` boolean
    - `consent_text` string
    - `privacy_policy_url` string, nullable
    - `privacy_policy_label` string
    - `privacy_policy_show_on_pages` string[]
    - `show_ai_disclosure` boolean
    - `ai_disclosure_text` string
    - `consent_button_label` string
    - `data_retention_days` integer, nullable
    - `company_name` string, nullable
    - `data_processor_name` string, nullable
    - `consent_version` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getanana/cleon-api/revisions/c0f54348e251/schema)
