Skip to main content

Relasi.U Omnichannel Developer API (2026-06-01)

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.

Authentication

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.

Rate Limits

  • Baseline: 60 requests/minute per key
  • Burst limit: 100 requests per key
  • Exceeded requests return HTTP 429 Too Many Requests.

Webhook System & Diagnostics

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.

Meta

API key identity and status

Inspect the authenticated API key

Returns metadata about the API key making the request, including granted scopes. No additional scope required.

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
{
  • "app_id": "664fa18a992bc0123456789a",
  • "key_id": "664fa18a992bc0123456789b",
  • "name": "Zapier Integration",
  • "public_id": "ru_live_abc123",
  • "mode": "live",
  • "scopes": [
    ],
  • "created_at": "2026-11-03T10:00:00Z"
}

Conversations

Read conversations and inspect thread details

List conversations

Returns paginated conversations for the workspace, newest activity first.

Authorizations:
ApiKeyAuth
query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "current_page": 1,
  • "from": 1,
  • "to": 20,
  • "per_page": 20,
  • "last_page": 5,
  • "total": 100,
  • "has_next": true,
  • "data": [
    ]
}

Get conversation details

Returns detailed information for a single conversation, including customer and channel summaries.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Hex ObjectID of the conversation.

Responses

Response samples

Content type
application/json
{
  • "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": {
    },
  • "channel": {
    }
}

Messages

Send text and media messages, and query message history

List messages

Returns paginated messages for a specific conversation or message session.

Authorizations:
ApiKeyAuth
query Parameters
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

Responses

Response samples

Content type
application/json
{
  • "current_page": 1,
  • "from": 1,
  • "to": 20,
  • "per_page": 20,
  • "last_page": 5,
  • "total": 100,
  • "has_next": true,
  • "data": [
    ]
}

Get message details

Returns the full record of a single message by ID.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Hex ObjectID of the message.

Responses

Response samples

Content type
application/json
{
  • "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"
}

Send text message

Dispatches an outbound text message into an existing conversation.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
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.

Responses

Request samples

Content type
application/json
{
  • "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"
}

Response samples

Content type
application/json
{
  • "message": {
    }
}

Send image message

Uploads and dispatches an image message via multipart form upload (max 25MB).

Authorizations:
ApiKeyAuth
Request Body schema: multipart/form-data
required
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.

Responses

Response samples

Content type
application/json
{
  • "message": {
    }
}

Send audio message

Uploads and dispatches an audio message via multipart form upload (max 25MB).

Authorizations:
ApiKeyAuth
Request Body schema: multipart/form-data
required
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

Responses

Response samples

Content type
application/json
{
  • "message": {
    }
}

Send video message

Uploads and dispatches a video message via multipart form upload (max 250MB).

Authorizations:
ApiKeyAuth
Request Body schema: multipart/form-data
required
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

Responses

Response samples

Content type
application/json
{
  • "message": {
    }
}

Send document attachment

Uploads and dispatches a document attachment via multipart form upload (max 20MB).

Authorizations:
ApiKeyAuth
Request Body schema: multipart/form-data
required
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

Responses

Response samples

Content type
application/json
{
  • "message": {
    }
}

Send geographic location

Dispatches a geographic location (latitude/longitude) into an existing conversation.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "client_request_id": "string",
  • "conversation_id": "string",
  • "lat": -90,
  • "lon": -180,
  • "reply_to_message_id": "string",
  • "as_system": true,
  • "from_user_id": "string"
}

Response samples

Content type
application/json
{
  • "message": {
    }
}

Channels

Inspect connected communication channels and supported capabilities

List connected channels & capabilities

Returns paginated connected omnichannel channels with runtime capability flags (outbound text, media, etc.).

Authorizations:
ApiKeyAuth
query Parameters
page
integer >= 1
Default: 1
per_page
integer [ 1 .. 500 ]
Default: 20

Responses

Response samples

Content type
application/json
{
  • "current_page": 1,
  • "from": 1,
  • "to": 20,
  • "per_page": 20,
  • "last_page": 5,
  • "total": 100,
  • "has_next": true,
  • "data": [
    ]
}

Get channel details & capabilities

Returns configuration details and supported capabilities for a specific channel.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Hex ObjectID of the channel.

Responses

Response samples

Content type
application/json
{
  • "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": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Sessions

Create, assign, transfer, resolve, and reopen agent sessions

List agent sessions

Returns paginated chat sessions across conversations, filtered by status, team, or assignee.

Authorizations:
ApiKeyAuth
query Parameters
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

Responses

Response samples

Content type
application/json
{
  • "current_page": 1,
  • "from": 1,
  • "to": 20,
  • "per_page": 20,
  • "last_page": 5,
  • "total": 100,
  • "has_next": true,
  • "data": [
    ]
}

Create new session

Creates an open session on a conversation that does not currently have an active session.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
conversation_id
required
string
topic
string

Responses

Request samples

Content type
application/json
{
  • "conversation_id": "string",
  • "topic": "string"
}

Response samples

Content type
application/json
{
  • "ok": true,
  • "session": {
    }
}

Get session details

Returns comprehensive session details including customer, channel, and participant summaries.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "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"
}

Take / assign session

Assigns an unassigned or expired-lease session to a specific agent with an optional lease window.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string
Request Body schema: application/json
required
agent_id
required
string

Workspace user ID of the assignee.

lease_minutes
integer
Default: 0

Optional lease duration in minutes.

Responses

Request samples

Content type
application/json
{
  • "agent_id": "string",
  • "lease_minutes": 0
}

Response samples

Content type
application/json
{
  • "ok": true,
  • "session": {
    }
}

Transfer session

Reassigns an active session to a different agent within the workspace. Requires sessions:manage scope.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string
Request Body schema: application/json
required
new_assignee_id
required
string

Target agent user ID.

lease_minutes
integer
Default: 0

Responses

Request samples

Content type
application/json
{
  • "new_assignee_id": "string",
  • "lease_minutes": 0
}

Response samples

Content type
application/json
{
  • "ok": true,
  • "session": {
    }
}

Resolve session

Resolves an active session. Requires sessions:manage scope if resolving a session assigned to another agent.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string
Request Body schema: application/json
resolution_note
string

Responses

Request samples

Content type
application/json
{
  • "resolution_note": "string"
}

Response samples

Content type
application/json
{
  • "ok": true,
  • "session": {
    }
}

Reopen session

Reopens a resolved or closed session, either by restoring it or creating an authoritative successor session.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "session": {
    }
}

Contacts

Create, update, list, and merge contacts

List contacts

Returns paginated contacts matching optional search queries.

Authorizations:
ApiKeyAuth
query Parameters
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

Responses

Response samples

Content type
application/json
{
  • "current_page": 1,
  • "from": 1,
  • "to": 20,
  • "per_page": 20,
  • "last_page": 5,
  • "total": 100,
  • "has_next": true,
  • "data": [
    ]
}

Create a contact

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
name
required
string <= 200 characters
phone
string <= 50 characters
email
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

Responses

Request samples

Content type
application/json
{
  • "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"
}

Response samples

Content type
application/json
{
  • "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"
}

Get contact details

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "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"
}

Update a contact

Authorizations:
ApiKeyAuth
path Parameters
id
required
string
Request Body schema: application/json
required
name
required
string <= 200 characters
phone
string <= 50 characters
email
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

Responses

Request samples

Content type
application/json
{
  • "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"
}

Response samples

Content type
application/json
{
  • "message": "string"
}

Merge two contacts

Merges a secondary contact into a primary contact, preserving conversation and channel history.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
primary_id
required
string

Contact to keep.

secondary_id
required
string

Contact to merge in and delete.

Responses

Request samples

Content type
application/json
{
  • "primary_id": "string",
  • "secondary_id": "string"
}

Response samples

Content type
application/json
{
  • "error": "string",
  • "required_scope": "string"
}

Agents

Discover workspace teammates, roles, assignability, and team affiliations

List teammates / agents

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).

Authorizations:
ApiKeyAuth
query Parameters
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).

Responses

Response samples

Content type
application/json
{
  • "current_page": 1,
  • "from": 1,
  • "to": 20,
  • "per_page": 20,
  • "last_page": 5,
  • "total": 100,
  • "has_next": true,
  • "data": [
    ]
}

Get agent details

Returns safe public agent profile, assignability status, and team memberships by ID.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Hex ObjectID of the agent.

Responses

Response samples

Content type
application/json
{
  • "id": "673f4b50c18d402fa6212122",
  • "name": "Alice Agent",
  • "role": "agent",
  • "type": "agent",
  • "is_active": true,
  • "is_assignable": true,
  • "availability_status": "online",
  • "team_ids": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}