Endpoints
Update conversation status
Pause or resume the AI in a conversation, or resolve it
Two tools change where a conversation stands, the same way the controls in the Inbox do:
| To | Tool | Applies |
|---|---|---|
| Pause AI replies, so your team can step in | toggle_conversation_pause with "paused": true | After you apply its review |
| Resume AI replies | toggle_conversation_pause with "paused": false | After you apply its review |
| End the conversation | resolve_conversation | At once |
This page shows toggle_conversation_pause. Resolving a conversation is below.
POST
https://api.qwryai.com/public/v1/tools/toggle_conversation_pauseAuthentication
Send your API key as Authorization: Bearer <api-key>, or in an x-api-key header. The key needs Manage conversations and helpdesk. See Authentication.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
chatbotId | string | Yes | The agent's id, from List agents. |
conversationId | string | Yes | The conversation's _id from query_conversations or search_conversations. |
paused | boolean | Yes | true pauses AI replies; false turns them back on. |
Request example
curl -X POST 'https://api.qwryai.com/public/v1/tools/toggle_conversation_pause' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"chatbotId": "YOUR_AGENT_ID",
"conversationId": "CONVERSATION_RECORD_ID",
"paused": true
}'
# Apply the review it returns
curl -X POST 'https://api.qwryai.com/public/v1/reviews/REVIEW_ID/apply' \
-H 'Authorization: Bearer YOUR_API_KEY'const API = "https://api.qwryai.com/public/v1";
const headers = { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" };
const { data: review } = await fetch(`${API}/tools/toggle_conversation_pause`, {
method: "POST",
headers,
body: JSON.stringify({ chatbotId: "YOUR_AGENT_ID", conversationId: "CONVERSATION_RECORD_ID", paused: true }),
}).then((r) => r.json());
await fetch(`${API}/reviews/${review.reviewId}/apply`, { method: "POST", headers });import requests
API = "https://api.qwryai.com/public/v1"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
review = requests.post(f"{API}/tools/toggle_conversation_pause", headers=headers, json={
"chatbotId": "YOUR_AGENT_ID",
"conversationId": "CONVERSATION_RECORD_ID",
"paused": True,
}).json()["data"]
requests.post(f"{API}/reviews/{review['reviewId']}/apply", headers=headers)Response
The tool returns a review:
{
"success": true,
"data": {
"status": "review_required",
"reviewId": "c51e8a3d-9f2b-4d60-a7c1-3e8b5d2f9a14",
"tool": "toggle_conversation_pause",
"changes": [
{ "title": "Pause AI in this conversation", "before": { "ai": "Enabled" }, "after": { "ai": "Paused" } }
],
"unchanged": [],
"expiresAt": "2026-12-01T10:15:00.000Z",
"next": "Show these changes to the user. Call apply_change with this reviewId only after they approve; the review expires in 15 minutes."
}
}Applying it within 15 minutes pauses the AI:
{
"success": true,
"data": {
"status": "succeeded",
"reviewId": "c51e8a3d-9f2b-4d60-a7c1-3e8b5d2f9a14",
"tool": "toggle_conversation_pause",
"data": { "conversationId": "CONVERSATION_RECORD_ID", "paused": true },
"receipt": { "applied": true }
}
}Resolving a conversation
resolve_conversation ends a conversation, as Resolve does in the Inbox. It applies at once, with no review.
| Name | Type | Required | Description |
|---|---|---|---|
chatbotId | string | Yes | The agent's id. |
conversationId | string | Yes | The conversation's _id. |
reason | string | No | Why it was resolved, up to 500 characters. |
curl -X POST 'https://api.qwryai.com/public/v1/tools/resolve_conversation' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"chatbotId": "YOUR_AGENT_ID",
"conversationId": "CONVERSATION_RECORD_ID",
"reason": "Address updated"
}'{
"success": true,
"data": { "conversationId": "CONVERSATION_RECORD_ID", "resolved": true }
}Errors
| HTTP status | Code | When |
|---|---|---|
| 400 | INVALID_ARGUMENTS | conversationId isn't a conversation _id on this agent, the AI is already paused or on, or the conversation is closed, assigned or queued for a teammate. |
| 400 | CHATBOT_ID_REQUIRED | The body has no valid chatbotId. |
| 401 | API_KEY_REQUIRED / INVALID_API_KEY | No credential, or an unknown, deleted or expired one. |
| 403 | INSUFFICIENT_PERMISSION | The key doesn't hold Manage conversations and helpdesk. |
| 403 | CREATOR_NOT_ACTIVE | Resolving: the member who created the key is no longer in the workspace. |
| 404 | CHATBOT_NOT_FOUND | No agent with that chatbotId in your workspace. |
| 404 | CONVERSATION_NOT_FOUND | Resolving: no conversation with that _id on this agent. |
| 409 | STALE_REVIEW / REVIEW_EXPIRED | Applying: the conversation changed after the review, or 15 minutes passed. Call the tool again. |
| 429 | INTEGRATION_RATE_LIMIT_EXCEEDED | More than 2,000 requests in 15 minutes. |
See Error Handling for every code.