Copies the chat agent's current configuration into a new published version. Versions are numbered from 1. The editable chat agent is unchanged, and chats keep using it; published versions are snapshots you can view and restore.
Request#
Path parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
chat_agent_id |
string | Yes | The chat agent. |
Example request#
curl -X POST "https://api.tried.com.au/publish-chat-agent/chat_agent_6a7b8c9d0e1f2a3b4c5d6e7f" \
-H "Authorization: Bearer $TRIED_API_KEY"const res = await fetch("https://api.tried.com.au/publish-chat-agent/chat_agent_6a7b8c9d0e1f2a3b4c5d6e7f", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.tried.com.au/publish-chat-agent/chat_agent_6a7b8c9d0e1f2a3b4c5d6e7f",
headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
data = res.json()Response#
201 Created
{
"chat_agent_id": "chat_agent_6a7b8c9d0e1f2a3b4c5d6e7f",
"version": 3,
"agent_name": "Bright Dental chat",
"response_engine": { "type": "retell-llm", "llm_id": "llm_9c8b7a6f5e4d3c2b1a0f9e8d" },
"post_chat_analysis_data": [],
"post_chat_analysis_model": "gpt-5.6-terra",
"webhook_url": null,
"webhook_events": ["chat_started", "chat_ended", "chat_analyzed"],
"end_chat_after_silence_ms": 3600000,
"is_published": true,
"published_timestamp": 1792310400000
}Errors#
| Status | When |
|---|---|
401 |
Missing or invalid API key. |
403 |
The key's IP allowlist or scopes reject the request. This route needs the calls scope. |
404 |
The chat agent does not exist. |
429 |
Rate limit exceeded. See Rate limits. |
See Errors for the body format.