Download OpenAPI specification:Download
Public REST API for the Relasi.U omnichannel chat platform. Use it to read conversations and messages, send outbound text and media messages across any connected channel (WhatsApp, Telegram, Instagram, Facebook, Email, Livechat), manage contacts, inspect channel capabilities, and manage agent session lifecycles.
Authenticate every request with an API key in the Authorization header:
Authorization: Bearer ru_live_<id>.<secret>
Create and manage keys in the dashboard under Settings → Developer / API → API Keys. The full key (including its secret) is shown only once at creation — store it securely. Each key carries a set of scopes that gate which endpoints it can call, and an optional IP allowlist.
429 Too Many Requests.Outbound webhook subscription management is managed in the dashboard under Settings → Developer / API → Webhook Endpoints, while delivery auditing lives under Settings → Webhook History. Webhook delivery payloads and events follow the specifications documented at Webhooks Guide.
Returns metadata about the API key making the request, including granted scopes. No additional scope required.
{- "app_id": "664fa18a992bc0123456789a",
- "key_id": "664fa18a992bc0123456789b",
- "name": "Zapier Integration",
- "public_id": "ru_live_abc123",
- "mode": "live",
- "scopes": [
- "messages:read",
- "messages:write",
- "conversations:read"
], - "created_at": "2026-11-03T10:00:00Z"
}Returns paginated conversations for the workspace, newest activity first.
| page | integer >= 1 Default: 1 |
| per_page | integer [ 1 .. 500 ] Default: 20 |
| last_updated_at | integer <int64> UNIX timestamp (seconds); only return conversations updated at/after this time for delta sync. |
| status | string Enum: "open" "pending" "closed" "snoozed" Filter by conversation status. |
| channel | string Enum: "whatsapp" "whatsapp_business" "telegram" "facebook" "instagram" "email" "livechat" Filter by channel type. |
| channel_id | string Filter by specific channel ID. |
| customer_id | string Filter by customer/contact ID. |
{- "current_page": 1,
- "from": 1,
- "to": 20,
- "per_page": 20,
- "last_page": 5,
- "total": 100,
- "has_next": true,
- "data": [
- {
- "id": "6710ab992bc0123456789012",
- "app_id": "664fa18a992bc0123456789a",
- "channel": "whatsapp",
- "channel_id": "6701ef992bc0123456789011",
- "external_id": "+628123456789",
- "customer_id": "670ab0992bc0123456789099",
- "status": "open",
- "created_at": "2026-11-03T09:00:00Z",
- "updated_at": "2026-11-03T10:15:00Z"
}
]
}Returns detailed information for a single conversation, including customer and channel summaries.
| id required | string Hex ObjectID of the conversation. |
{- "id": "6710ab992bc0123456789012",
- "app_id": "664fa18a992bc0123456789a",
- "channel_id": "6701ef992bc0123456789011",
- "external_id": "+628123456789",
- "customer_id": "670ab0992bc0123456789099",
- "status": "open",
- "created_at": "2026-11-03T09:00:00Z",
- "updated_at": "2026-11-03T10:15:00Z",
- "customer": {
- "id": "string",
- "name": "string",
- "phone": "string",
- "email": "string",
- "avatar_url": "string"
}, - "channel": {
- "id": "string",
- "type": "string",
- "name": "string",
- "phone_number": "string"
}
}Returns paginated messages for a specific conversation or message session.
| conversation_id | string Conversation ID. |
| message_session_id | string Optional session ID filter. |
| page | integer >= 1 Default: 1 |
| per_page | integer [ 1 .. 500 ] Default: 20 |
{- "current_page": 1,
- "from": 1,
- "to": 20,
- "per_page": 20,
- "last_page": 5,
- "total": 100,
- "has_next": true,
- "data": [
- {
- "id": "6720ab992bc0123456789033",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "message_session_id": "6715cd992bc0123456789055",
- "channel_id": "6701ef992bc0123456789011",
- "channel": "whatsapp",
- "from_user_id": null,
- "from_customer": false,
- "client_request_id": "req_msg_9821",
- "content": "Your package has shipped!",
- "message_type": "text",
- "send_state": "sent",
- "created_at": "2026-11-03T10:15:00Z",
- "updated_at": "2026-11-03T10:15:00Z"
}
]
}Returns the full record of a single message by ID.
| id required | string Hex ObjectID of the message. |
{- "id": "6720ab992bc0123456789033",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "message_session_id": "6715cd992bc0123456789055",
- "channel_id": "6701ef992bc0123456789011",
- "channel": "whatsapp",
- "from_user_id": null,
- "from_customer": false,
- "client_request_id": "req_msg_9821",
- "content": "Your package has shipped!",
- "message_type": "text",
- "send_state": "sent",
- "created_at": "2026-11-03T10:15:00Z",
- "updated_at": "2026-11-03T10:15:00Z"
}Dispatches an outbound text message into an existing conversation.
| client_request_id required | string Unique caller-supplied idempotency key. |
| conversation_id required | string |
| text required | string [ 1 .. 4000 ] characters |
| reply_to_message_id | string Optional message ID being replied to. |
| as_system | boolean Default: false Attribute message to workspace System. |
| from_user_id | string Attribute message to a specific agent user ID. |
{- "client_request_id": "tx_order_10023",
- "conversation_id": "6710ab992bc0123456789012",
- "text": "Hello, your order has been received.",
- "reply_to_message_id": "string",
- "as_system": false,
- "from_user_id": "string"
}{- "message": {
- "id": "6720ab992bc0123456789033",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "message_session_id": "6715cd992bc0123456789055",
- "channel_id": "6701ef992bc0123456789011",
- "channel": "whatsapp",
- "from_user_id": null,
- "from_customer": false,
- "client_request_id": "req_msg_9821",
- "content": "Your package has shipped!",
- "message_type": "text",
- "send_state": "sent",
- "created_at": "2026-11-03T10:15:00Z",
- "updated_at": "2026-11-03T10:15:00Z"
}
}Uploads and dispatches an image message via multipart form upload (max 25MB).
| client_request_id required | string Caller-supplied idempotency key. |
| conversation_id required | string |
| photo required | string <binary> Image file (.jpg, .jpeg, .png, .webp, .gif, .heic, .svg, etc., max 25MB). |
| caption | string Optional caption text. |
| reply_to_message_id | string |
| as_system | boolean Attribute message as System. |
| from_user_id | string Attribute message to specific workspace user ID. |
{- "message": {
- "id": "6720ab992bc0123456789033",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "message_session_id": "6715cd992bc0123456789055",
- "channel_id": "6701ef992bc0123456789011",
- "channel": "whatsapp",
- "from_user_id": null,
- "from_customer": false,
- "client_request_id": "req_msg_9821",
- "content": "Your package has shipped!",
- "message_type": "text",
- "send_state": "sent",
- "created_at": "2026-11-03T10:15:00Z",
- "updated_at": "2026-11-03T10:15:00Z"
}
}Uploads and dispatches an audio message via multipart form upload (max 25MB).
| client_request_id required | string |
| conversation_id required | string |
| audio required | string <binary> Audio file (.mp3, .ogg, .wav, .m4a, .aac, .opus, max 25MB). |
| caption | string |
| reply_to_message_id | string |
| as_system | boolean |
| from_user_id | string |
{- "message": {
- "id": "6720ab992bc0123456789033",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "message_session_id": "6715cd992bc0123456789055",
- "channel_id": "6701ef992bc0123456789011",
- "channel": "whatsapp",
- "from_user_id": null,
- "from_customer": false,
- "client_request_id": "req_msg_9821",
- "content": "Your package has shipped!",
- "message_type": "text",
- "send_state": "sent",
- "created_at": "2026-11-03T10:15:00Z",
- "updated_at": "2026-11-03T10:15:00Z"
}
}Uploads and dispatches a video message via multipart form upload (max 250MB).
| client_request_id required | string |
| conversation_id required | string |
| video required | string <binary> Video file (.mp4, .mov, .m4v, .avi, max 250MB). |
| thumbnail | string <binary> Optional thumbnail image file. |
| caption | string |
| reply_to_message_id | string |
| as_system | boolean |
| from_user_id | string |
{- "message": {
- "id": "6720ab992bc0123456789033",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "message_session_id": "6715cd992bc0123456789055",
- "channel_id": "6701ef992bc0123456789011",
- "channel": "whatsapp",
- "from_user_id": null,
- "from_customer": false,
- "client_request_id": "req_msg_9821",
- "content": "Your package has shipped!",
- "message_type": "text",
- "send_state": "sent",
- "created_at": "2026-11-03T10:15:00Z",
- "updated_at": "2026-11-03T10:15:00Z"
}
}Uploads and dispatches a document attachment via multipart form upload (max 20MB).
| client_request_id required | string |
| conversation_id required | string |
| document required | string <binary> Document file (.pdf, .doc, .docx, .xls, .xlsx, .zip, max 20MB). |
| caption | string |
| reply_to_message_id | string |
| as_system | boolean |
| from_user_id | string |
{- "message": {
- "id": "6720ab992bc0123456789033",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "message_session_id": "6715cd992bc0123456789055",
- "channel_id": "6701ef992bc0123456789011",
- "channel": "whatsapp",
- "from_user_id": null,
- "from_customer": false,
- "client_request_id": "req_msg_9821",
- "content": "Your package has shipped!",
- "message_type": "text",
- "send_state": "sent",
- "created_at": "2026-11-03T10:15:00Z",
- "updated_at": "2026-11-03T10:15:00Z"
}
}Dispatches a geographic location (latitude/longitude) into an existing conversation.
| client_request_id required | string |
| conversation_id required | string |
| lat required | number <double> [ -90 .. 90 ] |
| lon required | number <double> [ -180 .. 180 ] |
| reply_to_message_id | string |
| as_system | boolean |
| from_user_id | string |
{- "client_request_id": "string",
- "conversation_id": "string",
- "lat": -90,
- "lon": -180,
- "reply_to_message_id": "string",
- "as_system": true,
- "from_user_id": "string"
}{- "message": {
- "id": "6720ab992bc0123456789033",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "message_session_id": "6715cd992bc0123456789055",
- "channel_id": "6701ef992bc0123456789011",
- "channel": "whatsapp",
- "from_user_id": null,
- "from_customer": false,
- "client_request_id": "req_msg_9821",
- "content": "Your package has shipped!",
- "message_type": "text",
- "send_state": "sent",
- "created_at": "2026-11-03T10:15:00Z",
- "updated_at": "2026-11-03T10:15:00Z"
}
}Returns paginated connected omnichannel channels with runtime capability flags (outbound text, media, etc.).
| page | integer >= 1 Default: 1 |
| per_page | integer [ 1 .. 500 ] Default: 20 |
{- "current_page": 1,
- "from": 1,
- "to": 20,
- "per_page": 20,
- "last_page": 5,
- "total": 100,
- "has_next": true,
- "data": [
- {
- "id": "6701ef992bc0123456789011",
- "app_id": "664fa18a992bc0123456789a",
- "type": "whatsapp_business",
- "name": "Customer Support WA",
- "username": "relasiu_support",
- "phone_number": "+628111222333",
- "email": "support@relasiu.com",
- "is_active": true,
- "is_default": true,
- "capabilities": {
- "outbound": {
- "text": true,
- "image": true,
- "audio": true,
- "video": true,
- "document": true
}
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}Returns configuration details and supported capabilities for a specific channel.
| id required | string Hex ObjectID of the channel. |
{- "id": "6701ef992bc0123456789011",
- "app_id": "664fa18a992bc0123456789a",
- "type": "whatsapp_business",
- "name": "Customer Support WA",
- "username": "relasiu_support",
- "phone_number": "+628111222333",
- "email": "support@relasiu.com",
- "is_active": true,
- "is_default": true,
- "capabilities": {
- "outbound": {
- "text": true,
- "image": true,
- "audio": true,
- "video": true,
- "document": true
}
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Returns paginated chat sessions across conversations, filtered by status, team, or assignee.
| page | integer >= 1 Default: 1 |
| per_page | integer [ 1 .. 500 ] Default: 20 |
| status | string Enum: "open" "assigned" "resolved" "closed" |
| team_id | string |
| assigned_to | string |
| conversation_id | string |
{- "current_page": 1,
- "from": 1,
- "to": 20,
- "per_page": 20,
- "last_page": 5,
- "total": 100,
- "has_next": true,
- "data": [
- {
- "id": "6715cd992bc0123456789055",
- "number": 1042,
- "number_label": "#1042",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "channel_id": "6701ef992bc0123456789011",
- "customer_id": "670ab0992bc0123456789099",
- "status": "open",
- "topic": "Billing inquiry",
- "assigned_to": "string",
- "assigned_by": "string",
- "assigned_at": "2019-08-24T14:15:22Z",
- "assigned_until": "2019-08-24T14:15:22Z",
- "team_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}Creates an open session on a conversation that does not currently have an active session.
| conversation_id required | string |
| topic | string |
{- "conversation_id": "string",
- "topic": "string"
}{- "ok": true,
- "session": {
- "id": "6715cd992bc0123456789055",
- "number": 1042,
- "number_label": "#1042",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "channel_id": "6701ef992bc0123456789011",
- "customer_id": "670ab0992bc0123456789099",
- "status": "open",
- "topic": "Billing inquiry",
- "assigned_to": "string",
- "assigned_by": "string",
- "assigned_at": "2019-08-24T14:15:22Z",
- "assigned_until": "2019-08-24T14:15:22Z",
- "team_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Returns comprehensive session details including customer, channel, and participant summaries.
| id required | string |
{- "id": "6715cd992bc0123456789055",
- "number": 1042,
- "number_label": "#1042",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "channel_id": "6701ef992bc0123456789011",
- "customer_id": "670ab0992bc0123456789099",
- "status": "open",
- "topic": "Billing inquiry",
- "assigned_to": "string",
- "assigned_by": "string",
- "assigned_at": "2019-08-24T14:15:22Z",
- "assigned_until": "2019-08-24T14:15:22Z",
- "team_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Assigns an unassigned or expired-lease session to a specific agent with an optional lease window.
| id required | string |
| agent_id required | string Workspace user ID of the assignee. |
| lease_minutes | integer Default: 0 Optional lease duration in minutes. |
{- "agent_id": "string",
- "lease_minutes": 0
}{- "ok": true,
- "session": {
- "id": "6715cd992bc0123456789055",
- "number": 1042,
- "number_label": "#1042",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "channel_id": "6701ef992bc0123456789011",
- "customer_id": "670ab0992bc0123456789099",
- "status": "open",
- "topic": "Billing inquiry",
- "assigned_to": "string",
- "assigned_by": "string",
- "assigned_at": "2019-08-24T14:15:22Z",
- "assigned_until": "2019-08-24T14:15:22Z",
- "team_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Reassigns an active session to a different agent within the workspace. Requires sessions:manage scope.
| id required | string |
| new_assignee_id required | string Target agent user ID. |
| lease_minutes | integer Default: 0 |
{- "new_assignee_id": "string",
- "lease_minutes": 0
}{- "ok": true,
- "session": {
- "id": "6715cd992bc0123456789055",
- "number": 1042,
- "number_label": "#1042",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "channel_id": "6701ef992bc0123456789011",
- "customer_id": "670ab0992bc0123456789099",
- "status": "open",
- "topic": "Billing inquiry",
- "assigned_to": "string",
- "assigned_by": "string",
- "assigned_at": "2019-08-24T14:15:22Z",
- "assigned_until": "2019-08-24T14:15:22Z",
- "team_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Resolves an active session. Requires sessions:manage scope if resolving a session assigned to another agent.
| id required | string |
| resolution_note | string |
{- "resolution_note": "string"
}{- "ok": true,
- "session": {
- "id": "6715cd992bc0123456789055",
- "number": 1042,
- "number_label": "#1042",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "channel_id": "6701ef992bc0123456789011",
- "customer_id": "670ab0992bc0123456789099",
- "status": "open",
- "topic": "Billing inquiry",
- "assigned_to": "string",
- "assigned_by": "string",
- "assigned_at": "2019-08-24T14:15:22Z",
- "assigned_until": "2019-08-24T14:15:22Z",
- "team_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Reopens a resolved or closed session, either by restoring it or creating an authoritative successor session.
| id required | string |
{- "ok": true,
- "session": {
- "id": "6715cd992bc0123456789055",
- "number": 1042,
- "number_label": "#1042",
- "app_id": "664fa18a992bc0123456789a",
- "conversation_id": "6710ab992bc0123456789012",
- "channel_id": "6701ef992bc0123456789011",
- "customer_id": "670ab0992bc0123456789099",
- "status": "open",
- "topic": "Billing inquiry",
- "assigned_to": "string",
- "assigned_by": "string",
- "assigned_at": "2019-08-24T14:15:22Z",
- "assigned_until": "2019-08-24T14:15:22Z",
- "team_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Returns paginated contacts matching optional search queries.
| search | string Search term across name, email, phone, company. |
| lead_status | string Enum: "new" "contacted" "qualified" "won" "lost" |
| page | integer >= 1 Default: 1 |
| per_page | integer [ 1 .. 500 ] Default: 20 |
{- "current_page": 1,
- "from": 1,
- "to": 20,
- "per_page": 20,
- "last_page": 5,
- "total": 100,
- "has_next": true,
- "data": [
- {
- "id": "670ab0992bc0123456789099",
- "app_id": "664fa18a992bc0123456789a",
- "name": "Jane Doe",
- "phone": "+628123456789",
- "email": "jane@example.com",
- "company": "Acme Corp",
- "job_title": "Procurement Manager",
- "lead_status": "qualified",
- "lead_source": "Website",
- "address": "string",
- "city": "string",
- "country": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}| name required | string <= 200 characters |
| phone | string <= 50 characters |
string <= 200 characters | |
| company | string <= 200 characters |
| job_title | string <= 200 characters |
| lead_status | string Enum: "" "new" "contacted" "qualified" "won" "lost" |
| lead_source | string |
| address | string <= 500 characters |
| city | string <= 100 characters |
| country | string <= 100 characters |
| comment | string |
{- "name": "Jane Doe",
- "phone": "+628123456789",
- "email": "jane@example.com",
- "company": "Acme Corp",
- "job_title": "string",
- "lead_status": "",
- "lead_source": "string",
- "address": "string",
- "city": "string",
- "country": "string",
- "comment": "string"
}{- "id": "670ab0992bc0123456789099",
- "app_id": "664fa18a992bc0123456789a",
- "name": "Jane Doe",
- "phone": "+628123456789",
- "email": "jane@example.com",
- "company": "Acme Corp",
- "job_title": "Procurement Manager",
- "lead_status": "qualified",
- "lead_source": "Website",
- "address": "string",
- "city": "string",
- "country": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}{- "id": "670ab0992bc0123456789099",
- "app_id": "664fa18a992bc0123456789a",
- "name": "Jane Doe",
- "phone": "+628123456789",
- "email": "jane@example.com",
- "company": "Acme Corp",
- "job_title": "Procurement Manager",
- "lead_status": "qualified",
- "lead_source": "Website",
- "address": "string",
- "city": "string",
- "country": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| id required | string |
| name required | string <= 200 characters |
| phone | string <= 50 characters |
string <= 200 characters | |
| company | string <= 200 characters |
| job_title | string <= 200 characters |
| lead_status | string Enum: "" "new" "contacted" "qualified" "won" "lost" |
| lead_source | string |
| address | string <= 500 characters |
| city | string <= 100 characters |
| country | string <= 100 characters |
| comment | string |
{- "name": "Jane Doe",
- "phone": "+628123456789",
- "email": "jane@example.com",
- "company": "Acme Corp",
- "job_title": "string",
- "lead_status": "",
- "lead_source": "string",
- "address": "string",
- "city": "string",
- "country": "string",
- "comment": "string"
}{- "message": "string"
}Merges a secondary contact into a primary contact, preserving conversation and channel history.
| primary_id required | string Contact to keep. |
| secondary_id required | string Contact to merge in and delete. |
{- "primary_id": "string",
- "secondary_id": "string"
}{- "error": "string",
- "required_scope": "string"
}Returns paginated workspace teammates/agents belonging exclusively to the authenticated tenant.
Use returned IDs to assign sessions (/sessions/:id/take) or transfer sessions (/sessions/:id/transfer).
| page | integer >= 1 Default: 1 |
| per_page | integer [ 1 .. 500 ] Default: 20 |
| is_active | boolean Filter active agents (not banned and not deleted). |
| is_assignable | boolean Filter eligible agents capable of taking sessions (active agents and owners). |
| team_id | string Filter agents affiliated with a specific team ID. |
| search | string <= 100 characters Search by agent display name (max 100 characters). |
| type | string Enum: "owner" "agent" "non_agent" Filter by user type (owner, agent, non_agent). |
{- "current_page": 1,
- "from": 1,
- "to": 20,
- "per_page": 20,
- "last_page": 5,
- "total": 100,
- "has_next": true,
- "data": [
- {
- "id": "673f4b50c18d402fa6212122",
- "name": "Alice Agent",
- "role": "agent",
- "type": "agent",
- "is_active": true,
- "is_assignable": true,
- "availability_status": "online",
- "team_ids": [
- "6720ab992bc0123456789099"
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}Returns safe public agent profile, assignability status, and team memberships by ID.
| id required | string Hex ObjectID of the agent. |
{- "id": "673f4b50c18d402fa6212122",
- "name": "Alice Agent",
- "role": "agent",
- "type": "agent",
- "is_active": true,
- "is_assignable": true,
- "availability_status": "online",
- "team_ids": [
- "6720ab992bc0123456789099"
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}