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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the conversation to end
"chat_1234567890"
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.
"user_1234567890"