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

SettingWhere
App Key, its bindings (package name, bundle ID, website, signing certificate) and Quick-mode capsDashboard: Console → Projects → Quick mode
Daily spend cap of a projectDashboard: Console → Projects
Per-user daily minutes and the longest Quick-mode callDashboard: Console → Projects → Quick mode
Who the user is (user id, display name)Code: init / setUser in the app
Call lengthCode: max_duration_seconds when you create the call, or the project default
Gifts on or off, gift markup and per-gift pricesDashboard: Console → Gifts (or the server-only gifts settings routes)
Hidden hosts and the price your users pay for Live HostsDashboard: 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 user

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.

HeaderSentValue
X-Titli-App-KeyalwaysThe App Key (starts with tak_).
X-Titli-UseralwaysYour own id for the signed-in user: letters, digits and _ . : @ -, 1 to 128 characters.
X-Titli-Platformalwaysandroid, ios or web.
X-Titli-AppAndroid, iOSThe package name or bundle ID. Not sent on the web: the browser's Origin is used.
X-Titli-App-CertAndroid, optionalSHA-256 of the signing certificate, hex (colons optional).
X-Titli-DevicealwaysA random id per install (UUID), kept on the device.
X-Titli-SDKalwaysSDK name and version, for example flutter/0.2.0.
X-Titli-AttestreservedFor 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/config shows quick.user_minutes_left_today.
  • Longest call: max_duration_seconds is 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 onlyWhy
Balance, usage, money reports and statements, receiptsThey show your account's money. An app user must never see what you pay or earn.
End-user free-time lookupsThey reveal other users' allowances.
Gift prices, gift settings and gift statsThey carry your cost and markup.
Live Hosts pricing, stats, hide and unhidePrices and moderation decisions are yours, not your users'.
Live Streams pricing and statsYour cost per viewer-minute is private.
Chat bans, user erase, server-side conversations and room settingsModeration and data deletion must not be reachable from a user's phone.
Webhooks setup and keysThey 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):

CodeShort codeHTTPWhen
APP_KEY_INVALIDAK-401401The key is missing, wrong, rotated away or disabled.
QUICK_MODE_OFFQM-403403Quick mode is switched off for the project, or paused by us.
APP_NOT_ALLOWEDAB-403403The package name, bundle ID, website or signing certificate is not on the key's allowlist, or the platform header is missing.
QUICK_DAILY_CAP_REACHEDQC-402402The project's Quick-mode daily spend cap is reached.
END_USER_DAILY_LIMITUM-429429This user used today's minutes (also the end reason when a call is cut).
FORBIDDENFB-403403Acting as another user, or on a call the user is not in.
RATE_LIMITEDRL-429429Per-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
{ "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.

RouteMirrorsSDK method
GET /v1/client/config–TitliVideo.config()
POST /v1/client/callsPOST /v1/callsTitliVideo.startCall / calls.create
GET /v1/client/callsGET /v1/callscalls.list
GET /v1/client/calls/{id}GET /v1/calls/{id}calls.get
POST /v1/client/calls/{id}/tokensPOST /v1/calls/{id}/tokensTitliVideo.joinCall / calls.token
POST /v1/client/calls/{id}/endPOST /v1/calls/{id}/endcalls.end
POST /v1/client/calls/{id}/participants/{pid}/removePOST /v1/calls/{id}/participants/{pid}/removecalls.removeParticipant
POST /v1/client/calls/{id}/participants/{pid}/mutePOST /v1/calls/{id}/participants/{pid}/mutecalls.muteParticipant
GET /v1/client/live-hosts/hostsGET /v1/live-hosts/hostsliveHosts.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-hostsGET /v1/live-hosts/direct-hostsliveHosts.directHosts
POST /v1/client/live-hosts/callsPOST /v1/live-hosts/callsliveHosts.startCall
GET /v1/client/live-hosts/callsGET /v1/live-hosts/callsliveHosts.list
GET /v1/client/live-hosts/calls/{id}GET /v1/live-hosts/calls/{id}liveHosts.get
POST /v1/client/live-hosts/calls/{id}/endPOST /v1/live-hosts/calls/{id}/endliveHosts.end
POST /v1/client/live-hosts/calls/{id}/giftsPOST /v1/live-hosts/calls/{id}/giftsliveHosts.sendGift
GET /v1/client/live-streamsGET /v1/live-streamsliveStreams.list
GET /v1/client/live-streams/giftsGET /v1/live-streams/giftsliveStreams (gift sheet)
POST /v1/client/live-streams/{ref}/joinPOST /v1/live-streams/{ref}/joinliveStreams.watch(ref)
POST /v1/client/live-streams/{ref}/tokenPOST /v1/live-streams/{ref}/tokenliveStreams.token(ref)
POST /v1/client/live-streams/{ref}/leavePOST /v1/live-streams/{ref}/leaveliveStreams.leave(ref)
GET /v1/client/live-streams/{ref}/commentsGET /v1/live-streams/{ref}/commentsliveStreams.comments(ref)
POST /v1/client/live-streams/{ref}/commentsPOST /v1/live-streams/{ref}/commentsliveStreams.comment(ref, text)
POST /v1/client/live-streams/{ref}/giftsPOST /v1/live-streams/{ref}/giftsliveStreams.sendGift
POST /v1/client/live-streams/{ref}/reportPOST /v1/live-streams/{ref}/reportliveStreams.report
GET /v1/client/giftsGET /v1/giftsgifts.list()
GET /v1/client/gifts/sendsGET /v1/gifts/sendsgifts.history()
GET /v1/client/gifts/sends/{id}GET /v1/gifts/sends/{id}gifts.get(id)
POST /v1/chat/client/tokensPOST /v1/chat/tokensTitliChat.connect()
PUT /v1/chat/client/users/{user_id}PUT /v1/chat/users/{user_id}TitliChat (own profile)

GET /v1/client/config

GET/v1/client/config

What the project allows this user: features, Quick-mode limits and minutes left today, which products are on.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
No parameters.

Response

FieldTypeWhat it means
project.app_idstringThe project's public App ID.
project.namestringThe project name from the console.
livekit_urlstringThe media server address the SDK connects to (the SDK uses it for you).
features.audiobooleanAudio calls are switched on for the account.
features.videobooleanVideo calls are switched on for the account.
features.max_participantsnumberMost people in one call.
quick.max_call_secondsnumberThe longest call Quick mode allows (0 means no Quick-mode limit beyond the account limit).
quick.user_daily_minutesnumberMinutes one user may use per day in Quick mode (0 means no limit).
quick.user_minutes_left_todaynumber | nullMinutes this user has left today (null when there is no daily limit).
products.live_hostsbooleanLive Hosts is on for the account.
products.live_streamsbooleanLive Streams is on for the account.
products.giftsbooleanGifts are on for the account.
products.chatbooleanChat is on for the account.
user_idstringThe user id the request was made for (the user id header).

POST /v1/client/calls

POST/v1/client/calls

Same body and answer as POST /v1/calls (reference), minus private money fields. The caller (the signed-in user) is the payer.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
typestringoptionalvideoaudio, videoCall type. An audio call's tokens publish only the microphone.audio
payer_end_user_idstringoptionalthe signed-in useronly the signed-in userWho pays for the call. In Quick mode the caller is the payer: it may only be the user itself.user-42
max_duration_secondsintegeroptionalno limit (your account maximum)10 to 86400Time limit of the call. In Quick mode it is capped by the project's Quick-mode call length, which is also the default.600
metadataobjectoptional{}any JSON object under 1 KBYour own data, returned on the call.{ "booking": "B-77" }

Response

FieldTypeWhat it means
idstringThe call ID.
roomstringMedia room name.
typestringaudio or video.
statusstringcreated, active or ended.
payer_end_user_idstring or nullWho pays (free seconds are checked for this user).
max_duration_secondsinteger or nullTime limit of this call.
metadataobjectYour metadata, as sent.
billing_modestringparticipant_minute or call_minute.
rate_per_minutenumberPrice per minute, frozen at creation.
created_at, started_at, connected_at, ended_atstring or nullTimes, ISO 8601 UTC.
end_reasonstring or nullWhy it ended (see End reasons).
end_code, end_user_code, end_user_messagestring or nullThe public code for that reason and a sentence you can show your user.
connected_secondsintegerSeconds with two or more people connected.
participant_secondsintegerSum of every participant's seconds.
free_secondsintegerSeconds covered by free time.
billed_minutesnumberMinutes billed.
amountnumberAmount billed, in your billing currency.
unrecovered_amountnumberAmount that could not be taken from the balance.
peak_participantsintegerMost people in the call at once.
created_withstringOnly on calls an app made in Quick mode: app_key (with created_by_end_user_id).
livekit_urlstringThe media URL (create answer only).
payer_free_seconds_availableinteger or nullFree seconds of the payer (create answer only).

GET /v1/client/calls

GET/v1/client/calls

Same body and answer as GET /v1/calls (reference), minus private money fields. Only calls this user took part in.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
statusstringoptional (query)every statuscreated, active, endedOnly calls in this state.status=ended
end_user_idstringoptionalthe signed-in useronly 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
limitintegeroptional (query)251 to 100 (higher is treated as 100)Page size.50
beforestringoptional (query)–ISO 8601 date-timeCalls created before this time (paging: pass next_before).2026-11-25T10:00:00Z

Response

FieldTypeWhat it means
dataarrayCall objects, newest first.
next_beforestring or nullPass as before for the next page; null on the last page.

GET /v1/client/calls/{id}

GET/v1/client/calls/{id}

Same body and answer as GET /v1/calls/{id} (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
idstring (UUID)required (in the path)–an ID from a create or list answerThe call ID.6a1f…

Response

FieldTypeWhat it means
idstringThe call ID.
roomstringMedia room name.
typestringaudio or video.
statusstringcreated, active or ended.
payer_end_user_idstring or nullWho pays (free seconds are checked for this user).
max_duration_secondsinteger or nullTime limit of this call.
metadataobjectYour metadata, as sent.
billing_modestringparticipant_minute or call_minute.
rate_per_minutenumberPrice per minute, frozen at creation.
created_at, started_at, connected_at, ended_atstring or nullTimes, ISO 8601 UTC.
end_reasonstring or nullWhy it ended (see End reasons).
end_code, end_user_code, end_user_messagestring or nullThe public code for that reason and a sentence you can show your user.
connected_secondsintegerSeconds with two or more people connected.
participant_secondsintegerSum of every participant's seconds.
free_secondsintegerSeconds covered by free time.
billed_minutesnumberMinutes billed.
amountnumberAmount billed, in your billing currency.
unrecovered_amountnumberAmount that could not be taken from the balance.
peak_participantsintegerMost people in the call at once.
created_withstringOnly on calls an app made in Quick mode: app_key (with created_by_end_user_id).
participantsarray{ end_user_id, role, joined_at, left_at, billable_seconds, free_seconds, amount } per session.

POST /v1/client/calls/{id}/tokens

POST/v1/client/calls/{id}/tokens

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

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
idstring (UUID)required (in the path)–an ID from a create or list answerThe call ID.6a1f…
end_user_idstringoptionalthe signed-in useronly 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
rolestringoptionaluseruser, hostThe first user becomes the payer if none was set.host
namestringoptional–1 to 80 charactersDisplay name in the call.Asha
ttl_secondsintegeroptionalthe project default, normally 60030 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

FieldTypeWhat it means
tokenstringThe join token for the app.
livekit_urlstringThe media URL to connect to.
roomstringMedia room name.
call_idstringThe call.
identitystringThe participant identity (the end_user_id).
rolestringuser or host.
typestringCall type.
expires_atstringWhen the token can no longer be used to join.
end_user_is_newbooleanFirst time this user was seen.
payer_end_user_idstring or nullWho pays.
payer_free_seconds_availableintegerFree seconds the payer has.
max_video_resolutionstring or nullMost a participant may publish (null for audio).

POST /v1/client/calls/{id}/end

POST/v1/client/calls/{id}/end

Same body and answer as POST /v1/calls/{id}/end (reference), minus private money fields. The creator or a participant.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
idstring (UUID)required (in the path)–an ID from a create or list answerThe call ID.6a1f…

Response

FieldTypeWhat it means
idstringThe call ID.
roomstringMedia room name.
typestringaudio or video.
statusstringcreated, active or ended.
payer_end_user_idstring or nullWho pays (free seconds are checked for this user).
max_duration_secondsinteger or nullTime limit of this call.
metadataobjectYour metadata, as sent.
billing_modestringparticipant_minute or call_minute.
rate_per_minutenumberPrice per minute, frozen at creation.
created_at, started_at, connected_at, ended_atstring or nullTimes, ISO 8601 UTC.
end_reasonstring or nullWhy it ended (see End reasons).
end_code, end_user_code, end_user_messagestring or nullThe public code for that reason and a sentence you can show your user.
connected_secondsintegerSeconds with two or more people connected.
participant_secondsintegerSum of every participant's seconds.
free_secondsintegerSeconds covered by free time.
billed_minutesnumberMinutes billed.
amountnumberAmount billed, in your billing currency.
unrecovered_amountnumberAmount that could not be taken from the balance.
peak_participantsintegerMost people in the call at once.
created_withstringOnly on calls an app made in Quick mode: app_key (with created_by_end_user_id).

POST /v1/client/calls/{id}/participants/{pid}/remove

POST/v1/client/calls/{id}/participants/{pid}/remove

Same body and answer as POST /v1/calls/{id}/participants/{pid}/remove (reference), minus private money fields. The creator only.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
idstring (UUID)required (in the path)–an ID from a create or list answerThe call ID.6a1f…
pidstringrequired (in the path)–[A-Za-z0-9_.:@-]{1,128}The participant's end_user_id.user_1002

Response

FieldTypeWhat it means
removedbooleanAlways true (otherwise 404).

POST /v1/client/calls/{id}/participants/{pid}/mute

POST/v1/client/calls/{id}/participants/{pid}/mute

Same body and answer as POST /v1/calls/{id}/participants/{pid}/mute (reference), minus private money fields. The creator only.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
idstring (UUID)required (in the path)–an ID from a create or list answerThe call ID.6a1f…
pidstringrequired (in the path)–[A-Za-z0-9_.:@-]{1,128}The participant's end_user_id.user_1002

Response

FieldTypeWhat it means
muted_tracksintegerHow many tracks were muted.

GET /v1/client/live-hosts/hosts

GET/v1/client/live-hosts/hosts

Same body and answer as GET /v1/live-hosts/hosts (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
typestringoptional (query)both typesaudio, videoOnly hosts who take this call type right now.type=audio
languagestringoptional (query)your console defaultup to 20 charactersMatches one of the host's languages.language=hi
min_ageintegeroptional (query)your console default18 to 99Youngest age to include.min_age=21
max_ageintegeroptional (query)your console default18 to 99Oldest age to include.max_age=30
qstringoptional (query)–up to 80 charactersSearch by name, or by the start of a host_ref.q=asha
sortstringoptional (query)onlineonline, price_asc, price_desc, newonline: hosts who can be called now first. new: newest hosts first. Your console default applies when you leave it out.sort=new
statusstringoptional (query)onlineonline, all, offlineonline: 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_costnumberoptional (query)no limit0 to 1000000Only 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
limitintegeroptional (query)501 to 100 (higher is treated as 100)Page size.limit=20
offsetintegeroptional (query)00 to 100000Where the page starts; the answer has next_offset.offset=20

Response

FieldTypeWhat it means
hostsarrayHost objects (fields below).
host_refstringStable ID of the host for your account.
namestringThe host's display name.
photo_urlstringSigned photo link (the same as photo.url).
photoobjectPhoto links in fixed sizes, their expiry and a placeholder (see Host photos).
ageintegerThe host's age.
languagesarray of stringsLanguage codes the host speaks.
statusstringonline (can be called now), busy (on a call) or offline (only with status=all or offline).
onlinebooleanOnline on the host network right now.
last_seen_atstring or nullLast time online, rounded down to 5 minutes; null while online.
audio_availablebooleanTakes audio calls right now.
video_availablebooleanTakes video calls right now.
listingstringauto or direct.
featuredbooleanA host you pinned in the console.
is_newbooleanJoined within your "new badge" window (default 7 days).
pricingobject{ currency, cost_per_minute, price_per_minute, margin_per_minute }. Not in Quick-mode answers.
pricing_by_typeobjectPricing for video and audio when you did not ask for one type.
available_countintegerHosts who can be called now.
typestring or nullThe type you asked for.
pausedbooleantrue while Live Hosts is paused; the list is then empty.
listingstringAlways auto.
totalintegerHosts matching the query.
offsetintegerWhere this page starts.
next_offsetinteger or nullOffset of the next page.
sortstringThe sort used.

GET /v1/client/live-hosts/hosts/{host_ref}

GET/v1/client/live-hosts/hosts/{host_ref}

Same body and answer as GET /v1/live-hosts/hosts/{host_ref} (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
host_refstringrequired (in the path)–up to 128 charactersThe host, from either listing.h_9f2a

Response

FieldTypeWhat it means
host_refstringStable ID of the host for your account.
namestringThe host's display name.
photo_urlstringSigned photo link (the same as photo.url).
photoobjectPhoto links in fixed sizes, their expiry and a placeholder (see Host photos).
ageintegerThe host's age.
languagesarray of stringsLanguage codes the host speaks.
statusstringonline (can be called now), busy (on a call) or offline (only with status=all or offline).
onlinebooleanOnline on the host network right now.
last_seen_atstring or nullLast time online, rounded down to 5 minutes; null while online.
audio_availablebooleanTakes audio calls right now.
video_availablebooleanTakes video calls right now.
listingstringauto or direct.
featuredbooleanA host you pinned in the console.
is_newbooleanJoined within your "new badge" window (default 7 days).
pricingobject{ currency, cost_per_minute, price_per_minute, margin_per_minute }. Not in Quick-mode answers.
listingsarray of stringsThe listings the host is in: auto, direct.
direct_pricingobject or nullThe host's Direct price, when she is in the Direct listing.

GET /v1/client/live-hosts/direct-hosts

GET/v1/client/live-hosts/direct-hosts

Same body and answer as GET /v1/live-hosts/direct-hosts (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
typestringoptional (query)videovideoIgnored: the Direct listing is video only.type=video
languagestringoptional (query)your console defaultup to 20 charactersMatches one of the host's languages.language=hi
min_ageintegeroptional (query)your console default18 to 99Youngest age to include.min_age=21
max_ageintegeroptional (query)your console default18 to 99Oldest age to include.max_age=30
qstringoptional (query)–up to 80 charactersSearch by name, or by the start of a host_ref.q=asha
sortstringoptional (query)onlineonline, price_asc, price_desc, newonline: hosts who can be called now first. new: newest hosts first. Your console default applies when you leave it out.sort=new
statusstringoptional (query)onlineonline, all, offlineonline: 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_costnumberoptional (query)no limit0 to 1000000Only 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
limitintegeroptional (query)501 to 100 (higher is treated as 100)Page size.limit=20
offsetintegeroptional (query)00 to 100000Where the page starts; the answer has next_offset.offset=20

Response

FieldTypeWhat it means
enabledbooleanfalse (with an empty list) when Direct is not switched on for your account.
listingstringAlways direct.
typestringAlways video.
currencystringYour billing currency.
total, offset, next_offset, sortinteger / stringPaging and the sort used, as in the auto list.
hostsarrayHost objects, each with their own pricing.

POST /v1/client/live-hosts/calls

POST/v1/client/live-hosts/calls

Same body and answer as POST /v1/live-hosts/calls (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
end_user_idstringoptionalthe signed-in useronly 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_namestringoptionalGuestup to 40 charactersThe name the host sees.Rahul
host_refstringoptionalanya host_ref (up to 128 characters) or anyWhich host to ring; any or left out = any available host.h_9f2a
typestringoptionalvideovideo, audio, directCall type. direct is the short form of listing: "direct" (video).audio
listingstringoptionalautoauto, directdirect: a host from the Direct listing at her own price, billed per started minute.direct
max_cost_per_minutenumberoptionalno limit0.0001 to 1000000Direct calls: refuse with 409 price_changed if the host now costs more than this.30

Response

FieldTypeWhat it means
call_idstringThe same as id.
idstringThe call ID.
objectstringAlways live_host_call.
typestringaudio or video.
statusstringconnecting, ringing, connected, ending or ended.
roomstringMedia room name.
end_user_idstringYour user.
end_user_namestring or nullThe name the host sees.
hostobject or null{ host_ref, name, photo_url, photo, age, languages }; null until a host is matched.
rateobject{ currency, per_minute }: what we deduct per minute.
listingstringauto or direct.
billing_unit_secondsinteger1 (per second) or 60 (Direct: per started minute).
end_user_priceobjectYour own price, locked at the start: { currency, per_minute }.
end_user_amountnumberConnected time at your price.
marginnumberend_user_amount minus cost.
created_at, connected_at, ended_atstring or nullTimes, ISO 8601 UTC.
billed_secondsintegerBilled seconds so far.
costnumberWhat left your balance.
unrecoverednumberAmount that could not be taken from the balance.
free_secondsintegerSeconds covered by free minutes.
cost_breakdownarrayFree and paid parts of the call, one paid line per rate.
end_reasonstring or nullWhy it ended (see End reasons).
end_code, end_user_code, end_user_messagestring or nullThe public code for that reason and a sentence for your user.
max_secondsintegerTime limit of this call.
livekit_urlstringThe media URL (create answer only).
tokenstringYour user's join token, valid one hour: join right away (create answer only).
identitystringYour user's identity in the room.
giftsobject{ enabled, version }: whether to show the gift button.

GET /v1/client/live-hosts/calls

GET/v1/client/live-hosts/calls

Same body and answer as GET /v1/live-hosts/calls (reference), minus private money fields. Own calls only.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
statusstringoptional (query)every statuslive, connecting, connected, endedlive = every call that has not ended.status=live
end_user_idstringoptionalthe signed-in useronly 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_refstringoptional (query)–up to 128 charactersOnly calls with this host.h_9f2a
listingstringoptional (query)bothauto, directOnly calls from this listing.direct
beforestringoptional (query)–ISO 8601 date-timeCalls created before this time (paging: pass next_before).2026-11-28T10:00:00Z
limitintegeroptional (query)251 to 100 (higher is treated as 100)Page size.50

Response

FieldTypeWhat it means
dataarrayCall objects, newest first.
next_beforestring or nullPass as before for the next page.

GET /v1/client/live-hosts/calls/{id}

GET/v1/client/live-hosts/calls/{id}

Same body and answer as GET /v1/live-hosts/calls/{id} (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
idstring (UUID)required (in the path)–an ID from a create or list answerThe Live Hosts call ID.6a1f…

Response

FieldTypeWhat it means
idstringThe call ID.
objectstringAlways live_host_call.
typestringaudio or video.
statusstringconnecting, ringing, connected, ending or ended.
roomstringMedia room name.
end_user_idstringYour user.
end_user_namestring or nullThe name the host sees.
hostobject or null{ host_ref, name, photo_url, photo, age, languages }; null until a host is matched.
rateobject{ currency, per_minute }: what we deduct per minute.
listingstringauto or direct.
billing_unit_secondsinteger1 (per second) or 60 (Direct: per started minute).
end_user_priceobjectYour own price, locked at the start: { currency, per_minute }.
end_user_amountnumberConnected time at your price.
marginnumberend_user_amount minus cost.
created_at, connected_at, ended_atstring or nullTimes, ISO 8601 UTC.
billed_secondsintegerBilled seconds so far.
costnumberWhat left your balance.
unrecoverednumberAmount that could not be taken from the balance.
free_secondsintegerSeconds covered by free minutes.
cost_breakdownarrayFree and paid parts of the call, one paid line per rate.
end_reasonstring or nullWhy it ended (see End reasons).
end_code, end_user_code, end_user_messagestring or nullThe public code for that reason and a sentence for your user.
max_secondsintegerTime limit of this call.

POST /v1/client/live-hosts/calls/{id}/end

POST/v1/client/live-hosts/calls/{id}/end

Same body and answer as POST /v1/live-hosts/calls/{id}/end (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
idstring (UUID)required (in the path)–an ID from a create or list answerThe Live Hosts call ID.6a1f…

Response

FieldTypeWhat it means
idstringThe call ID.
objectstringAlways live_host_call.
typestringaudio or video.
statusstringconnecting, ringing, connected, ending or ended.
roomstringMedia room name.
end_user_idstringYour user.
end_user_namestring or nullThe name the host sees.
hostobject or null{ host_ref, name, photo_url, photo, age, languages }; null until a host is matched.
rateobject{ currency, per_minute }: what we deduct per minute.
listingstringauto or direct.
billing_unit_secondsinteger1 (per second) or 60 (Direct: per started minute).
end_user_priceobjectYour own price, locked at the start: { currency, per_minute }.
end_user_amountnumberConnected time at your price.
marginnumberend_user_amount minus cost.
created_at, connected_at, ended_atstring or nullTimes, ISO 8601 UTC.
billed_secondsintegerBilled seconds so far.
costnumberWhat left your balance.
unrecoverednumberAmount that could not be taken from the balance.
free_secondsintegerSeconds covered by free minutes.
cost_breakdownarrayFree and paid parts of the call, one paid line per rate.
end_reasonstring or nullWhy it ended (see End reasons).
end_code, end_user_code, end_user_messagestring or nullThe public code for that reason and a sentence for your user.
max_secondsintegerTime limit of this call.

POST /v1/client/live-hosts/calls/{id}/gifts

POST/v1/client/live-hosts/calls/{id}/gifts

Same body and answer as POST /v1/live-hosts/calls/{id}/gifts (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
idstring (UUID)required (in the path)–a Live Hosts call of your key's projectThe call. The gift goes from its end user to its host; the call must be connected.5d2c9a44-0b1e-4c7a-9f21-6e3d8a7b1c02
gift_idstringrequired–1–80 of <code>A-Z a-z 0-9 _ -</code>, an ID from the gift listWhich gift to send.g_rose
countintegeroptional11 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_idstringrequired–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_pricenumberoptional–above 0, in your billing currencyThe 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

FieldTypeWhat it means
idstringID of the send.
objectstringAlways gift.
statusstringsent, pending or refused.
surfacestringcall (a Live Hosts call) or stream (a live stream).
gift_id, name, countstring, string, integerThe gift and how many.
end_user_idstringWho sent it.
call_idstringThe Live Hosts call it was sent in (surface call only).
stream_ref, stream_idstringThe live it was sent in (surface stream only).
hostobjecthost_ref and name of the host who got it.
cost, unit_costnumberYour cost for the send and for one gift (server answers only; left out in Quick mode).
price, unit_price, you_keepnumberYour price for the send and for one gift, and what stays with you (you_keep is left out in Quick mode).
currencystringINR or USD.
client_request_idstringYour ID for this gift, as sent.
errorstring or nullThe refusal code of a refused gift, otherwise null.
created_at, decided_atstring (ISO time)When it was asked for and when it was decided.
replaybooleantrue when this answers a repeat of an earlier client_request_id.
balancenumberYour balance after the send (server answers only).
receipt, receipt_signatureobject, stringThe signed receipt of a sent gift.

GET /v1/client/live-streams

GET/v1/client/live-streams

Same body and answer as GET /v1/live-streams (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
typestringoptional (query)allvideo, audio, allWhich lives to list. Audio rooms are not offered yet, so today only video lives come back.video
limitintegeroptional (query)501–100 (a bigger number is treated as 100)How many lives to return at most.20

Response

FieldTypeWhat it means
dataarrayThe lives on air: stream_ref, type, title, viewers, started_at, host { host_ref, name, photo_url, age, languages }.
pausedbooleantrue while Live Streams is paused (the list is then empty).
typestring or nullThe type filter that was used (null = all).

GET /v1/client/live-streams/gifts

GET/v1/client/live-streams/gifts

Same body and answer as GET /v1/live-streams/gifts (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
No parameters.

Response

FieldTypeWhat it means
enabledbooleanWhether gifts can be sent now.
reasonstring or nulloff_by_you or not_available when gifts are off, otherwise null.
currencystringYour billing currency.
max_countintegerThe most gifts one send may carry.
versionstring or nullChanges whenever the list or one of your prices changes: your cache key.
giftsarrayThe 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.
dataarrayThe same list again (kept for older clients).

POST /v1/client/live-streams/{ref}/join

POST/v1/client/live-streams/{ref}/join

Same body and answer as POST /v1/live-streams/{ref}/join (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
refstringrequired (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_idstringoptionalthe signed-in useronly 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
namestringoptionalGuestup to 40 characters; control characters and <code>&lt; &gt;</code> are removedThe 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

FieldTypeWhat it means
viewer_idstringID of the viewer session (the same one while it stays open).
tokenstringViewer token for the room, valid 10 minutes. Subscribe-only: no camera or microphone.
livekit_urlstringThe media server URL to connect to.
roomstringThe room name.
identitystringThis viewer's identity in the room.
expires_atstring (ISO time)When the token stops working. Renew it before then.
streamobjectstream_ref, status (waiting or live), type, title, host { host_ref, name, photo_url }.
giftsobjectenabled and version of the gift list: show a gift button, refresh a cached list.

POST /v1/client/live-streams/{ref}/token

POST/v1/client/live-streams/{ref}/token

Same body and answer as POST /v1/live-streams/{ref}/token (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
refstringrequired (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_idstringoptionalthe signed-in useronly 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

FieldTypeWhat it means
viewer_idstringID of the viewer session (the same one while it stays open).
tokenstringViewer token for the room, valid 10 minutes. Subscribe-only: no camera or microphone.
livekit_urlstringThe media server URL to connect to.
roomstringThe room name.
identitystringThis viewer's identity in the room.
expires_atstring (ISO time)When the token stops working. Renew it before then.
streamobjectstream_ref, status (waiting or live), type, title, host { host_ref, name, photo_url }.

POST /v1/client/live-streams/{ref}/leave

POST/v1/client/live-streams/{ref}/leave

Same body and answer as POST /v1/live-streams/{ref}/leave (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
refstringrequired (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_idstringoptionalthe signed-in useronly 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

FieldTypeWhat it means
okbooleanAlways true.
viewerobject or nullThe 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

GET/v1/client/live-streams/{ref}/comments

Same body and answer as GET /v1/live-streams/{ref}/comments (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
refstringrequired (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
afterstringoptional (query)none (the recent chat)up to 200 characters: the <code>cursor</code> of the previous answerReturn only what came after this point.c_19f2

Response

FieldTypeWhat it means
statusstringThe live's state, for example live.
end_reasonstring or nullWhy the live ended, once it has.
viewersintegerEveryone watching now.
host_awaybooleanThe host's video is paused.
cursorstringPass it as after next time.
dataarrayChat and gift items: type, id, at, from { name, role, end_user_id }, text or gift.

POST /v1/client/live-streams/{ref}/comments

POST/v1/client/live-streams/{ref}/comments

Same body and answer as POST /v1/live-streams/{ref}/comments (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
refstringrequired (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_idstringoptionalthe signed-in useronly 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
textstringrequired–1–200 characters (control characters are removed)The chat message.Hello!
client_idstringoptionala new UUIDup to 64 charactersYour own ID for the message.m-1042

Response

FieldTypeWhat it means
message_idstring or nullID of the posted message.

POST /v1/client/live-streams/{ref}/gifts

POST/v1/client/live-streams/{ref}/gifts

Same body and answer as POST /v1/live-streams/{ref}/gifts (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
refstringrequired (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_idstringoptionalthe signed-in useronly 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_idstringrequired–1–80 of <code>A-Z a-z 0-9 _ -</code>, an ID from the gift listWhich gift to send.g_rose
countintegeroptional11 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_idstringrequired–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_pricenumberoptional–above 0, in your billing currencyThe 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

FieldTypeWhat it means
idstringID of the send.
objectstringAlways gift.
statusstringsent, pending or refused.
surfacestringcall (a Live Hosts call) or stream (a live stream).
gift_id, name, countstring, string, integerThe gift and how many.
end_user_idstringWho sent it.
call_idstringThe Live Hosts call it was sent in (surface call only).
stream_ref, stream_idstringThe live it was sent in (surface stream only).
hostobjecthost_ref and name of the host who got it.
cost, unit_costnumberYour cost for the send and for one gift (server answers only; left out in Quick mode).
price, unit_price, you_keepnumberYour price for the send and for one gift, and what stays with you (you_keep is left out in Quick mode).
currencystringINR or USD.
client_request_idstringYour ID for this gift, as sent.
errorstring or nullThe refusal code of a refused gift, otherwise null.
created_at, decided_atstring (ISO time)When it was asked for and when it was decided.
replaybooleantrue when this answers a repeat of an earlier client_request_id.
balancenumberYour balance after the send (server answers only).
receipt, receipt_signatureobject, stringThe signed receipt of a sent gift.

POST /v1/client/live-streams/{ref}/report

POST/v1/client/live-streams/{ref}/report

Same body and answer as POST /v1/live-streams/{ref}/report (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
refstringrequired (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_idstringoptionalthe signed-in useronly 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
reasonstringrequired–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
detailsstringoptionalemptyup to 1000 charactersMore words from your user.Rude language in chat

Response

FieldTypeWhat it means
okbooleanAlways true: the report is in the moderation queue.

GET /v1/client/gifts

GET/v1/client/gifts

Same body and answer as GET /v1/gifts (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
includestringoptional (query)none (hidden gifts left out)hiddenSend hidden to also get the gifts you hid.hidden

Response

FieldTypeWhat it means
enabledbooleanWhether gifts can be sent now.
reasonstring or nulloff_by_you or not_available when gifts are off, otherwise null.
currencystringYour billing currency.
max_countintegerThe most gifts one send may carry.
versionstring or nullChanges whenever the list or one of your prices changes: your cache key.
giftsarrayThe 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

GET/v1/client/gifts/sends

Same body and answer as GET /v1/gifts/sends (reference), minus private money fields. Own gift history only.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
surfacestringoptional (query)bothcall, stream (another value is ignored)Only sends of one kind.stream
statestringoptional (query)allpending, sent, refused, refunded (another value is ignored)Only sends in this state.pending
call_idstringoptional (query)alla Live Hosts call IDOnly sends in this call.5d2c9a44-0b1e-4c7a-9f21-6e3d8a7b1c02
stream_refstringoptional (query)alla <code>stream_ref</code>Only sends in this live.ls_8fK2a9
end_user_idstringoptionalthe signed-in useronly 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_idstringoptional (query)allan ID from the gift listOnly sends of this gift.g_rose
client_request_idstringoptional (query)allup to 64 charactersFinds the one send you made with this ID.8f1c2f0e-6a5b-4d0e-9a51-0c1e6f4f2b7d
beforestring (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
limitintegeroptional (query)501–200 (a bigger number is treated as 200)How many sends at most.100

Response

FieldTypeWhat it means
dataarrayThe sends, newest first, each like the answer of a send (without replay, balance and the receipt).
next_beforestring or nullPass it as before for the next page; null on the last page.

GET /v1/client/gifts/sends/{id}

GET/v1/client/gifts/sends/{id}

Same body and answer as GET /v1/gifts/sends/{id} (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
idstring (UUID)required (in the path)–the <code>id</code> of a send of your key's projectThe send you want.0b7e6c1a-2d4f-4a8e-b1c3-9f0e7d6c5b4a

Response

FieldTypeWhat it means
idstringID of the send.
objectstringAlways gift.
statusstringsent, pending or refused.
surfacestringcall (a Live Hosts call) or stream (a live stream).
gift_id, name, countstring, string, integerThe gift and how many.
end_user_idstringWho sent it.
call_idstringThe Live Hosts call it was sent in (surface call only).
stream_ref, stream_idstringThe live it was sent in (surface stream only).
hostobjecthost_ref and name of the host who got it.
cost, unit_costnumberYour cost for the send and for one gift (server answers only; left out in Quick mode).
price, unit_price, you_keepnumberYour price for the send and for one gift, and what stays with you (you_keep is left out in Quick mode).
currencystringINR or USD.
client_request_idstringYour ID for this gift, as sent.
errorstring or nullThe refusal code of a refused gift, otherwise null.
created_at, decided_atstring (ISO time)When it was asked for and when it was decided.
receipt, receipt_signatureobject, stringFor a sent gift: the signed receipt.
algorithm, key_idstringEd25519 and the signing key.

POST /v1/chat/client/tokens

POST/v1/chat/client/tokens

Same body and answer as POST /v1/chat/tokens (reference), minus private money fields.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
user_idstringoptionalthe signed-in useronly the signed-in userThe chat user. In Quick mode it defaults to, and must be, the user the app signed in with.user-42
namestringoptionalunchanged (none for a new user)up to 80 charactersDisplay name shown to other users.Asha
avatar_urlstringoptionalunchanged (none for a new user)up to 500 charactersLink to the profile picture.https://cdn.example.com/a.jpg
customobjectoptionalunchanged ({} for a new user)a JSON objectYour own data on the profile (for example a role or a level). Replaces the stored object when sent.{"level":3}
ttl_secondsintegeroptional360060 to 604800 (7 days)How long the token works. When it expires the SDK asks for a new one and reconnects.3600

Response

FieldTypeWhat it means
tokenstringThe chat token. The app passes it to connect().
user_idstringThe user it is for.
expires_atstringISO time it stops working.
ws_urlstringThe WebSocket address.
api_urlstringThe API address (for uploads).

PUT /v1/chat/client/users/{user_id}

PUT/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.

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
user_idstringoptionalthe signed-in useronly the signed-in userThe chat user. In Quick mode it defaults to, and must be, the user the app signed in with.user-42
namestringoptionalunchanged (none for a new user)up to 80 charactersDisplay name shown to other users.Asha
avatar_urlstringoptionalunchanged (none for a new user)up to 500 charactersLink to the profile picture.https://cdn.example.com/a.jpg
customobjectoptionalunchanged ({} for a new user)a JSON objectYour own data on the profile (for example a role or a level). Replaces the stored object when sent.{"level":3}

Response

FieldTypeWhat it means
idstringThe user id.
namestring or nullDisplay name.
avatar_urlstring or nullProfile picture link.
customobjectYour 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.

Start free