Regenerate direct hash for a webchat widget.
Regenerates the direct hash used for anonymous visitor authentication on the specified widget. If no direct hash exists, one is created.
Path parameters
The unique identifier of the widget. Returned from the POST /widgets response.
Response
Direct hash regenerated successfully.
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"customer_id": "7c4d2f3a-1b8e-4f5c-9a6d-3e2f1a0b4c5d",
"name": "Support Widget",
"status": "active",
"session_flow_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"message_flow_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"session_idle_timeout": 1800,
"theme_config": {
"primary_color": "#1a73e8",
"secondary_color": "#f5f5f5",
"header_background_color": "#1a73e8",
"header_text_color": "#ffffff",
"logo_url": "https://cdn.example.com/logo.png",
"position": "bottom_right",
"theme_mode": "light",
"header_title": "Support",
"header_subtitle": "We usually reply in a few minutes",
"connecting_indicator_enabled": true,
"connecting_indicator_text": "Connecting…",
"typing_indicator_enabled": true,
"border_radius": "rounded",
"font_size": "default"
},
"direct_hash": "direct.a1b2c3d4e5f6",
"tm_create": "2026-01-15T09:30:00.000000Z",
"tm_update": "2026-01-15T09:30:00.000000Z",
"tm_delete": "2026-01-15T09:30:00.000000Z"
}Changes
Changed in 6 of the 54 revisions of this API.315
- ○
added the optional property
theme_config/border_radiusto the response with the200statusresponse-optional-property-added
- ○
added the optional property
theme_config/connecting_indicator_enabledto the response with the200statusresponse-optional-property-added
- ○
added the optional property
theme_config/connecting_indicator_textto the response with the200statusresponse-optional-property-added
- ○
added the optional property
theme_config/font_sizeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
theme_config/typing_indicator_enabledto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
theme_config/header_background_colorto the response with the200statusresponse-optional-property-added
- ○
added the optional property
theme_config/header_subtitleto the response with the200statusresponse-optional-property-added
- ○
added the optional property
theme_config/header_text_colorto the response with the200statusresponse-optional-property-added
- ○
added the optional property
theme_config/header_titleto the response with the200statusresponse-optional-property-added
- ○
added the optional property
theme_config/secondary_colorto the response with the200statusresponse-optional-property-added
- ○
added the optional property
theme_config/theme_modeto the response with the200statusresponse-optional-property-added
- ○
- ▲
removed the required property
welcome_messagefrom the response with the200statusresponse-required-property-removed
- ▲
- ▲
removed the required property
flow_idfrom the response with the200statusresponse-required-property-removed
- ○
added the optional property
direct_hashto the response with the200statusresponse-optional-property-added
- ○
added the optional property
message_flow_idto the response with the200statusresponse-optional-property-added
- ○
added the required property
session_flow_idto the response with the200statusresponse-required-property-added
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲