Skip to Content
API referenceConversations

Send Support Message

POST
/api/v1/support-chat/conversations/{conversation_id}/messages

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
content?Content
Default""
sender_type?MessageSenderType
Default"agent"
Value in"customer""agent""ai""system"
message_type?MessageType
Default"text"
Value in"text""note""attachment""system"
is_internal?Is Internal
Defaultfalse
attachments?array<>|null
sender_agent_id?string|null
ai_metadata?|null

Response Body

Successful Response

application/json
  1. response
id*Id
conversation_id*Conversation Id
sender_type*MessageSenderType
Value in"customer""agent""ai""system"
sender_user_id?string|null
sender_agent_id?string|null
sender_contact_id?string|null
message_type*MessageType
Value in"text""note""attachment""system"
content*Content
attachments?array<>|null
is_internal?Is Internal
Defaultfalse
ai_metadata?|null
read_by?array<string>|null
delivery_status?string|null
extra_data?|null
sender?|null
created_at*Created At
Formatdate-time
updated_at?|null
edited_at?|null
Example Request
curl -X POST 'https://api.luso8.rexplore.ai/api/v1/support-chat/conversations/string/messages' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "conversation_id": "string",  "sender_type": "customer",  "sender_user_id": "string",  "sender_agent_id": "string",  "sender_contact_id": "string",  "message_type": "text",  "content": "string",  "attachments": [    {}  ],  "is_internal": false,  "ai_metadata": {},  "read_by": [    "string"  ],  "delivery_status": "string",  "extra_data": {},  "sender": {    "id": "string",    "name": "string",    "email": "string",    "avatar_url": "string",    "type": "customer"  },  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "edited_at": "2019-08-24T14:15:22Z"}