Take over and hand back
Both return the conversation;
session.handover and session.handover_at tell you its state.
Replying with POST /conversations/{id}/messages also takes the conversation over, unless you send "handover": false. Starting a conversation with "handover": true opens it directly in handover.
Assign
GET /conversations/assigneeslists the members of your company (USR-XXXXX).PUT /conversations/{id}/assigneewith{ "user_id": "USR-XXXXX" }assigns the current session;{ "user_id": null }unassigns it.
GET /conversations?assignee=USR-XXXXX (or none).
Keep your system in sync
Subscribe a webhook toconversation.* to know when someone takes over or hands back from the Inbox, and to message.* to follow the messages.