cURL
curl --request PUT \ --url https://{api_endpoint}/v1/orchestrate/agents/{id}/embedded-chat-config \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "layout": { "primary_color": "<string>", "second_color": "<string>", "accent_color": "<string>", "theme": "<string>", "enable_text_streaming": true, "form": { "type": "<string>", "properties": { "container_id": "<string>", "width": "<string>", "height": "<string>" } } }, "is_live": true } '
{ "layout": { "primary_color": "<string>", "second_color": "<string>", "accent_color": "<string>", "theme": "<string>", "enable_text_streaming": true, "form": { "type": "<string>", "properties": { "container_id": "<string>", "width": "<string>", "height": "<string>" } } }, "is_live": true, "script": "<string>", "updated_at": "<string>" }
Create or update embedded chat config for a registered agent.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Spec for embedded chat config in.
Layout configuration
Show child attributes
Primary color in hex format
Secondary color in hex format
Accent color in hex format
Theme (light or dark)
Whether to enable text streaming
Form configuration
Type of the form (fullscreen-overlay, float, etc.)
Properties of the form
ID of the container element
Width of the chat container
Height of the chat container
Status of the embedded chat script
Successful Response
Spec for embedded chat config out.
Generated embedded chat script
Last update timestamp