Skip to Content
Conversations

Hand the conversation to the AI or to a person

POST
/conversations/{conversationId}/handoff

to: ai is the same as setting the AI mode (mode, default auto_reply). to: human takes it from the AI and gives it to assignee_id, or to the team's pool with null (the conversation is unassigned); giving it to someone else needs conversations.assign. A handoff record is written (reason manual), the new assignee is notified, and the change is recorded in the activity timeline and the audit log.

Scope: conversations.reply. Rate limit: 300 requests per minute per API key.

Authorization

apiKey conversations.reply
headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: conversations.reply

Path Parameters

conversationId*string
Formatuuid

Request Body

application/json
  1. body
assignee_id?|

With to: human: the person, or null for the team's pool.

Formatuuid
mode?string

With to: ai; default auto_reply.

Value in"auto_reply""awaiting_approval"
note?string

Why (kept with the handoff).

Lengthlength <= 500
to*string
Value in"ai""human"

Response Body

The conversation with its new owner

application/json
  1. response
data*
meta*
curl -X POST 'https://app.messora.tech/api/v1/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/handoff' \  -H 'Content-Type: application/json' \  -d '{  "mode": "auto_reply",  "to": "ai"}'
Example Response
{  "data": {    "ai_mode": "suggest",    "ai_profile_id": "019a8c2e-4f1b-7a20-9c3d-5e7a10000020",    "ai_status": "idle",    "ai_status_detail": null,    "assignee": {      "id": "019a8c2e-4f1b-7a07-9c3d-5e7a10000007",      "name": "Mehmet Kaya"    },    "closed_at": null,    "contact": {      "ai_disabled": false,      "id": "019a8c2e-4f1b-7a09-9c3d-5e7a10000009",      "name": "Ayşe Yılmaz",      "opted_out": false,      "phone": "+905321234567",      "profile_name": "Ayşe"    },    "created_at": "2026-11-20T12:00:00Z",    "id": "019a8c2e-4f1b-7a0e-9c3d-5e7a1000000e",    "last_inbound_at": "2026-11-25T08:41:00Z",    "last_message": {      "body": "Siparişim ne zaman gelir?",      "direction": "inbound",      "status": "received",      "type": "text"    },    "last_message_at": "2026-11-25T08:41:00Z",    "owner_type": "human",    "pending_handoff_id": null,    "phone_number": {      "account_id": "019a8c2e-4f1b-7a0f-9c3d-5e7a1000000f",      "display_phone_number": "+90 212 555 01 23",      "id": "019a8c2e-4f1b-7a04-9c3d-5e7a10000004",      "verified_name": "Messora Demo"    },    "status": "open",    "unread_count": 2,    "window_expires_at": "2026-11-26T08:41:00Z",    "window_open": true  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}