Admin APIConversations
Get a conversation
The conversation with its internal notes, the matched customer and their latest orders. Messages are paged separately.
Authorization
bearer_auth AuthorizationBearer <token>
Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
store_id*string
Store id
Format
uuidconversation_id*string
Conversation id
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"assignee_name": "string",
"conversation": {
"assignee_user_id": "e942d24d-8cee-4fa2-bf68-164509e32e2f",
"attributes": {},
"bot_active": true,
"channel_id": "bbe8aa76-a4bb-46f6-a785-df8e831cc459",
"channel_kind": "web",
"contact_email": "string",
"contact_name": "string",
"contact_phone": "string",
"created_at": "2019-08-24T14:15:22Z",
"csat_comment": "string",
"csat_score": 0,
"customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
"external_id": "string",
"handed_over_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"last_message_at": "2019-08-24T14:15:22Z",
"last_message_preview": "string",
"last_message_sender": null,
"priority": "low",
"resolved_at": "2019-08-24T14:15:22Z",
"snoozed_until": "2019-08-24T14:15:22Z",
"status": "open",
"store_id": "7fe87115-950c-4ae8-bd7e-970406bc9ac0",
"tags": [
"string"
],
"unread_for_agents": 0,
"unread_for_visitor": 0,
"updated_at": "2019-08-24T14:15:22Z",
"visitor_id": "string"
},
"customer": null,
"display_name": "string",
"notes": [
{
"author_name": "string",
"author_user_id": "13209de9-6c50-42f7-a1fd-5bf87d7b9225",
"conversation_id": "cc71b11a-25cd-4c2d-9950-df2cc38e3407",
"created_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"text": "string"
}
],
"recent_orders": [
{
"created_at": "2019-08-24T14:15:22Z",
"fulfillment_status": "unfulfilled",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"number": "string",
"status": "draft",
"total_cents": 0
}
],
"reply_window_expires_at": "2019-08-24T14:15:22Z"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}