Skip to Content
API referenceConversations

Update Inbox Conversation

PATCH
/api/v1/engage-inbox/conversations/{conversation_id}

Required scope: conversations:write

Authorization

headerAuthorizationBearer <luso8_sk_live_<40 characters>>

A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.

Path Parameters

conversation_id*Conversation Id

Request Body

application/json
  1. body
contact_id?string|null
status?|null
priority?|null
subject?string|null
assigned_user_id?string|null
ai_agent_id?string|null
workspace_id?string|null
is_starred?boolean|null
tags?array<string>|null
extra_data?|null

Response Body

Successful Response

application/json
  1. response

Conversation plus two derived fields:

  • last_read_by_contact_at: the latest time the customer read one of our messages (WhatsApp / Messenger / Instagram read receipts), for "Seen";
  • campaign_status: the linked campaign's status (active, completed, archived, ...), null when the thread has no campaign, so threads of finished campaigns can be tagged.
channel*EngageChannel
Value in"email""chat""sms""linkedin""whatsapp""whatsapp_call""voice_call""ai_call""meeting""messenger""instagram"
subject?string|null
status?EngageConversationStatus
Default"open"
Value in"open""pending""snoozed""resolved""archived"
priority?EngageConversationPriority
Default"normal"
Value in"low""normal""high""urgent"
contact_id?string|null
deal_id?string|null
campaign_id?string|null
workspace_id?string|null
assigned_user_id?string|null
ai_agent_id?string|null
tags?array<string>|null
extra_data?|null
id*Id
organization_id*Organization Id
is_starred?Is Starred
Defaultfalse
unread_count?Unread Count
Default0
last_message_at?|null
last_message_preview?string|null
external_thread_id?string|null
created_at*Created At
Formatdate-time
updated_at?|null
contact?|null
last_read_by_contact_at?|null
campaign_status?string|null
Example Request
curl -X PATCH 'https://api.luso8.rexplore.ai/api/v1/engage-inbox/conversations/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "channel": "email",  "subject": "string",  "status": "open",  "priority": "low",  "contact_id": "string",  "deal_id": "string",  "campaign_id": "string",  "workspace_id": "string",  "assigned_user_id": "string",  "ai_agent_id": "string",  "tags": [    "string"  ],  "extra_data": {},  "id": "string",  "organization_id": "string",  "is_starred": false,  "unread_count": 0,  "last_message_at": "2019-08-24T14:15:22Z",  "last_message_preview": "string",  "external_thread_id": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "contact": {    "id": "string",    "first_name": "string",    "last_name": "string",    "email": "string",    "phone": "string",    "company": "string"  },  "last_read_by_contact_at": "2019-08-24T14:15:22Z",  "campaign_status": "string"}