Client API (Quick mode) New
Make calls, watch lives, send gifts and chat from the app with just an App Key. No backend needed.
Set in your dashboard vs. set in code
| Setting | Where |
|---|---|
| App Key, its bindings (package name, bundle ID, website, signing certificate) and Quick-mode caps | Dashboard: Console → Projects → Quick mode |
| Daily spend cap of a project | Dashboard: Console → Projects |
| Per-user daily minutes and the longest Quick-mode call | Dashboard: Console → Projects → Quick mode |
| Who the user is (user id, display name) | Code: init / setUser in the app |
| Call length | Code: max_duration_seconds when you create the call, or the project default |
| Gifts on or off, gift markup and per-gift prices | Dashboard: Console → Gifts (or the server-only gifts settings routes) |
| Hidden hosts and the price your users pay for Live Hosts | Dashboard: Console → Live Hosts (or the server-only hide routes) |
What it is
Quick mode lets an app use every end-user feature (calls, Live Hosts, Live Streams, gifts and chat) with only a publishable App Key. No backend is needed: the SDK talks to https://api-videosdk.titliapp.com straight from the phone or the browser. You get the App Key in the console under Projects → Quick mode.
The App Key is publishable, not a secret: it can only reach the app-facing routes, it is bound to your package name, bundle ID or website, and spend and usage caps fence it. The binding is a deterrent, not a lock (a determined attacker can copy an app's identity), so the caps are what limit the damage. For strict control, add server tokens (production hardening below).
यह पेज हिंदी में: Client API (Quick mode)।
Our SDKs do all of this for you. Read on if you call the routes yourself, or want to know exactly what an App Key can and cannot do.
In the SDKs
Every SDK has the same names (platform casing): init, startCall, joinCall, setUser, config(), and the groups calls, liveHosts, liveStreams and gifts. Chat: TitliChat.init({ appKey, userId }), then connect() with no token. Errors arrive as one error type (TitliVideoError / TitliQuickError) carrying errorCode, userCode, userMessage, userMessageHi, message and httpStatus. Show userMessage to your user as it is.
await TitliVideo.init(appKey: 'tak_…', userId: 'user-42', userName: 'Asha');
final cfg = await TitliVideo.config(); // limits, minutes left today
final call = await TitliVideo.startCall(type: TitliCallType.video);
await TitliVideo.joinCall(callId); // the other person
final hosts = await TitliVideo.liveHosts.hosts();
await TitliVideo.liveStreams.watch(ref);
final gifts = await TitliVideo.gifts.list();
TitliVideo.setUser('user-43', 'Ravi'); // switch the signed-in userTitliVideo.init({ appKey: 'tak_…', userId: 'user-42', userName: 'Asha' });
const call = await TitliVideo.startCall({ type: 'video', container: '#stage' });
const hosts = await TitliVideo.liveHosts.hosts();
await TitliVideo.liveStreams.watch(ref);
try { await TitliVideo.joinCall(callId, { container: '#stage' }); }
catch (e) { if (e instanceof TitliVideoError) showToUser(e.userMessage); }// 1. Once, in Application.onCreate: your App Key and your own user id
TitliVideo.init(context, appKey = "tak_…", userId = "user-42", userName = "Asha")
// 2. Start a video call (suspend; call from a coroutine)
val call = TitliVideo.startCall(type = TitliCallType.VIDEO)
// share call.callId with the other person
// 3. On the other phone
TitliVideo.joinCall(callId)import TitliVideoSDK
// 1. Once, at launch: your App Key and your own user id
TitliVideo.initialize(appKey: "tak_…", userId: "user-42", userName: "Asha")
// 2. Start a video call
let call = try await TitliVideo.startCall(type: .video)
// share call.callId with the other person
// 3. On the other phone
try await TitliVideo.joinCall(callId)import { TitliVideo } from 'titli-video-sdk-react-native';
// 1. Once, at app start
TitliVideo.init({ appKey: 'tak_…', userId: 'user-42', userName: 'Asha' });
// 2. Start a video call
const call = await TitliVideo.startCall({ type: 'video' });
// share call.callId with the other person
// 3. On the other phone
await TitliVideo.joinCall(callId);Options: apiBase (default https://api-videosdk.titliapp.com) and deviceId (the SDK keeps a random id per install).
Headers
Every request carries these headers. Never send an Authorization header with an App Key.
| Header | Sent | Value |
|---|---|---|
X-Titli-App-Key | always | The App Key (starts with tak_). |
X-Titli-User | always | Your own id for the signed-in user: letters, digits and _ . : @ -, 1 to 128 characters. |
X-Titli-Platform | always | android, ios or web. |
X-Titli-App | Android, iOS | The package name or bundle ID. Not sent on the web: the browser's Origin is used. |
X-Titli-App-Cert | Android, optional | SHA-256 of the signing certificate, hex (colons optional). |
X-Titli-Device | always | A random id per install (UUID), kept on the device. |
X-Titli-SDK | always | SDK name and version, for example flutter/0.2.0. |
X-Titli-Attest | reserved | For Play Integrity / App Attest tokens later. Not checked yet: send nothing. |
Binding: which apps may use the key
In the console you list, per App Key, the Android package names (optionally with the SHA-256 of the signing certificate), the iOS bundle IDs and the website origins that may use it. A request whose app, origin or certificate is not on the list, or that has no platform header, is refused with APP_NOT_ALLOWED (AB-403).
Be honest with yourself about what this is: the binding is a deterrent, not a lock. A package name or a header can be copied by someone who takes your app apart, and a website origin only binds browsers. What really limits misuse are the caps below. If you need strict control over who may call, use server tokens (production hardening).
Caps
- Quick-mode daily spend cap per project: when today's Quick-mode spend reaches it, new Quick-mode calls stop with
QUICK_DAILY_CAP_REACHED(QC-402). Server-token calls are not counted against it. The project's overall daily spend cap still applies to both. - Minutes per user per day: a user who used today's minutes gets
END_USER_DAILY_LIMIT(UM-429); a running call is cut with that end reason.GET /v1/client/configshowsquick.user_minutes_left_today. - Longest call:
max_duration_secondsis capped by the Quick-mode call length. - Rate limits per IP and per device, and a limit on how many user ids one device may use:
RATE_LIMITED(RL-429). - Your prepaid balance pays for Quick-mode calls exactly like any other call. Prices do not change.
Rotation
Rotate the App Key in the console (Projects → Quick mode) if it is abused or you want a fresh one, and switch Quick mode off there to stop all App Key traffic at once (QUICK_MODE_OFF, QM-403). A key that has been rotated away or disabled answers APP_KEY_INVALID (AK-401). Because the key is inside your app, plan a rotation together with an app update. Server tokens keep working the whole time.
Who the user is
X-Titli-User is your own id for the signed-in user. Every route acts as that user only: end_user_id, payer_end_user_id and the chat user_id default to it and must equal it; acting as anyone else, or on a call the user is not in, is refused with FORBIDDEN (FB-403). Since anyone holding the App Key can claim any user id, treat Quick mode as fine for most apps and use server tokens where a user's identity must be proven (for example, before you debit a paid wallet).
What stays server-only, and why
The App Key can only reach the routes below. These stay on your server with the project key, and an App Key gets APP_KEY_INVALID or a not-found answer there:
| Server only | Why |
|---|---|
| Balance, usage, money reports and statements, receipts | They show your account's money. An app user must never see what you pay or earn. |
| End-user free-time lookups | They reveal other users' allowances. |
| Gift prices, gift settings and gift stats | They carry your cost and markup. |
| Live Hosts pricing, stats, hide and unhide | Prices and moderation decisions are yours, not your users'. |
| Live Streams pricing and stats | Your cost per viewer-minute is private. |
| Chat bans, user erase, server-side conversations and room settings | Moderation and data deletion must not be reachable from a user's phone. |
| Webhooks setup and keys | They control your whole project. |
Errors and retries
Same envelope as every API error (error.code, message, error_code, user_code, user_message, user_message_hi, docs_url). The Quick-mode codes (full text on Error codes):
| Code | Short code | HTTP | When |
|---|---|---|---|
APP_KEY_INVALID | AK-401 | 401 | The key is missing, wrong, rotated away or disabled. |
QUICK_MODE_OFF | QM-403 | 403 | Quick mode is switched off for the project, or paused by us. |
APP_NOT_ALLOWED | AB-403 | 403 | The package name, bundle ID, website or signing certificate is not on the key's allowlist, or the platform header is missing. |
QUICK_DAILY_CAP_REACHED | QC-402 | 402 | The project's Quick-mode daily spend cap is reached. |
END_USER_DAILY_LIMIT | UM-429 | 429 | This user used today's minutes (also the end reason when a call is cut). |
FORBIDDEN | FB-403 | 403 | Acting as another user, or on a call the user is not in. |
RATE_LIMITED | RL-429 | 429 | Per-IP or per-device limits, or too many user ids from one device. |
Never retry a 4xx answer except 429 (wait for Retry-After). On a 5xx answer back off 1 s, 2 s, 4 s.
{ "error": {
"code": "app_key_invalid",
"message": "Unknown or disabled App Key.",
"error_code": "APP_KEY_INVALID",
"user_code": "AK-401",
"user_message": "Calls are not available in this app right now. Please update the app or try again later. (code AK-401)",
"user_message_hi": "इस ऐप में अभी कॉल उपलब्ध नहीं हैं। कृपया ऐप अपडेट करें या बाद में फिर कोशिश करें। (कोड AK-401)",
"docs_url": "https://videosdk.titliapp.com/docs/errors#APP_KEY_INVALID" } }Routes
JSON in and out. Each route has the same body and answer as the /v1 route it mirrors, minus private money fields. The SDK fills end_user_id / user_id; the server also fills them from X-Titli-User when they are absent.
| Route | Mirrors | SDK method |
|---|---|---|
GET /v1/client/config | – | TitliVideo.config() |
POST /v1/client/calls | POST /v1/calls | TitliVideo.startCall / calls.create |
GET /v1/client/calls | GET /v1/calls | calls.list |
GET /v1/client/calls/{id} | GET /v1/calls/{id} | calls.get |
POST /v1/client/calls/{id}/tokens | POST /v1/calls/{id}/tokens | TitliVideo.joinCall / calls.token |
POST /v1/client/calls/{id}/end | POST /v1/calls/{id}/end | calls.end |
POST /v1/client/calls/{id}/participants/{pid}/remove | POST /v1/calls/{id}/participants/{pid}/remove | calls.removeParticipant |
POST /v1/client/calls/{id}/participants/{pid}/mute | POST /v1/calls/{id}/participants/{pid}/mute | calls.muteParticipant |
GET /v1/client/live-hosts/hosts | GET /v1/live-hosts/hosts | liveHosts.hosts |
GET /v1/client/live-hosts/hosts/{host_ref} | GET /v1/live-hosts/hosts/{host_ref} | liveHosts.host(ref) |
GET /v1/client/live-hosts/direct-hosts | GET /v1/live-hosts/direct-hosts | liveHosts.directHosts |
POST /v1/client/live-hosts/calls | POST /v1/live-hosts/calls | liveHosts.startCall |
GET /v1/client/live-hosts/calls | GET /v1/live-hosts/calls | liveHosts.list |
GET /v1/client/live-hosts/calls/{id} | GET /v1/live-hosts/calls/{id} | liveHosts.get |
POST /v1/client/live-hosts/calls/{id}/end | POST /v1/live-hosts/calls/{id}/end | liveHosts.end |
POST /v1/client/live-hosts/calls/{id}/gifts | POST /v1/live-hosts/calls/{id}/gifts | liveHosts.sendGift |
GET /v1/client/live-streams | GET /v1/live-streams | liveStreams.list |
GET /v1/client/live-streams/gifts | GET /v1/live-streams/gifts | liveStreams (gift sheet) |
POST /v1/client/live-streams/{ref}/join | POST /v1/live-streams/{ref}/join | liveStreams.watch(ref) |
POST /v1/client/live-streams/{ref}/token | POST /v1/live-streams/{ref}/token | liveStreams.token(ref) |
POST /v1/client/live-streams/{ref}/leave | POST /v1/live-streams/{ref}/leave | liveStreams.leave(ref) |
GET /v1/client/live-streams/{ref}/comments | GET /v1/live-streams/{ref}/comments | liveStreams.comments(ref) |
POST /v1/client/live-streams/{ref}/comments | POST /v1/live-streams/{ref}/comments | liveStreams.comment(ref, text) |
POST /v1/client/live-streams/{ref}/gifts | POST /v1/live-streams/{ref}/gifts | liveStreams.sendGift |
POST /v1/client/live-streams/{ref}/report | POST /v1/live-streams/{ref}/report | liveStreams.report |
GET /v1/client/gifts | GET /v1/gifts | gifts.list() |
GET /v1/client/gifts/sends | GET /v1/gifts/sends | gifts.history() |
GET /v1/client/gifts/sends/{id} | GET /v1/gifts/sends/{id} | gifts.get(id) |
POST /v1/chat/client/tokens | POST /v1/chat/tokens | TitliChat.connect() |
PUT /v1/chat/client/users/{user_id} | PUT /v1/chat/users/{user_id} | TitliChat (own profile) |
GET /v1/client/config
/v1/client/configWhat the project allows this user: features, Quick-mode limits and minutes left today, which products are on.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
| No parameters. | ||||||
Response
| Field | Type | What it means |
|---|---|---|
project.app_id | string | The project's public App ID. |
project.name | string | The project name from the console. |
livekit_url | string | The media server address the SDK connects to (the SDK uses it for you). |
features.audio | boolean | Audio calls are switched on for the account. |
features.video | boolean | Video calls are switched on for the account. |
features.max_participants | number | Most people in one call. |
quick.max_call_seconds | number | The longest call Quick mode allows (0 means no Quick-mode limit beyond the account limit). |
quick.user_daily_minutes | number | Minutes one user may use per day in Quick mode (0 means no limit). |
quick.user_minutes_left_today | number | null | Minutes this user has left today (null when there is no daily limit). |
products.live_hosts | boolean | Live Hosts is on for the account. |
products.live_streams | boolean | Live Streams is on for the account. |
products.gifts | boolean | Gifts are on for the account. |
products.chat | boolean | Chat is on for the account. |
user_id | string | The user id the request was made for (the user id header). |
POST /v1/client/calls
/v1/client/callsSame body and answer as POST /v1/calls (reference), minus private money fields. The caller (the signed-in user) is the payer.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
type | string | optional | video | audio, video | Call type. An audio call's tokens publish only the microphone. | audio |
payer_end_user_id | string | optional | the signed-in user | only the signed-in user | Who pays for the call. In Quick mode the caller is the payer: it may only be the user itself. | user-42 |
max_duration_seconds | integer | optional | no limit (your account maximum) | 10 to 86400 | Time limit of the call. In Quick mode it is capped by the project's Quick-mode call length, which is also the default. | 600 |
metadata | object | optional | {} | any JSON object under 1 KB | Your own data, returned on the call. | { "booking": "B-77" } |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The call ID. |
room | string | Media room name. |
type | string | audio or video. |
status | string | created, active or ended. |
payer_end_user_id | string or null | Who pays (free seconds are checked for this user). |
max_duration_seconds | integer or null | Time limit of this call. |
metadata | object | Your metadata, as sent. |
billing_mode | string | participant_minute or call_minute. |
rate_per_minute | number | Price per minute, frozen at creation. |
created_at, started_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence you can show your user. |
connected_seconds | integer | Seconds with two or more people connected. |
participant_seconds | integer | Sum of every participant's seconds. |
free_seconds | integer | Seconds covered by free time. |
billed_minutes | number | Minutes billed. |
amount | number | Amount billed, in your billing currency. |
unrecovered_amount | number | Amount that could not be taken from the balance. |
peak_participants | integer | Most people in the call at once. |
created_with | string | Only on calls an app made in Quick mode: app_key (with created_by_end_user_id). |
livekit_url | string | The media URL (create answer only). |
payer_free_seconds_available | integer or null | Free seconds of the payer (create answer only). |
GET /v1/client/calls
/v1/client/callsSame body and answer as GET /v1/calls (reference), minus private money fields. Only calls this user took part in.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
status | string | optional (query) | every status | created, active, ended | Only calls in this state. | status=ended |
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
limit | integer | optional (query) | 25 | 1 to 100 (higher is treated as 100) | Page size. | 50 |
before | string | optional (query) | – | ISO 8601 date-time | Calls created before this time (paging: pass next_before). | 2026-11-25T10:00:00Z |
Response
| Field | Type | What it means |
|---|---|---|
data | array | Call objects, newest first. |
next_before | string or null | Pass as before for the next page; null on the last page. |
GET /v1/client/calls/{id}
/v1/client/calls/{id}Same body and answer as GET /v1/calls/{id} (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The call ID. | 6a1f… |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The call ID. |
room | string | Media room name. |
type | string | audio or video. |
status | string | created, active or ended. |
payer_end_user_id | string or null | Who pays (free seconds are checked for this user). |
max_duration_seconds | integer or null | Time limit of this call. |
metadata | object | Your metadata, as sent. |
billing_mode | string | participant_minute or call_minute. |
rate_per_minute | number | Price per minute, frozen at creation. |
created_at, started_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence you can show your user. |
connected_seconds | integer | Seconds with two or more people connected. |
participant_seconds | integer | Sum of every participant's seconds. |
free_seconds | integer | Seconds covered by free time. |
billed_minutes | number | Minutes billed. |
amount | number | Amount billed, in your billing currency. |
unrecovered_amount | number | Amount that could not be taken from the balance. |
peak_participants | integer | Most people in the call at once. |
created_with | string | Only on calls an app made in Quick mode: app_key (with created_by_end_user_id). |
participants | array | { end_user_id, role, joined_at, left_at, billable_seconds, free_seconds, amount } per session. |
POST /v1/client/calls/{id}/tokens
/v1/client/calls/{id}/tokensSame body and answer as POST /v1/calls/{id}/tokens (reference), minus private money fields. Role is user or host; the token is always for the signed-in user.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The call ID. | 6a1f… |
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
role | string | optional | user | user, host | The first user becomes the payer if none was set. | host |
name | string | optional | – | 1 to 80 characters | Display name in the call. | Asha |
ttl_seconds | integer | optional | the project default, normally 600 | 30 to the project limit (normally 3600) | How long the token can be used to join. It does not limit how long the call lasts. | 300 |
Response
| Field | Type | What it means |
|---|---|---|
token | string | The join token for the app. |
livekit_url | string | The media URL to connect to. |
room | string | Media room name. |
call_id | string | The call. |
identity | string | The participant identity (the end_user_id). |
role | string | user or host. |
type | string | Call type. |
expires_at | string | When the token can no longer be used to join. |
end_user_is_new | boolean | First time this user was seen. |
payer_end_user_id | string or null | Who pays. |
payer_free_seconds_available | integer | Free seconds the payer has. |
max_video_resolution | string or null | Most a participant may publish (null for audio). |
POST /v1/client/calls/{id}/end
/v1/client/calls/{id}/endSame body and answer as POST /v1/calls/{id}/end (reference), minus private money fields. The creator or a participant.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The call ID. | 6a1f… |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The call ID. |
room | string | Media room name. |
type | string | audio or video. |
status | string | created, active or ended. |
payer_end_user_id | string or null | Who pays (free seconds are checked for this user). |
max_duration_seconds | integer or null | Time limit of this call. |
metadata | object | Your metadata, as sent. |
billing_mode | string | participant_minute or call_minute. |
rate_per_minute | number | Price per minute, frozen at creation. |
created_at, started_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence you can show your user. |
connected_seconds | integer | Seconds with two or more people connected. |
participant_seconds | integer | Sum of every participant's seconds. |
free_seconds | integer | Seconds covered by free time. |
billed_minutes | number | Minutes billed. |
amount | number | Amount billed, in your billing currency. |
unrecovered_amount | number | Amount that could not be taken from the balance. |
peak_participants | integer | Most people in the call at once. |
created_with | string | Only on calls an app made in Quick mode: app_key (with created_by_end_user_id). |
POST /v1/client/calls/{id}/participants/{pid}/remove
/v1/client/calls/{id}/participants/{pid}/removeSame body and answer as POST /v1/calls/{id}/participants/{pid}/remove (reference), minus private money fields. The creator only.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The call ID. | 6a1f… |
pid | string | required (in the path) | – | [A-Za-z0-9_.:@-]{1,128} | The participant's end_user_id. | user_1002 |
Response
| Field | Type | What it means |
|---|---|---|
removed | boolean | Always true (otherwise 404). |
POST /v1/client/calls/{id}/participants/{pid}/mute
/v1/client/calls/{id}/participants/{pid}/muteSame body and answer as POST /v1/calls/{id}/participants/{pid}/mute (reference), minus private money fields. The creator only.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The call ID. | 6a1f… |
pid | string | required (in the path) | – | [A-Za-z0-9_.:@-]{1,128} | The participant's end_user_id. | user_1002 |
Response
| Field | Type | What it means |
|---|---|---|
muted_tracks | integer | How many tracks were muted. |
GET /v1/client/live-hosts/hosts
/v1/client/live-hosts/hostsSame body and answer as GET /v1/live-hosts/hosts (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
type | string | optional (query) | both types | audio, video | Only hosts who take this call type right now. | type=audio |
language | string | optional (query) | your console default | up to 20 characters | Matches one of the host's languages. | language=hi |
min_age | integer | optional (query) | your console default | 18 to 99 | Youngest age to include. | min_age=21 |
max_age | integer | optional (query) | your console default | 18 to 99 | Oldest age to include. | max_age=30 |
q | string | optional (query) | – | up to 80 characters | Search by name, or by the start of a host_ref. | q=asha |
sort | string | optional (query) | online | online, price_asc, price_desc, new | online: hosts who can be called now first. new: newest hosts first. Your console default applies when you leave it out. | sort=new |
status | string | optional (query) | online | online, all, offline | online: hosts who can be called now, plus busy ones. all: every host of the network, with last seen. offline: only hosts who are offline now. | status=all |
max_cost | number | optional (query) | no limit | 0 to 1000000 | Only hosts who cost you at most this per minute, in your billing currency. Most useful on the Direct listing, where each host has her own price. | max_cost=30 |
limit | integer | optional (query) | 50 | 1 to 100 (higher is treated as 100) | Page size. | limit=20 |
offset | integer | optional (query) | 0 | 0 to 100000 | Where the page starts; the answer has next_offset. | offset=20 |
Response
| Field | Type | What it means |
|---|---|---|
hosts | array | Host objects (fields below). |
host_ref | string | Stable ID of the host for your account. |
name | string | The host's display name. |
photo_url | string | Signed photo link (the same as photo.url). |
photo | object | Photo links in fixed sizes, their expiry and a placeholder (see Host photos). |
age | integer | The host's age. |
languages | array of strings | Language codes the host speaks. |
status | string | online (can be called now), busy (on a call) or offline (only with status=all or offline). |
online | boolean | Online on the host network right now. |
last_seen_at | string or null | Last time online, rounded down to 5 minutes; null while online. |
audio_available | boolean | Takes audio calls right now. |
video_available | boolean | Takes video calls right now. |
listing | string | auto or direct. |
featured | boolean | A host you pinned in the console. |
is_new | boolean | Joined within your "new badge" window (default 7 days). |
pricing | object | { currency, cost_per_minute, price_per_minute, margin_per_minute }. Not in Quick-mode answers. |
pricing_by_type | object | Pricing for video and audio when you did not ask for one type. |
available_count | integer | Hosts who can be called now. |
type | string or null | The type you asked for. |
paused | boolean | true while Live Hosts is paused; the list is then empty. |
listing | string | Always auto. |
total | integer | Hosts matching the query. |
offset | integer | Where this page starts. |
next_offset | integer or null | Offset of the next page. |
sort | string | The sort used. |
GET /v1/client/live-hosts/hosts/{host_ref}
/v1/client/live-hosts/hosts/{host_ref}Same body and answer as GET /v1/live-hosts/hosts/{host_ref} (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
host_ref | string | required (in the path) | – | up to 128 characters | The host, from either listing. | h_9f2a |
Response
| Field | Type | What it means |
|---|---|---|
host_ref | string | Stable ID of the host for your account. |
name | string | The host's display name. |
photo_url | string | Signed photo link (the same as photo.url). |
photo | object | Photo links in fixed sizes, their expiry and a placeholder (see Host photos). |
age | integer | The host's age. |
languages | array of strings | Language codes the host speaks. |
status | string | online (can be called now), busy (on a call) or offline (only with status=all or offline). |
online | boolean | Online on the host network right now. |
last_seen_at | string or null | Last time online, rounded down to 5 minutes; null while online. |
audio_available | boolean | Takes audio calls right now. |
video_available | boolean | Takes video calls right now. |
listing | string | auto or direct. |
featured | boolean | A host you pinned in the console. |
is_new | boolean | Joined within your "new badge" window (default 7 days). |
pricing | object | { currency, cost_per_minute, price_per_minute, margin_per_minute }. Not in Quick-mode answers. |
listings | array of strings | The listings the host is in: auto, direct. |
direct_pricing | object or null | The host's Direct price, when she is in the Direct listing. |
GET /v1/client/live-hosts/direct-hosts
/v1/client/live-hosts/direct-hostsSame body and answer as GET /v1/live-hosts/direct-hosts (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
type | string | optional (query) | video | video | Ignored: the Direct listing is video only. | type=video |
language | string | optional (query) | your console default | up to 20 characters | Matches one of the host's languages. | language=hi |
min_age | integer | optional (query) | your console default | 18 to 99 | Youngest age to include. | min_age=21 |
max_age | integer | optional (query) | your console default | 18 to 99 | Oldest age to include. | max_age=30 |
q | string | optional (query) | – | up to 80 characters | Search by name, or by the start of a host_ref. | q=asha |
sort | string | optional (query) | online | online, price_asc, price_desc, new | online: hosts who can be called now first. new: newest hosts first. Your console default applies when you leave it out. | sort=new |
status | string | optional (query) | online | online, all, offline | online: hosts who can be called now, plus busy ones. all: every host of the network, with last seen. offline: only hosts who are offline now. | status=all |
max_cost | number | optional (query) | no limit | 0 to 1000000 | Only hosts who cost you at most this per minute, in your billing currency. Most useful on the Direct listing, where each host has her own price. | max_cost=30 |
limit | integer | optional (query) | 50 | 1 to 100 (higher is treated as 100) | Page size. | limit=20 |
offset | integer | optional (query) | 0 | 0 to 100000 | Where the page starts; the answer has next_offset. | offset=20 |
Response
| Field | Type | What it means |
|---|---|---|
enabled | boolean | false (with an empty list) when Direct is not switched on for your account. |
listing | string | Always direct. |
type | string | Always video. |
currency | string | Your billing currency. |
total, offset, next_offset, sort | integer / string | Paging and the sort used, as in the auto list. |
hosts | array | Host objects, each with their own pricing. |
POST /v1/client/live-hosts/calls
/v1/client/live-hosts/callsSame body and answer as POST /v1/live-hosts/calls (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
end_user_name | string | optional | Guest | up to 40 characters | The name the host sees. | Rahul |
host_ref | string | optional | any | a host_ref (up to 128 characters) or any | Which host to ring; any or left out = any available host. | h_9f2a |
type | string | optional | video | video, audio, direct | Call type. direct is the short form of listing: "direct" (video). | audio |
listing | string | optional | auto | auto, direct | direct: a host from the Direct listing at her own price, billed per started minute. | direct |
max_cost_per_minute | number | optional | no limit | 0.0001 to 1000000 | Direct calls: refuse with 409 price_changed if the host now costs more than this. | 30 |
Response
| Field | Type | What it means |
|---|---|---|
call_id | string | The same as id. |
id | string | The call ID. |
object | string | Always live_host_call. |
type | string | audio or video. |
status | string | connecting, ringing, connected, ending or ended. |
room | string | Media room name. |
end_user_id | string | Your user. |
end_user_name | string or null | The name the host sees. |
host | object or null | { host_ref, name, photo_url, photo, age, languages }; null until a host is matched. |
rate | object | { currency, per_minute }: what we deduct per minute. |
listing | string | auto or direct. |
billing_unit_seconds | integer | 1 (per second) or 60 (Direct: per started minute). |
end_user_price | object | Your own price, locked at the start: { currency, per_minute }. |
end_user_amount | number | Connected time at your price. |
margin | number | end_user_amount minus cost. |
created_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
billed_seconds | integer | Billed seconds so far. |
cost | number | What left your balance. |
unrecovered | number | Amount that could not be taken from the balance. |
free_seconds | integer | Seconds covered by free minutes. |
cost_breakdown | array | Free and paid parts of the call, one paid line per rate. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence for your user. |
max_seconds | integer | Time limit of this call. |
livekit_url | string | The media URL (create answer only). |
token | string | Your user's join token, valid one hour: join right away (create answer only). |
identity | string | Your user's identity in the room. |
gifts | object | { enabled, version }: whether to show the gift button. |
GET /v1/client/live-hosts/calls
/v1/client/live-hosts/callsSame body and answer as GET /v1/live-hosts/calls (reference), minus private money fields. Own calls only.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
status | string | optional (query) | every status | live, connecting, connected, ended | live = every call that has not ended. | status=live |
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
host_ref | string | optional (query) | – | up to 128 characters | Only calls with this host. | h_9f2a |
listing | string | optional (query) | both | auto, direct | Only calls from this listing. | direct |
before | string | optional (query) | – | ISO 8601 date-time | Calls created before this time (paging: pass next_before). | 2026-11-28T10:00:00Z |
limit | integer | optional (query) | 25 | 1 to 100 (higher is treated as 100) | Page size. | 50 |
Response
| Field | Type | What it means |
|---|---|---|
data | array | Call objects, newest first. |
next_before | string or null | Pass as before for the next page. |
GET /v1/client/live-hosts/calls/{id}
/v1/client/live-hosts/calls/{id}Same body and answer as GET /v1/live-hosts/calls/{id} (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The Live Hosts call ID. | 6a1f… |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The call ID. |
object | string | Always live_host_call. |
type | string | audio or video. |
status | string | connecting, ringing, connected, ending or ended. |
room | string | Media room name. |
end_user_id | string | Your user. |
end_user_name | string or null | The name the host sees. |
host | object or null | { host_ref, name, photo_url, photo, age, languages }; null until a host is matched. |
rate | object | { currency, per_minute }: what we deduct per minute. |
listing | string | auto or direct. |
billing_unit_seconds | integer | 1 (per second) or 60 (Direct: per started minute). |
end_user_price | object | Your own price, locked at the start: { currency, per_minute }. |
end_user_amount | number | Connected time at your price. |
margin | number | end_user_amount minus cost. |
created_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
billed_seconds | integer | Billed seconds so far. |
cost | number | What left your balance. |
unrecovered | number | Amount that could not be taken from the balance. |
free_seconds | integer | Seconds covered by free minutes. |
cost_breakdown | array | Free and paid parts of the call, one paid line per rate. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence for your user. |
max_seconds | integer | Time limit of this call. |
POST /v1/client/live-hosts/calls/{id}/end
/v1/client/live-hosts/calls/{id}/endSame body and answer as POST /v1/live-hosts/calls/{id}/end (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The Live Hosts call ID. | 6a1f… |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The call ID. |
object | string | Always live_host_call. |
type | string | audio or video. |
status | string | connecting, ringing, connected, ending or ended. |
room | string | Media room name. |
end_user_id | string | Your user. |
end_user_name | string or null | The name the host sees. |
host | object or null | { host_ref, name, photo_url, photo, age, languages }; null until a host is matched. |
rate | object | { currency, per_minute }: what we deduct per minute. |
listing | string | auto or direct. |
billing_unit_seconds | integer | 1 (per second) or 60 (Direct: per started minute). |
end_user_price | object | Your own price, locked at the start: { currency, per_minute }. |
end_user_amount | number | Connected time at your price. |
margin | number | end_user_amount minus cost. |
created_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
billed_seconds | integer | Billed seconds so far. |
cost | number | What left your balance. |
unrecovered | number | Amount that could not be taken from the balance. |
free_seconds | integer | Seconds covered by free minutes. |
cost_breakdown | array | Free and paid parts of the call, one paid line per rate. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence for your user. |
max_seconds | integer | Time limit of this call. |
POST /v1/client/live-hosts/calls/{id}/gifts
/v1/client/live-hosts/calls/{id}/giftsSame body and answer as POST /v1/live-hosts/calls/{id}/gifts (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | a Live Hosts call of your key's project | The call. The gift goes from its end user to its host; the call must be connected. | 5d2c9a44-0b1e-4c7a-9f21-6e3d8a7b1c02 |
gift_id | string | required | – | 1–80 of <code>A-Z a-z 0-9 _ -</code>, an ID from the gift list | Which gift to send. | g_rose |
count | integer | optional | 1 | 1 to <code>max_count</code> of the gift list (99 unless set otherwise for your account) | How many of this gift to send in one go. | 1 |
client_request_id | string | required | – | 1–64 of <code>A-Z a-z 0-9 _ . : -</code> | Your unique ID for this gift. Repeating it never charges twice. The SDKs make one for you. | 8f1c2f0e-6a5b-4d0e-9a51-0c1e6f4f2b7d |
expected_price | number | optional | – | above 0, in your billing currency | The price of one gift you showed your user. If it is not the current price, nothing is sent (409 gift_price_changed). Always send it. | 15 |
Response
| Field | Type | What it means |
|---|---|---|
id | string | ID of the send. |
object | string | Always gift. |
status | string | sent, pending or refused. |
surface | string | call (a Live Hosts call) or stream (a live stream). |
gift_id, name, count | string, string, integer | The gift and how many. |
end_user_id | string | Who sent it. |
call_id | string | The Live Hosts call it was sent in (surface call only). |
stream_ref, stream_id | string | The live it was sent in (surface stream only). |
host | object | host_ref and name of the host who got it. |
cost, unit_cost | number | Your cost for the send and for one gift (server answers only; left out in Quick mode). |
price, unit_price, you_keep | number | Your price for the send and for one gift, and what stays with you (you_keep is left out in Quick mode). |
currency | string | INR or USD. |
client_request_id | string | Your ID for this gift, as sent. |
error | string or null | The refusal code of a refused gift, otherwise null. |
created_at, decided_at | string (ISO time) | When it was asked for and when it was decided. |
replay | boolean | true when this answers a repeat of an earlier client_request_id. |
balance | number | Your balance after the send (server answers only). |
receipt, receipt_signature | object, string | The signed receipt of a sent gift. |
GET /v1/client/live-streams
/v1/client/live-streamsSame body and answer as GET /v1/live-streams (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
type | string | optional (query) | all | video, audio, all | Which lives to list. Audio rooms are not offered yet, so today only video lives come back. | video |
limit | integer | optional (query) | 50 | 1–100 (a bigger number is treated as 100) | How many lives to return at most. | 20 |
Response
| Field | Type | What it means |
|---|---|---|
data | array | The lives on air: stream_ref, type, title, viewers, started_at, host { host_ref, name, photo_url, age, languages }. |
paused | boolean | true while Live Streams is paused (the list is then empty). |
type | string or null | The type filter that was used (null = all). |
GET /v1/client/live-streams/gifts
/v1/client/live-streams/giftsSame body and answer as GET /v1/live-streams/gifts (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
| No parameters. | ||||||
Response
| Field | Type | What it means |
|---|---|---|
enabled | boolean | Whether gifts can be sent now. |
reason | string or null | off_by_you or not_available when gifts are off, otherwise null. |
currency | string | Your billing currency. |
max_count | integer | The most gifts one send may carry. |
version | string or null | Changes whenever the list or one of your prices changes: your cache key. |
gifts | array | The gifts: gift_id, name, icon_url, animation_url, category, price, hidden, currency, and in server answers also cost, you_keep, min_price, max_price, price_source, price_needs_review. |
data | array | The same list again (kept for older clients). |
POST /v1/client/live-streams/{ref}/join
/v1/client/live-streams/{ref}/joinSame body and answer as POST /v1/live-streams/{ref}/join (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
ref | string | required (in the path) | – | 4–64 of <code>A-Z a-z 0-9 _ -</code> | The stream_ref of the live, from the list. | ls_8fK2a9 |
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
name | string | optional | Guest | up to 40 characters; control characters and <code>< ></code> are removed | The name the host sees in her viewer list and chat. In Quick mode the SDK sends the user name you gave to init. | Rahul |
Response
| Field | Type | What it means |
|---|---|---|
viewer_id | string | ID of the viewer session (the same one while it stays open). |
token | string | Viewer token for the room, valid 10 minutes. Subscribe-only: no camera or microphone. |
livekit_url | string | The media server URL to connect to. |
room | string | The room name. |
identity | string | This viewer's identity in the room. |
expires_at | string (ISO time) | When the token stops working. Renew it before then. |
stream | object | stream_ref, status (waiting or live), type, title, host { host_ref, name, photo_url }. |
gifts | object | enabled and version of the gift list: show a gift button, refresh a cached list. |
POST /v1/client/live-streams/{ref}/token
/v1/client/live-streams/{ref}/tokenSame body and answer as POST /v1/live-streams/{ref}/token (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
ref | string | required (in the path) | – | 4–64 of <code>A-Z a-z 0-9 _ -</code> | The stream_ref of the live, from the list. | ls_8fK2a9 |
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
Response
| Field | Type | What it means |
|---|---|---|
viewer_id | string | ID of the viewer session (the same one while it stays open). |
token | string | Viewer token for the room, valid 10 minutes. Subscribe-only: no camera or microphone. |
livekit_url | string | The media server URL to connect to. |
room | string | The room name. |
identity | string | This viewer's identity in the room. |
expires_at | string (ISO time) | When the token stops working. Renew it before then. |
stream | object | stream_ref, status (waiting or live), type, title, host { host_ref, name, photo_url }. |
POST /v1/client/live-streams/{ref}/leave
/v1/client/live-streams/{ref}/leaveSame body and answer as POST /v1/live-streams/{ref}/leave (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
ref | string | required (in the path) | – | 4–64 of <code>A-Z a-z 0-9 _ -</code> | The stream_ref of the live, from the list. | ls_8fK2a9 |
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
Response
| Field | Type | What it means |
|---|---|---|
ok | boolean | Always true. |
viewer | object or null | The ended viewer session (id, status, joined_at, left_at, billed_seconds, end_reason, …), or null if none was open. |
GET /v1/client/live-streams/{ref}/comments
/v1/client/live-streams/{ref}/commentsSame body and answer as GET /v1/live-streams/{ref}/comments (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
ref | string | required (in the path) | – | 4–64 of <code>A-Z a-z 0-9 _ -</code> | The stream_ref of the live, from the list. | ls_8fK2a9 |
after | string | optional (query) | none (the recent chat) | up to 200 characters: the <code>cursor</code> of the previous answer | Return only what came after this point. | c_19f2 |
Response
| Field | Type | What it means |
|---|---|---|
status | string | The live's state, for example live. |
end_reason | string or null | Why the live ended, once it has. |
viewers | integer | Everyone watching now. |
host_away | boolean | The host's video is paused. |
cursor | string | Pass it as after next time. |
data | array | Chat and gift items: type, id, at, from { name, role, end_user_id }, text or gift. |
POST /v1/client/live-streams/{ref}/comments
/v1/client/live-streams/{ref}/commentsSame body and answer as POST /v1/live-streams/{ref}/comments (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
ref | string | required (in the path) | – | 4–64 of <code>A-Z a-z 0-9 _ -</code> | The stream_ref of the live, from the list. | ls_8fK2a9 |
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
text | string | required | – | 1–200 characters (control characters are removed) | The chat message. | Hello! |
client_id | string | optional | a new UUID | up to 64 characters | Your own ID for the message. | m-1042 |
Response
| Field | Type | What it means |
|---|---|---|
message_id | string or null | ID of the posted message. |
POST /v1/client/live-streams/{ref}/gifts
/v1/client/live-streams/{ref}/giftsSame body and answer as POST /v1/live-streams/{ref}/gifts (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
ref | string | required (in the path) | – | 4–64 of <code>A-Z a-z 0-9 _ -</code> | The stream_ref of the live, from the list. | ls_8fK2a9 |
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
gift_id | string | required | – | 1–80 of <code>A-Z a-z 0-9 _ -</code>, an ID from the gift list | Which gift to send. | g_rose |
count | integer | optional | 1 | 1 to <code>max_count</code> of the gift list (99 unless set otherwise for your account) | How many of this gift to send in one go. | 1 |
client_request_id | string | required | – | 1–64 of <code>A-Z a-z 0-9 _ . : -</code> | Your unique ID for this gift. Repeating it never charges twice. The SDKs make one for you. | 8f1c2f0e-6a5b-4d0e-9a51-0c1e6f4f2b7d |
expected_price | number | optional | – | above 0, in your billing currency | The price of one gift you showed your user. If it is not the current price, nothing is sent (409 gift_price_changed). Always send it. | 15 |
Response
| Field | Type | What it means |
|---|---|---|
id | string | ID of the send. |
object | string | Always gift. |
status | string | sent, pending or refused. |
surface | string | call (a Live Hosts call) or stream (a live stream). |
gift_id, name, count | string, string, integer | The gift and how many. |
end_user_id | string | Who sent it. |
call_id | string | The Live Hosts call it was sent in (surface call only). |
stream_ref, stream_id | string | The live it was sent in (surface stream only). |
host | object | host_ref and name of the host who got it. |
cost, unit_cost | number | Your cost for the send and for one gift (server answers only; left out in Quick mode). |
price, unit_price, you_keep | number | Your price for the send and for one gift, and what stays with you (you_keep is left out in Quick mode). |
currency | string | INR or USD. |
client_request_id | string | Your ID for this gift, as sent. |
error | string or null | The refusal code of a refused gift, otherwise null. |
created_at, decided_at | string (ISO time) | When it was asked for and when it was decided. |
replay | boolean | true when this answers a repeat of an earlier client_request_id. |
balance | number | Your balance after the send (server answers only). |
receipt, receipt_signature | object, string | The signed receipt of a sent gift. |
POST /v1/client/live-streams/{ref}/report
/v1/client/live-streams/{ref}/reportSame body and answer as POST /v1/live-streams/{ref}/report (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
ref | string | required (in the path) | – | 4–64 of <code>A-Z a-z 0-9 _ -</code> | The stream_ref of the live, from the list. | ls_8fK2a9 |
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
reason | string | required | – | up to 60 characters, for example <code>nudity</code>, <code>abuse</code>, <code>minor</code>, <code>spam</code>, <code>other</code> | Why the user reports this live. | abuse |
details | string | optional | empty | up to 1000 characters | More words from your user. | Rude language in chat |
Response
| Field | Type | What it means |
|---|---|---|
ok | boolean | Always true: the report is in the moderation queue. |
GET /v1/client/gifts
/v1/client/giftsSame body and answer as GET /v1/gifts (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
include | string | optional (query) | none (hidden gifts left out) | hidden | Send hidden to also get the gifts you hid. | hidden |
Response
| Field | Type | What it means |
|---|---|---|
enabled | boolean | Whether gifts can be sent now. |
reason | string or null | off_by_you or not_available when gifts are off, otherwise null. |
currency | string | Your billing currency. |
max_count | integer | The most gifts one send may carry. |
version | string or null | Changes whenever the list or one of your prices changes: your cache key. |
gifts | array | The gifts: gift_id, name, icon_url, animation_url, category, price, hidden, currency, and in server answers also cost, you_keep, min_price, max_price, price_source, price_needs_review. |
GET /v1/client/gifts/sends
/v1/client/gifts/sendsSame body and answer as GET /v1/gifts/sends (reference), minus private money fields. Own gift history only.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
surface | string | optional (query) | both | call, stream (another value is ignored) | Only sends of one kind. | stream |
state | string | optional (query) | all | pending, sent, refused, refunded (another value is ignored) | Only sends in this state. | pending |
call_id | string | optional (query) | all | a Live Hosts call ID | Only sends in this call. | 5d2c9a44-0b1e-4c7a-9f21-6e3d8a7b1c02 |
stream_ref | string | optional (query) | all | a <code>stream_ref</code> | Only sends in this live. | ls_8fK2a9 |
end_user_id | string | optional | the signed-in user | only the signed-in user (the user id the SDK sends) | Who acts. In Quick mode it defaults to, and must be, the user the app signed in with; the SDK fills it for you. Any other value is refused (forbidden). | user-42 |
gift_id | string | optional (query) | all | an ID from the gift list | Only sends of this gift. | g_rose |
client_request_id | string | optional (query) | all | up to 64 characters | Finds the one send you made with this ID. | 8f1c2f0e-6a5b-4d0e-9a51-0c1e6f4f2b7d |
before | string (ISO time) | optional (query) | none (newest first) | ISO time: <code>next_before</code> of the previous page (a value that is not a time is ignored) | Only sends made before this time. | 2026-11-28T10:15:02.114Z |
limit | integer | optional (query) | 50 | 1–200 (a bigger number is treated as 200) | How many sends at most. | 100 |
Response
| Field | Type | What it means |
|---|---|---|
data | array | The sends, newest first, each like the answer of a send (without replay, balance and the receipt). |
next_before | string or null | Pass it as before for the next page; null on the last page. |
GET /v1/client/gifts/sends/{id}
/v1/client/gifts/sends/{id}Same body and answer as GET /v1/gifts/sends/{id} (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | the <code>id</code> of a send of your key's project | The send you want. | 0b7e6c1a-2d4f-4a8e-b1c3-9f0e7d6c5b4a |
Response
| Field | Type | What it means |
|---|---|---|
id | string | ID of the send. |
object | string | Always gift. |
status | string | sent, pending or refused. |
surface | string | call (a Live Hosts call) or stream (a live stream). |
gift_id, name, count | string, string, integer | The gift and how many. |
end_user_id | string | Who sent it. |
call_id | string | The Live Hosts call it was sent in (surface call only). |
stream_ref, stream_id | string | The live it was sent in (surface stream only). |
host | object | host_ref and name of the host who got it. |
cost, unit_cost | number | Your cost for the send and for one gift (server answers only; left out in Quick mode). |
price, unit_price, you_keep | number | Your price for the send and for one gift, and what stays with you (you_keep is left out in Quick mode). |
currency | string | INR or USD. |
client_request_id | string | Your ID for this gift, as sent. |
error | string or null | The refusal code of a refused gift, otherwise null. |
created_at, decided_at | string (ISO time) | When it was asked for and when it was decided. |
receipt, receipt_signature | object, string | For a sent gift: the signed receipt. |
algorithm, key_id | string | Ed25519 and the signing key. |
POST /v1/chat/client/tokens
/v1/chat/client/tokensSame body and answer as POST /v1/chat/tokens (reference), minus private money fields.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
user_id | string | optional | the signed-in user | only the signed-in user | The chat user. In Quick mode it defaults to, and must be, the user the app signed in with. | user-42 |
name | string | optional | unchanged (none for a new user) | up to 80 characters | Display name shown to other users. | Asha |
avatar_url | string | optional | unchanged (none for a new user) | up to 500 characters | Link to the profile picture. | https://cdn.example.com/a.jpg |
custom | object | optional | unchanged ({} for a new user) | a JSON object | Your own data on the profile (for example a role or a level). Replaces the stored object when sent. | {"level":3} |
ttl_seconds | integer | optional | 3600 | 60 to 604800 (7 days) | How long the token works. When it expires the SDK asks for a new one and reconnects. | 3600 |
Response
| Field | Type | What it means |
|---|---|---|
token | string | The chat token. The app passes it to connect(). |
user_id | string | The user it is for. |
expires_at | string | ISO time it stops working. |
ws_url | string | The WebSocket address. |
api_url | string | The API address (for uploads). |
PUT /v1/chat/client/users/{user_id}
/v1/chat/client/users/{user_id}Same body and answer as PUT /v1/chat/users/{user_id} (reference), minus private money fields. The user's own profile only.
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
user_id | string | optional | the signed-in user | only the signed-in user | The chat user. In Quick mode it defaults to, and must be, the user the app signed in with. | user-42 |
name | string | optional | unchanged (none for a new user) | up to 80 characters | Display name shown to other users. | Asha |
avatar_url | string | optional | unchanged (none for a new user) | up to 500 characters | Link to the profile picture. | https://cdn.example.com/a.jpg |
custom | object | optional | unchanged ({} for a new user) | a JSON object | Your own data on the profile (for example a role or a level). Replaces the stored object when sent. | {"level":3} |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The user id. |
name | string or null | Display name. |
avatar_url | string or null | Profile picture link. |
custom | object | Your own data ({} when none). |
Production hardening (optional): server tokens
You do not need a server to start: Quick mode works with the App Key alone. Add a server when you want strict control over every call (who joins which call, for how long, in which role): keep the project key on your server and mint a short-lived join token per person there. The app uses the same SDK and hands it a token instead of the App Key. Both ways can run side by side.
Moving to server tokens later needs no new SDK: keep TitliVideo.init for the user, have your server create calls and mint tokens (Authentication, REST API), and pass the token to the existing connect call. You can switch Quick mode off once every app version uses server tokens.