Skip to content
QwryAI
Documentation
Pages

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:

ToToolApplies
Pause AI replies, so your team can step intoggle_conversation_pause with "paused": trueAfter you apply its review
Resume AI repliestoggle_conversation_pause with "paused": falseAfter you apply its review
End the conversationresolve_conversationAt once

This page shows toggle_conversation_pause. Resolving a conversation is below.

POSThttps://api.qwryai.com/public/v1/tools/toggle_conversation_pause

Authentication

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

NameTypeRequiredDescription
chatbotIdstringYesThe agent's id, from List agents.
conversationIdstringYesThe conversation's _id from query_conversations or search_conversations.
pausedbooleanYestrue pauses AI replies; false turns them back on.

Request example

Bash
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'

Response

The tool returns a review:

JSON
{
  "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:

JSON
{
  "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.

NameTypeRequiredDescription
chatbotIdstringYesThe agent's id.
conversationIdstringYesThe conversation's _id.
reasonstringNoWhy it was resolved, up to 500 characters.
Bash
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"
  }'
JSON
{
  "success": true,
  "data": { "conversationId": "CONVERSATION_RECORD_ID", "resolved": true }
}

Errors

HTTP statusCodeWhen
400INVALID_ARGUMENTSconversationId 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.
400CHATBOT_ID_REQUIREDThe body has no valid chatbotId.
401API_KEY_REQUIRED / INVALID_API_KEYNo credential, or an unknown, deleted or expired one.
403INSUFFICIENT_PERMISSIONThe key doesn't hold Manage conversations and helpdesk.
403CREATOR_NOT_ACTIVEResolving: the member who created the key is no longer in the workspace.
404CHATBOT_NOT_FOUNDNo agent with that chatbotId in your workspace.
404CONVERSATION_NOT_FOUNDResolving: no conversation with that _id on this agent.
409STALE_REVIEW / REVIEW_EXPIREDApplying: the conversation changed after the review, or 15 minutes passed. Call the tool again.
429INTEGRATION_RATE_LIMIT_EXCEEDEDMore than 2,000 requests in 15 minutes.

See Error Handling for every code.

Explore the documentation