List web chats
SDK platic.webchats.list()
List all workspace web chats without pagination. Each uses the same structure as get a web chat.
Example
curl https://api.platic.ai/v1/webchats \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.webchats.list(); Query parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
workspace | string | Only if your credential has several workspaces: which one to list them from | — |
Response
data is the list of web chats.
{
"status": "success",
"message": "1 web chat",
"data": [
{
"id": "wc-7Hq2LmN4pR8sT1vX",
"name": "Acme Store",
"agentId": "tVKljCHCNiebQdasHeit",
"mode": "both",
"allowedDomains": ["example.com"],
"config": {
"enabled": true,
"availability": { "status": "online" }
},
"published": true,
"hasUnpublishedChanges": true,
"embed": {
"publicKey": "wc_pub_7Hq2LmN4pR8sT1vX",
"script": "<script\n src=\"https://chat.platica.mx/widget.js\"\n data-webchat=\"wc_pub_7Hq2LmN4pR8sT1vX\"\n defer>\n</script>",
"inline": "<div id=\"platica-chat\"></div>\n\n<script\n src=\"https://chat.platica.mx/widget.js\"\n data-webchat=\"wc_pub_7Hq2LmN4pR8sT1vX\"\n data-target=\"#platica-chat\"\n defer>\n</script>",
"pageUrl": "https://chat.platica.mx/chat?webchat=wc_pub_7Hq2LmN4pR8sT1vX"
},
"health": { "state": "ok", "reason": null, "since": "2026-11-12T18:30:00.000Z" },
"creationDate": "2026-11-12T18:30:00.000Z",
"lastUpdate": "2026-11-12T19:05:00.000Z",
"nextStep": "It has changes to config that are not live yet: publish them with POST /v1/webchats/wc-7Hq2LmN4pR8sT1vX/publish. Paste embed.script in the site's HTML, before </body>; embed.inline puts the chat inside a container of the page instead. Share embed.pageUrl, or open it to try the chat."
}
],
"nextStep": "Each web chat says what follows in its own nextStep. To create another, use POST /v1/webchats."
} The example shows only two parts of config; the response has all twelve. The fields of each web chat are in get a web chat.
Response fields
| Field | Type | Description |
|---|---|---|
data | object[] | The workspace's web chats |
nextStep | string | English text that says what comes next. Each web chat also has its own |
If there are no web chats, data is empty and nextStep tells you how to create one.
Notes
- Web chats also appear in list channels, with the same
id, together with the other channels. - A workspace API key is enough, or an OAuth token of a person with access to Integrations.