For the complete documentation index, see llms.txt. Any page on this site can be fetched as Markdown by appending .md to its URL.

Voice agentsChat widgets

Update a chat widget

PUT
/v1/agent-media/chat-widgets/{widgetId}

Replace a widget's configuration. Send the whole configuration, not a partial one: an optional field you omit is cleared, not carried over.

The publicKey is never changed by an update, and one sent in the body is ignored — a snippet already installed on a customer's site has to keep working across an ordinary save.

Authorization

bearerAuth
AuthorizationBearer <token>

A Tandem bearer token. Requests are scoped to the organization the token belongs to; no organization header is required.

In: header

Path Parameters

widgetId*string

The chat widget's unique ID.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/agent-media/chat-widgets/string" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "widget": {    "id": "string",    "publicKey": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "name": "string",    "displayName": "string",    "agentId": "string",    "workflowId": "string",    "description": "",    "avatarUrl": "string",    "showAvatar": true,    "position": "bottom-right",    "launcherIcon": "bubble",    "launcherIconUrl": "string",    "brandColor": "string",    "greeting": "string",    "allowedOrigins": []  }}
{  "error": "string",  "errors": [    {      "field": "string",      "message": "string"    }  ]}
{  "error": "string",  "message": "string",  "limit": 0,  "length": 0,  "reason": "string"}
{  "error": "string",  "message": "string",  "limit": 0,  "length": 0,  "reason": "string"}