Live Hosts API

Let your users video-call Titli's hosts from your own app. You do not run hosts, wallets or payouts: your app starts a call with your App Key (or your server with your API key), the SDK joins it, and we bill your prepaid balance while the call is connected: per second on the auto listing, per started minute on a Direct call.

Live Hosts is off for every account until we switch it on. Ask support (console → Support) to enable it. Product overview and pricing: Live Hosts API.

Set in your dashboard vs. set in code

SettingWhere
Hidden hosts and the price your users pay for Live HostsDashboard: Console → Live Hosts (or the server-only hide routes)
Listing defaults: sort, languages, age range, pinned hostsDashboard: Console → Live Hosts → Listings
Blur host photos until the call connectsDashboard: Console → Live Hosts → Host photos
App Key, its bindings (package name, bundle ID, website, signing certificate) and Quick-mode capsDashboard: Console → Projects → Quick mode
Which host, call type and listingCode: host_ref, type and listing when you start the call

Concepts

TermMeaning
HostA Titli host who is online and taking calls. You see host_ref, name, photo (a signed link, see Host photos), age, languages and online/busy.
host_refOpaque, stable ID of a host for your account. It is not a Titli user ID and cannot be used anywhere else.
End userYour user who calls. Identified by your own stable end_user_id; end_user_name is what the host sees (default "Guest").
CallOne end user ↔ one host. States: connecting → ringing → connected → ending → ended.
RoomThe media room your app joins with livekit_url + token (the host joins it on our side).
ListingWhere a host is offered. auto = the always-live pool at one flat price per call type. direct = hosts who take direct calls at their own price (video).
CostWhat we deduct from your balance per minute (cost_per_minute in lists, rate on a call).
Your priceWhat you charge your user per minute (price_per_minute). You set it in the console; it can never be below the cost. We never bill it: you collect it from your users.

Privacy: you never receive a host's phone number, Titli user ID or any contact detail, and the host never sees your company name. The host sees the display name you send.

Quickstart

Quick mode: from the app, no backend needed

With the App Key in your app (Quickstart), list hosts and start the call straight from the app. startCall creates the call and joins it.

Dart
await TitliVideo.init(appKey: 'tak_…', userId: 'user_123', userName: 'Rahul');
final hosts = await TitliVideo.liveHosts.hosts();
final call = await TitliVideo.liveHosts.startCall(hostRef: 'any', type: TitliCallType.video);

Quick-mode answers leave out your money fields (what a minute costs you, your margin). Show your users your own price from your app. Every route an app can call: Client API (Quick mode).

Production hardening (optional): from your server

The same flow with your project key on your own server, when you want your server to decide every call.

1. (Optional) list hosts on your server and show them in your app

terminal
curl -s "$API/v1/live-hosts/hosts?language=hi&limit=20" -u "$KEY_ID:$KEY_SECRET"

2. Create the call on your server

Never put the key secret in the app.

terminal
curl -s $API/v1/live-hosts/calls -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
  -d '{"end_user_id":"user_123","end_user_name":"Rahul","host_ref":"any","type":"video"}'

The answer (201) carries livekit_url and token. Send both to your app.

3. Join from the app with the SDK you already use

Dart
final call = await TitliCall.connect(url: livekitUrl, token: token, video: true);
// then
TitliCallScreen(call: call)

No SDK change is needed: a Live Hosts call is an ordinary room for the app. The host appears as the remote participant (identity host_<host_ref>, name = host name); your user's identity is eu_<end_user_id>.

4. Listen for webhooks

live_host.call.connected and live_host.call.ended (below). A Node server example and per-SDK snippets are in the console under Live Hosts → Quickstart.

REST reference

Base URL (https://api-videosdk.titliapp.com) and auth are the same as the rest of /v1: HTTP Basic key_id:key_secret from your server. Listing hosts and starting, reading and ending your own calls are also open to an app with the App Key (Quick mode, under /v1/client/live-hosts, same parameters, without your money fields such as pricing, cost and margin); pricing, stats, receipts and hiding hosts are server only. Each route says which. Errors use the usual shape {"error":{"code","message"}}.

List hosts (auto listing)

GET/v1/live-hosts/hosts

The auto listing: the always-live pool, one flat price per call type. Every query parameter is optional.

Also from an app (Quick mode): GET /v1/client/live-hosts/hosts with the App Key, same parameters; answers leave out your money fields. See Client API.

Parameters

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.

Anything you leave out falls back to the defaults you saved in the console (Live Hosts → Listings): default sort, languages, age range, pinned hosts, max hosts.

terminal
curl -s "$API/v1/live-hosts/hosts?language=hi&min_age=21&max_age=30&sort=new&limit=20" -u "$KEY_ID:$KEY_SECRET"
Response
{ "hosts": [ { "host_ref": "h_9f2a", "name": "Asha", "photo_url": "https://…", "photo": { … },
               "age": 24, "languages": ["hi","en"], "status": "online", "online": true, "last_seen_at": null,
               "audio_available": true, "video_available": true,
               "listing": "auto", "featured": false, "is_new": false,
               "pricing": { "currency": "INR", "cost_per_minute": 12, "price_per_minute": 15, "margin_per_minute": 3 } } ],
  "available_count": 1, "type": "video", "paused": false, "total": 1, "offset": 0, "next_offset": null }

Every host carries these fields, in both listings:

FieldMeaning
listingauto or direct
pricing{ currency, cost_per_minute, price_per_minute, margin_per_minute }: what a minute costs you, what you charge your user, and the difference. Show price_per_minute in your app. pricing_by_type has the same for video and audio when you did not ask for one type.
onlinetrue when the host is online on the Titli host network right now. Show a green dot.
last_seen_atWhen the host was last online, rounded down to 5 minutes for the host's privacy; null while online or when unknown.
statusCan the host take a call now: online (yes), busy (on a call), offline (not taking calls now; only with status=all).
featuredtrue for hosts you pinned in the console; they always come first.
is_newtrue for a host who joined (registered) within your "new badge" window (default 7 days). sort=new uses the same date.

Hosts you have hidden are never in any list (see Hide hosts). audio_available / video_available say which call types the host takes right now; status stays online / busy for both types.

Online hosts come first. busy hosts are on a call and cannot be called right now. The list is cached for about 3 seconds. paused: true means Titli has paused Live Hosts; the list is empty until it resumes.

List Direct hosts

GET/v1/live-hosts/direct-hosts

The Direct listing: hosts who take direct calls at their own price. Same query as above (no type: Direct is video), plus max_cost (only hosts who cost you at most this per minute), for example max_cost=30&sort=price_asc. Each host has their own pricing.

Also from an app (Quick mode): GET /v1/client/live-hosts/direct-hosts with the App Key, same parameters; answers leave out your money fields. See Client API.

Parameters

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.
Response
{ "enabled": true, "listing": "direct", "currency": "INR", "total": 37, "offset": 0, "next_offset": 20, "sort": "online",
  "hosts": [ { "host_ref": "h_9f2a", "name": "Asha", "photo_url": "https://…", "photo": { … }, "age": 24, "languages": ["hi","en"],
               "status": "online", "online": true, "last_seen_at": null, "listing": "direct", "featured": false, "is_new": false,
               "pricing": { "currency": "INR", "cost_per_minute": 22, "price_per_minute": 30, "margin_per_minute": 8 } } ] }

enabled: false (with an empty list) means the Direct listing is not switched on for your account; ask support to switch it on.

Get one host

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

One host from either listing, with fresh photo links, listings (["auto","direct"]) and, when the host is in the Direct listing, direct_pricing. Use it when a photo link has expired. 404 not_found when the host is not online right now or is hidden for your account.

Also from an app (Quick mode): GET /v1/client/live-hosts/hosts/{host_ref} with the App Key, same parameters; answers leave out your money fields. See Client API.

Parameters

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.

Hide hosts

A hidden host never appears in your lists and is never matched for your account, by "any" or by host_ref. Hiding changes nothing for other accounts. A call that is already running continues unless you ask to end it.

POST/v1/live-hosts/hosts/hide

Body: { "host_refs": ["h_9f2a", …], "reason": "optional note", "end_live": false } (up to 500 at once). Returns { hidden: [...], already: [...], calls_ended: 0 }.

Server only. Needs your project key; an app cannot call it with the App Key.

Parameters

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
host_refsarray of stringsrequired–1 to 500 items, each [A-Za-z0-9_-]{3,64}Hosts to hide. Send this or host_ref.["h_9f2a","h_77b1"]
host_refstringoptional–[A-Za-z0-9_-]{3,64}One host, instead of host_refs.h_9f2a
reasonstringoptional–up to 300 charactersYour note, kept in the change history.Not a fit for our app
end_livebooleanoptionalfalsetrue, falsetrue also ends calls already running with these hosts.true

Response

FieldTypeWhat it means
hiddenarray of stringsHosts hidden by this request.
alreadyarray of stringsHosts that were hidden already.
calls_endedintegerRunning calls ended (with end_live: true).
POST/v1/live-hosts/hosts/unhide

Body: { "host_refs": [...] }. Returns { restored: [...], still_hidden: [{ host_ref, by }] }. by: "operator" means the host was hidden by Titli support for your account; only support can lift that.

Server only. Needs your project key; an app cannot call it with the App Key.

Parameters

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
host_refsarray of stringsrequired–1 to 500 items, each [A-Za-z0-9_-]{3,64}Hosts to restore. Send this or host_ref.["h_9f2a"]
host_refstringoptional–[A-Za-z0-9_-]{3,64}One host, instead of host_refs.h_9f2a
reasonstringoptional–up to 300 charactersYour note, kept in the change history.Back on the list

Response

FieldTypeWhat it means
restoredarray of stringsHosts visible again.
still_hiddenarray{ host_ref, by }; by: "operator" means Titli support hid the host and only support can lift it.
GET/v1/live-hosts/hidden-hosts

Your hidden hosts, online or not. Every query parameter is optional.

Server only. Needs your project key; an app cannot call it with the App Key.

Parameters

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
qstringoptional (query)–up to 80 characters (longer is cut)Search by name (contains), or by the start of a host_ref.asha
listingstringoptional (query)bothauto, directOnly hosts in that listing.direct
presencestringoptional (query)bothonline, offlineOnly hosts online, or offline, now.offline
seen_within_minintegeroptional (query)no limit1 to 525600Only hosts online within this many minutes.1440
languagestringoptional (query)–up to 20 charactersMatches one of the host's languages.hi
min_ageintegeroptional (query)–18 to 99Youngest age to include.21
max_ageintegeroptional (query)–18 to 99Oldest age to include.30
directstringoptional (query)bothtrue, falseOnly hosts who are (or are not) in the Direct listing.true
sortstringoptional (query)onlineonline, last_seen, price_asc, price_desc, name, new, seen, calls, hiddencalls: most calls with you first; hidden: most recently hidden first; seen: first seen by your account.last_seen
scopestringoptional (query)hiddenall, hidden, visibleAccepted for symmetry with the console; this route always lists hidden hosts.hidden
formatstringoptional (query)JSON pages of limitcsvcsv returns up to 5,000 rows in one page (still JSON on this route; the console has the CSV file).csv
limitintegeroptional (query)251 to 100 (higher is treated as 100)Page size.50
offsetintegeroptional (query)00 to 1000000Where the page starts.25

Response

FieldTypeWhat it means
totalintegerHidden hosts matching the query.
offset, limit, next_offsetintegerPaging.
sourcestringnetwork (the whole host network) or seen (only hosts shown to your account).
dataarrayHosts: host_ref, name, age, languages, online, last_seen_at, status, listings, direct_pricing, hidden, hidden_by, hidden_at, hidden_reason, calls, last_call_at.
Response
{ "total": 1, "offset": 0, "limit": 1, "next_offset": null, "source": "network",
  "data": [ { "host_ref": "h_9f2a", "name": "Asha", "age": 24, "languages": ["hi","en"], "online": false, "last_seen_at": "2026-11-28T18:40:00Z",
              "status": "offline", "listings": ["auto"], "audio_available": false, "video_available": false,
              "direct_pricing": null, "direct_cost_per_minute": null,
              "hidden": true, "hidden_by": ["vendor"], "hidden_at": "2026-11-28T10:02:11Z", "hidden_reason": "Not a fit for our app",
              "calls": 3, "last_call_at": "2026-11-20T15:12:09Z" } ] }

hidden_by lists who hid the host for your account: vendor (you) and/or operator (Titli support). calls and last_call_at count your account's calls with this host. source is network (the whole host network) or seen (only hosts your account has been shown, while the network list is being refreshed).

terminal
curl -s $API/v1/live-hosts/hosts/hide -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
  -d '{"host_refs":["h_9f2a"],"reason":"Not a fit for our app","end_live":false}'

Limits: hide and restore share 1 request a second per account (burst 10; 429 rate_limited above that), and an account can hide at most 2,000 hosts (409 hidden_limit: restore some first).

The console does the same with search, bulk actions, CSV and a history of every change (Live Hosts → Hosts).

Create a call

POST/v1/live-hosts/calls

Body: end_user_id (required, [A-Za-z0-9_.:@-]{1,128}), end_user_name (optional, ≤ 40 chars), host_ref (a host_ref from the list, or "any" / omitted for any available host), type ("video" default, or "audio" for a voice-only call; see Audio calls below).

Also from an app (Quick mode): POST /v1/client/live-hosts/calls with the App Key, same parameters; answers leave out your money fields. See Client API.

Parameters

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
end_user_idstringrequired–[A-Za-z0-9_.:@-]{1,128}Your user's stable ID. In Quick mode it is the user itself (filled for you).user_123
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.

Direct call: add "listing": "direct" (or the short form "type": "direct") with a host_ref from GET /v1/live-hosts/direct-hosts. The host's price is locked when the call starts and the call is billed per started minute at it (billing_unit_seconds: 60). Optional max_cost_per_minute: if the price moved above it since you showed the list, the call is refused with 409 price_changed (the new cost_per_minute is in the error) and nobody is rung.

terminal
curl -s $API/v1/live-hosts/calls -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
  -d '{"end_user_id":"user_123","end_user_name":"Rahul","host_ref":"h_9f2a","listing":"direct","max_cost_per_minute":22}'
201 Created
{ "call_id": "…", "id": "…", "object": "live_host_call", "type": "video", "status": "connecting", "room": "lh_…",
  "livekit_url": "wss://…", "token": "eyJ…", "identity": "eu_user_123",
  "end_user_id": "user_123", "end_user_name": "Rahul",
  "host": { "host_ref": "h_9f2a", "name": "Asha", "photo_url": "https://…", "photo": { … }, "age": 24, "languages": ["hi","en"] },
  "rate": { "currency": "INR", "per_minute": 12 }, "listing": "auto", "billing_unit_seconds": 1,
  "end_user_price": { "currency": "INR", "per_minute": 15 }, "end_user_amount": 0, "margin": 0, "max_seconds": 7200,
  "billed_seconds": 0, "free_seconds": 0, "cost": 0, "cost_breakdown": [], "unrecovered": 0,
  "end_reason": null, "created_at": "…", "connected_at": null, "ended_at": null }

call_id and id are the same value. host is null until a host is matched when you asked for "any". rate is what we deduct per minute (for a Direct call: the host's locked price to you). billing_unit_seconds is the step the call is billed in: 60 for a Direct call (billed per started minute), 1 otherwise (counted by the second). end_user_price is your own price locked at the start; end_user_amount = connected time × your price; margin = end_user_amount − cost.

The end-user token is valid for one hour, but join right away: the host is rung only once your user's app is in the room (for a video call: once its camera video is flowing). If that does not happen within about 30 seconds the call ends with end_reason: "end_user_absent" and nothing is billed. Ask for camera and microphone permission before you create the call, not after. Creating calls is limited to 2 a second per account (burst 20); above that the answer is 429 rate_limited.

Get a call

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

The call object above without token. status: connecting (host being reached), ringing (host matched), connected (billing), ending (hang-up in progress), ended. billed_seconds and cost grow every 5 seconds while connected (on a Direct call: one started minute at a time). end_reason once ended (see below).

Also from an app (Quick mode): GET /v1/client/live-hosts/calls/{id} with the App Key, same parameters, own calls only; answers leave out your money fields. See Client API.

Parameters

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.

List calls

GET/v1/live-hosts/calls

Query: status (live, connecting, connected, ended), end_user_id, host_ref, before (ISO time, for paging), limit (≤ 100). Returns { data: [call], next_before }.

Also from an app (Quick mode): GET /v1/client/live-hosts/calls with the App Key, same parameters, own calls only; answers leave out your money fields. See Client API.

Parameters

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
statusstringoptional (query)every statuslive, connecting, connected, endedlive = every call that has not ended.status=live
end_user_idstringoptional (query)–[A-Za-z0-9_.:@-]{1,128}Only this user's calls.user_123
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.

End a call

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

Ends the call gracefully (for the host it looks like the caller hung up). Returns the call, usually with status: "ending"; it becomes ended within a second or two. Ending an ended call is a no-op.

Also from an app (Quick mode): POST /v1/client/live-hosts/calls/{id}/end with the App Key, same parameters, own calls only; answers leave out your money fields. See Client API.

Parameters

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.

Receipt

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

Ed25519-signed receipt of an ended, connected call (kind: "live_host_call", billed seconds, rate, amount, and listing, end_user_price_per_minute, end_user_amount). Verify with GET /v1/receipts/public-key or POST /v1/receipts/verify, as for normal calls. A call that never connected has no receipt (409 no_receipt): nothing was billed.

Server only. Needs your project key; an app cannot call it with the App Key.

Parameters

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
receiptobjectThe receipt (canonical JSON: keys sorted, no whitespace).
signaturestringEd25519 signature, base64.
algorithmstringAlways Ed25519.
key_idstringWhich signing key; match it with GET /v1/receipts/public-key.

Stats

GET/v1/live-hosts/stats

Query: group = day | end_user | host | type | listing, type (audio / video filter), listing (auto / direct filter), from, to (ISO; default the last 30 days), limit. Every row and the totals also have end_user_amount (connected time at your own price) and margin (that minus spend), and by_listing gives the same per listing. group=host is your per-host report: calls, minutes, our charge, your price, your margin. Every answer also carries by_type totals: "by_type": { "video": { "calls", "connected_calls", "seconds", "minutes", "spend" }, "audio": { … } }.

Server only. Needs your project key; an app cannot call it with the App Key.

Parameters

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
groupstringoptional (query)dayday, end_user, host, type, listingHow rows are grouped.host
typestringoptional (query)bothaudio, videoOnly this call type.video
listingstringoptional (query)bothauto, directOnly this listing.direct
fromstringoptional (query)30 days before toISO 8601 date-timeStart of the period (must be before to).2026-11-01T00:00:00Z
tostringoptional (query)nowISO 8601 date-timeEnd of the period.2026-12-01T00:00:00Z
limitintegeroptional (query)1001 to 1000 (higher is treated as 1000)Most rows.50

Response

FieldTypeWhat it means
groupstringThe grouping used.
currencystringYour billing currency.
timezonestringDays are counted in this time zone.
dataarrayRows: key, calls, connected_calls, seconds, minutes, spend, free_seconds, end_user_amount, margin, last_call_at.
totalsobjectThe same summed.
by_typeobjectTotals per call type.
by_listingobjectTotals per listing.
by_ratearray{ type, rate_per_minute, seconds, cost }.
Response
{ "group": "host", "currency": "INR", "timezone": "Asia/Kolkata",
  "data": [ { "key": "h_9f2a", "host_name": "Asha", "calls": 12, "connected_calls": 11, "seconds": 2410, "minutes": 40.17, "spend": 401.67, "last_call_at": "…" } ],
  "totals": { "calls": 12, "connected_calls": 11, "seconds": 2410, "minutes": 40.17, "spend": 401.67 } }

Gifts

POST/v1/live-hosts/calls/:call_id/gifts

Your user sends a gift to the host during a connected call (auto or Direct). Body: gift_id (from GET /v1/gifts), count (1 to max_count, 99 by default; default 1), client_request_id (required, your unique ID for this gift: the same ID never charges twice), expected_price (the price of one gift in your list; optional, but always send it). Answers the gift with its signed receipt: 201 sent, 200 for a repeated client_request_id, 202 while it is pending.

Gifts come from our gift catalog; you choose which ones your users see and what they pay. Each gift has a cost to you, shown in your console and the API. You set your price (it cannot be below the gift list price), and you keep the difference. The cost is taken from your prepaid balance when the gift is sent, and a gift that cannot be delivered is refunded automatically. A pending send keeps its cost held until it is confirmed (webhook gift.sent) or refused (webhook gift.failed, refunded). The call-create answer carries gifts: { enabled, version }, so your app knows whether to show the gift button. The gift list, your prices, errors, stats and both webhooks are in the Gifts API reference.

Pricing and free minutes

GET/v1/live-hosts/pricing

Your current rates, volume tiers and free minutes left, per call type, plus end_user_prices (your own prices, with the cost and margin per minute) and direct { enabled, markup_type, markup_value, round_to } (your Direct markup: flat per minute or percent). See Pricing.

Server only. Needs your project key; an app cannot call it with the App Key.

Parameters

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
No parameters.

Response

FieldTypeWhat it means
currencystringYour billing currency.
ratesobjectYour flat rate per call type.
tier_periodstringmonthly or lifetime.
tiersobjectVolume tiers per call type.
free_monthly_minutesobjectMonthly free minutes per call type.
statusobjectPer type: current_rate_per_minute, minutes_used, next_tier, free.
end_user_pricesobjectPer type: your price, the cost and the margin per minute.
directobject{ enabled, markup_type, markup_value, round_to, billing_unit_seconds }.

Errors

HTTPcodeWhen
400invalid_requestBad body or query
402insufficient_balanceBalance below one minute at your Live Hosts rate (plus one minute for each call already running). A Direct call needs at least one full minute of the host's price
403live_hosts_disabledLive Hosts is not enabled for your account
403calls_disabledNew calls are switched off for your account
403end_user_blockedThis end user is blocked
409host_unavailableThe chosen host is busy, offline or no longer available
403host_hiddenYou have hidden this host for your account (restore the host in the console or with /hosts/unhide)
403direct_disabledThe Direct listing is not enabled for your account, or is switched off right now
409price_changedDirect call: the host's price is now above your max_cost_per_minute; the error has the new cost_per_minute
422price_below_cost(console) your price for your users is below what a minute costs you; the error has the lowest allowed min
409hidden_limitYou have hidden the most hosts an account can hide (2,000 by default); restore some first
409no_host_available"any" and nobody is free right now
503lines_busyEvery Live Hosts line is in use right now; retry in a minute
409end_user_busyThis end user is already on a Live Hosts call
429daily_cap_reachedToday's Live Hosts spending cap is reached (resets at midnight in your account time zone)
429concurrency_limitToo many Live Hosts calls at once for your account (default 5) or on our side
429rate_limitedMore than 2 new calls a second for your account (burst 20), more than 1 hide or restore a second (burst 10), or over the general API limit; wait retry_after_ms
503partner_pausedLive Hosts is paused (by us or by Titli); try later
503partner_unavailable / media_unavailableA dependency did not answer; retry in a few seconds
404not_foundUnknown call ID, or (for one host) the host is not online or is hidden for your account
409no_receiptThe call has not ended yet, or it never connected (nothing was billed)

Every error also carries error_code, user_code and user_message (a neutral sentence for your user): see Error codes.

The general codes of the REST API (401, 403 ip_not_allowed, 429 rate_limited, 500) apply here too.

What to do in your app: on 409 host_unavailable refresh the host list or retry with "any"; on 409 no_host_available and 503 lines_busy tell the user to try again in a minute; on 402 recharge (your user did nothing wrong); on 409 end_user_busy end that user's earlier call first (GET /v1/live-hosts/calls?status=live&end_user_id=…); on 409 price_changed refresh the Direct list and show your user the new price.

End reasons

end_reasonMeaningBilled
end_user_leftYour user hung up or left the roomConnected time only
end_user_absentYour user's app did not join the room and start sending media in time, so no host was rungNothing
host_endedThe host hung upConnected time only
host_no_answer, host_busy, host_unavailableThe host did not pick up, was on another call, or went offline before connectingNothing
vendor_endedYou called POST /v1/live-hosts/calls/:id/endConnected time only
balance_zeroYour balance (and free minutes) ran outUp to that second
daily_capToday's Live Hosts spending cap was reachedUp to that second
max_durationThe call reached max_secondsUp to that second
kill_switch, partner_off, operator_endedLive Hosts was switched off, or we ended the callUp to that second
errorA fault on our sideConnected time only

Webhooks

Delivered to your project's webhook URL with the usual Titli-Signature: t=…,v1=… header (see Webhooks).

  • live_host.call.connected — { call }. Billing starts at call.connected_at.
  • live_host.call.ended — { call, receipt, receipt_signature } (receipt is null if the call never connected).

call.type (audio / video) is in both events and in the receipt (receipt.type). Both events and the receipt also carry listing, your locked price and end_user_amount.

Host photos

Every host has a photo object (and photo_url, which is the same as photo.url). It is in the host list, in GET /v1/live-hosts/hosts/:host_ref, and in host of every call object and webhook.

Host photo object
"photo": {
  "id": "Qm3xT0c1b0V4a2pXk9dLrA",
  "url": "https://media-videosdk.titliapp.com/lh/p/Qm3xT0c1b0V4a2pXk9dLrA/256.webp?exp=1795885200&sig=rUS3CgSKT2oVdyLLocmt4I",
  "url_96": "…/96.webp?exp=…&sig=…", "url_256": "…/256.webp?exp=…&sig=…", "url_512": "…/512.webp?exp=…&sig=…",
  "expires_at": "2026-11-28T17:00:00.000Z",
  "is_placeholder": false,
  "blurred": false,
  "placeholder": { "initials": "AR", "color": "#6C4DF0" }
}
FieldMeaning
idThis version of the photo. It changes when the host changes the photo. Use id + size as your cache key.
urlThe standard size (256 px). Square, WebP.
url_96, url_256, url_512Fixed square sizes: 96 for lists, 256 for cards, 512 for a profile or call screen.
expires_atWhen these links stop working (24 hours after you got them by default; your console shows your value).
is_placeholdertrue when the host has no approved photo. The links then show a neutral avatar.
blurredtrue when "blur until the call connects" is on for your account and the call is not connected yet.
placeholderInitials and a colour, so you can draw your own avatar instead of loading ours.
  • A link is signed and expires. It is made for your account only. Changing any part of it, or using it after expires_at, gives a plain 404. There is nothing to list or guess.
  • The image is resized to the fixed sizes and carries no hidden data (no EXIF, no GPS, no camera details).
  • JPEG: replace .webp with .jpg in any link. The signature stays valid.
  • Links are public to whoever has them, like any signed image link: give them to your app, do not post them.
  • The same link is returned for a while (up to an hour), so normal HTTP and image caches work. Images answer with Cache-Control: public, max-age=300 and an ETag.
  • Limits: 600 photo requests a minute for one IP address and 6,000 a minute for your account (429 above that).

Refreshing

  • Never store a photo link in your database. Store host_ref.
  • Before expires_at, or when an image answers 404, call GET /v1/live-hosts/hosts again (or GET /v1/live-hosts/hosts/:host_ref for one host; 404 when the host is not online) and use the new photo.
  • When the host changes the photo, the next list has a new id and new links. When a photo is removed, links you already have show the neutral avatar at once.

Blur until the call connects (optional)

Switch it on in the console (Live Hosts → Host photos). The host list and a call that is not connected yet then carry blurred photos (blurred: true). When the call connects, host.photo in GET /v1/live-hosts/calls/:id and in the live_host.call.connected webhook is the sharp photo. A blurred link cannot be changed into a sharp one.

Showing it in an app

Cache by photo.id, not by the link, so a renewed link does not download the same photo again.

Dart
CachedNetworkImage(
  imageUrl: photo['url_256'],
  cacheKey: '${photo['id']}_256',
  errorWidget: (_, __, ___) => InitialsAvatar(photo['placeholder']), // expired: ask your server for the host again
)

Audio calls Live

Send "type": "audio" to POST /v1/live-hosts/calls for a voice-only call. Everything else (states, end, webhooks, receipts, billing per second) is the same as video.

  • Rate: the audio rate (default ₹8/min for INR accounts, $0.0865/min for USD accounts); video is from ₹12/min / $0.1297/min (see Pricing).
  • Hosts: list with GET /v1/live-hosts/hosts?type=audio; only hosts with audio_available: true take audio calls.
  • App: the token lets your user publish the microphone only (a camera track is refused). Join with video: false (Flutter TitliCall.connect), audioOnly: true (iOS / Android / React Native TitliCall.join), or room.localParticipant.setMicrophoneEnabled(true) (Web).
  • Errors specific to audio: 503 partner_paused when Titli has switched audio calls off, 503 lines_busy when every audio line is in use (audio has its own line limit, separate from video).
terminal
curl -s $API/v1/live-hosts/calls -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
  -d '{"end_user_id":"user_123","end_user_name":"Rahul","host_ref":"any","type":"audio"}'

How your balance is charged

Plain rules, with numbers. "Balance" is your prepaid wallet with us. Your users never pay us: you charge them your own price in your app.

Auto listing (always-live pool)

Our price is ₹12/min for video (your own rate is in the console). ₹12 is deducted from your balance for every connected minute, counted per second and taken from the balance every 5 seconds.

  • 2 min 30 s = 150 s × ₹12 ÷ 60 = ₹30.
  • You set your users' price, for example ₹15/min. For those 2 min 30 s your user pays you ₹37.50 and you keep ₹7.50 (₹3/min).

Direct listing

Each Direct host has her own price to you, shown per host in the API as pricing.cost_per_minute. You add your own price or markup on top, never below your cost.

Example: Asha: your cost ₹22/min, locked when the call starts → you charge your users ₹30/min → you keep ₹8/min. A 3-minute call: ₹66 from your balance, ₹90 from your user, ₹24 for you.

  • The price is locked when the call starts. If she changes her price during the call, nothing changes for that call.
  • Direct: billed per started minute: 1 min 05 s = 2 minutes = ₹44 at ₹22/min; 3 min = ₹66. The call object shows this step as billing_unit_seconds: 60.
  • You set a markup or a price per host in the console under Live Hosts → Your prices.

When billing starts and stops

  • It starts when the call is connected: the host's video and sound are flowing and your user is in the room. Ringing, a host who does not answer, a busy host and a call that never connects cost nothing.
  • It stops when the call ends: your user hangs up, the host hangs up, you end it by API, or a limit is reached.
  • If your user drops off (app closed, network lost) the call waits 10 seconds for them to come back. If they return, the call goes on. If they do not, it ends as end_user_left. Those 10 seconds are billed, because the host was still on the line. Hang up from your app (leave the room and call POST …/end) to stop at once.

When the balance runs out

Before each 5-second step we check that the balance can pay for the next step. If it cannot, the call ends by itself with end_reason: "balance_zero". The balance never goes below zero and you are never charged for more than you had. To start a call you need at least one minute of its price in the balance (plus one minute for each call already running). For a Direct call you need at least one full minute of the host's price to start. A Direct call that has no money for its next minute ends a few seconds before that minute would start (at most 8 seconds early): the minute it is in is billed in full and fully paid, and a minute you cannot pay never starts. Your user's app gets a neutral message with the code VB-410 (see Error codes).

Free minutes and welcome credit

  • Welcome credit is money in your balance: it is spent first, for any call, exactly like recharged money.
  • Monthly free minutes and granted free minutes apply to the auto listing only and are used before paid time.
  • A Direct call is always paid at its locked price: no free minutes and no volume tiers, because that price already pays the host at the host's own rate.

INR and USD

An INR account sees and pays ₹; a USD account sees and pays $. A USD account sees each host's cost in $ (for example $0.2379/min). Auto prices for USD accounts are fixed in $ ($0.1297/min video, $0.0865/min audio by default).

Where you see every rupee

Each call object (also inside the webhooks) has rate, billing_unit_seconds (60 for a Direct call, 1 otherwise), billed_seconds, cost (what left your balance), end_user_price, end_user_amount and margin. The signed receipt has the same numbers as rate_per_minute, billed_seconds, amount, end_user_price_per_minute and end_user_amount, plus listing. The console shows the same per call and per host, with CSV.

Billing

  • Price: your Live Hosts rate per minute for the call's type, after your free minutes and volume tiers (see Pricing below), billed per second on the auto listing. A Direct call is billed per started minute at the host's locked price (see Direct listing). It is separate from your normal audio/video call rates and their free seconds.
  • Billing starts only when the host's video and audio are flowing into the room and your user is in it (connected), and stops when the call ends. Ringing, a host who does not answer, and calls that never connect cost nothing.
  • Your balance is debited live every 5 seconds. When it cannot pay for the next few seconds, the call ends gracefully (balance_zero); the balance never goes below zero.
  • Optional daily cap per account (daily_cap), concurrency limit (default 5 calls at once), and a time limit per call (max_seconds, default 2 hours).
  • Each ended call adds one usage line to your ledger and statement.

Pricing

From ₹12/min video, ₹8/min audio (USD accounts: $0.1297/min video, $0.0865/min audio). Your account's own rates are what we agreed with you and are shown in the console; existing accounts keep their rates. A Direct call costs that host's own price to you (see Direct listing).

Volume tiers

Each call type (video, audio) can have up to 5 volume tiers: [{ "from_minutes": 1000, "rate": 8 }, …], in your billing currency. Below the first threshold your flat rate applies; from a threshold on, every minute costs that tier's rate. Example: flat ₹12 + tier {from_minutes: 1000, rate: 8} = ₹12/min up to 1,000 minutes, then ₹8/min, so a 1,500-minute month costs 1,000 × ₹12 + 500 × ₹8 = ₹16,000.

  • Volume = all connected minutes of that type in the period, free minutes included, across all your calls.
  • Period: monthly (calendar month in your account time zone; it restarts at local midnight on the 1st) or lifetime (never restarts). Monthly is the default.
  • Volume is shared by all your calls: when two calls run while you cross a threshold, each second is priced at the rate in force at that second. A call is billed by the period volume, not by the rate when it started; a window that crosses a threshold or the month boundary is split at that exact millisecond.

Free minutes

  • Monthly free minutes per type (renewed every calendar month, your time zone), used first.
  • Granted free minutes: one-time minutes we add (for a trial, a credit or a goodwill gesture), optionally with an expiry; used after the monthly ones, earliest expiry first.
  • Free time is never charged and never ends a call for low balance; once it is used up, the paid rate applies at once.
  • A call can start with zero balance while you have at least one free minute left.

Where you see it

GET/v1/live-hosts/pricing

Returns { currency, rates, tier_period, tiers, free_monthly_minutes, status: { video, audio }, end_user_prices, direct }; each status: current_rate_per_minute, minutes_used (this period), next_tier { from_minutes, rate_per_minute, minutes_to_go }, free { monthly_left_minutes, grants_left_minutes, grants: [{ minutes_left, expires_at }] }.

  • Every call (GET /v1/live-hosts/calls/:id, webhooks) has free_seconds and cost_breakdown: [{kind:"free", seconds, ms}, {kind:"paid", seconds, ms, rate_per_minute, cost}] (one paid line per rate).
  • Receipts carry the same as free_seconds and breakdown, for example a 2 min 17 s call that crossed 1,000 minutes:
Receipt
{ "billed_seconds": 137, "free_seconds": 10, "amount": 17.7069,
  "breakdown": [ { "kind": "free", "seconds": 10, "ms": 10000 },
                 { "kind": "paid", "seconds": 50, "ms": 50000, "rate_per_minute": 12, "cost": 10 },
                 { "kind": "paid", "seconds": 77, "ms": 77069, "rate_per_minute": 6, "cost": 7.7069 } ] }

(seconds is rounded down; the cost is computed from the exact milliseconds, so it never drifts.)

GET /v1/live-hosts/stats adds free_seconds per row and by_rate ([{ type, rate_per_minute, seconds, cost }]); the console downloads the same as CSV.

Limits and good practice

  • Keep the API key on your server. Create the call only after your own checks (login, your coins, age gates).
  • Show pricing.price_per_minute (your price) to your user, never cost_per_minute. Send max_cost_per_minute with a Direct call so a price change between your list and the call can never surprise you.
  • Reuse a stable end_user_id per user: per-user stats, blocks and Titli-side abuse controls use it.
  • Do not store photo links; store host_ref and ask for fresh links (see Host photos).
  • Show busy hosts as unavailable; call with "any" when you do not need a specific host.
  • Poll GET /v1/live-hosts/calls/:id or use the webhooks to learn when a call connects or ends.
Start free