End a conversation
Conversations
End a conversation
End a conversation. This endpoint allows agents to mark a conversation as resolved. If userId is not provided, the system will use the agent assigned to the chat, or if no agent is assigned, it will use the workspace owner associated with the API token.
POST
End a conversation
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Unique identifier of the conversation to end
Example:
"chat_1234567890"
Body
application/json
Optional user ID who is ending the conversation
ID of the user ending the conversation (optional). If not provided, uses the agent assigned to the chat, or the workspace owner if no agent is assigned.
Example:
"user_1234567890"

