Sets an SMS chat to ended. Later texts from the same person start a new chat with the number's inbound agent. Beyond Retell
Request#
Path parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
chat_id |
string | Yes | The SMS chat. |
Example request#
curl -X POST "https://api.tried.com.au/end-sms-chat/chat_7e8f9a0b1c2d3e4f5a6b7c8d" \
-H "Authorization: Bearer $TRIED_API_KEY"const res = await fetch("https://api.tried.com.au/end-sms-chat/chat_7e8f9a0b1c2d3e4f5a6b7c8d", {
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/end-sms-chat/chat_7e8f9a0b1c2d3e4f5a6b7c8d",
headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
data = res.json()Response#
200 OK with the SMS chat object. messages is empty in this response; use Get SMS chat for them.
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 |
No SMS chat with this ID in the workspace. |
429 |
Rate limit exceeded. See Rate limits. |
See Errors for the body format.