PUT
/
chat
/
sessions
/
{chat_session_id}
/
{state}
Pause/Resume/Stop task of a chat session
curl --request PUT \
  --url https://app.nextbrowser.com/api/v1/chat/sessions/{chat_session_id}/{state} \
  --header 'Authorization: <api-key>'
{
  "success": true,
  "description": "Task and agent state changed"
}

Authorizations

Authorization
string
header
required

API key in the format 'x-api-key <your-api-key>'

Path Parameters

chat_session_id
string<uuid>
required

The UUID of the chat session

state
enum<string>
required

The desired state of the chat session

Available options:
pause,
resume,
stop

Response

Chat session state updated successfully

success
boolean
Example:

true

description
string
Example:

"Task and agent state changed"