Skip to Content
API referenceConversations

Create Support Conversation

POST
/api/v1/support-chat/conversations

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.

Request Body

application/json
  1. body
subject?string|null
channel?ConversationChannel
Default"manual"
Value in"widget""email""whatsapp""api""manual""messenger""instagram"
priority?ConversationPriority
Default"normal"
Value in"low""normal""high""urgent"
folder_id?string|null
category_id?string|null
customer_id?string|null
assigned_agent_id?string|null
assigned_user_id?string|null
tags?array<string>|null
metadata?|null
whatsapp_account_id?string|null
channel_thread_key?string|null
customer?|null
initial_message?string|null

Response Body

Successful Response

application/json
  1. response
id*Id
organization_id*Organization Id
subject?string|null
status*ConversationStatus
Value in"open""assigned""pending""resolved""closed"
priority*ConversationPriority
Value in"low""normal""high""urgent"
channel*ConversationChannel
Value in"widget""email""whatsapp""api""manual""messenger""instagram"
customer_id?string|null
whatsapp_account_id?string|null
meta_account_id?string|null
channel_thread_key?string|null
folder_id?string|null
category_id?string|null
assigned_agent_id?string|null
assigned_user_id?string|null
tags?array<string>|null
message_count?Message Count
Default0
unread_count?Unread Count
Default0
last_message_preview?string|null
last_message_at?|null
last_message_sender?|null
csat_score?number|null
first_response_at?|null
created_at*Created At
Formatdate-time
updated_at?|null
resolved_at?|null
closed_at?|null
extra_metadata?|null
transferred_to?|null
ai_paused?Ai Paused
Defaultfalse
ai_pause_reason?string|null
needs_human?Needs Human
Defaultfalse
handoff?|null
customer?|null
folder?|null
category?|null
participants?array<>|null
assigned_user_name?string|null
Example Request
curl -X POST 'https://api.luso8.rexplore.ai/api/v1/support-chat/conversations' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "organization_id": "string",  "subject": "string",  "status": "open",  "priority": "low",  "channel": "widget",  "customer_id": "string",  "whatsapp_account_id": "string",  "meta_account_id": "string",  "channel_thread_key": "string",  "folder_id": "string",  "category_id": "string",  "assigned_agent_id": "string",  "assigned_user_id": "string",  "tags": [    "string"  ],  "message_count": 0,  "unread_count": 0,  "last_message_preview": "string",  "last_message_at": "2019-08-24T14:15:22Z",  "last_message_sender": "customer",  "csat_score": 0,  "first_response_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "resolved_at": "2019-08-24T14:15:22Z",  "closed_at": "2019-08-24T14:15:22Z",  "extra_metadata": {},  "transferred_to": {},  "ai_paused": false,  "ai_pause_reason": "string",  "needs_human": false,  "handoff": {},  "customer": {    "name": "string",    "email": "string",    "phone": "string",    "company": "string",    "job_title": "string",    "location": "string",    "timezone": "string",    "language": "string",    "avatar_url": "string",    "custom_attributes": {},    "tags": [      "string"    ],    "id": "string",    "organization_id": "string",    "browser": "string",    "os": "string",    "device": "string",    "ip_address": "string",    "current_page_url": "string",    "contact_id": "string",    "first_seen_at": "2019-08-24T14:15:22Z",    "last_seen_at": "2019-08-24T14:15:22Z",    "total_conversations": 0,    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "folder": {    "name": "string",    "description": "string",    "color": "string",    "icon": "string",    "sort_order": 0,    "id": "string",    "organization_id": "string",    "is_default": false,    "conversation_count": 0,    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "category": {    "name": "string",    "description": "string",    "color": "string",    "icon": "string",    "sort_order": 0,    "id": "string",    "organization_id": "string",    "is_active": true,    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "participants": [    {      "id": "string",      "conversation_id": "string",      "user_id": "string",      "user_name": "string",      "user_email": "string",      "role": "owner",      "joined_at": "2019-08-24T14:15:22Z",      "last_read_at": "2019-08-24T14:15:22Z"    }  ],  "assigned_user_name": "string"}