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
| Setting | Where |
|---|---|
| Hidden hosts and the price your users pay for Live Hosts | Dashboard: Console → Live Hosts (or the server-only hide routes) |
| Listing defaults: sort, languages, age range, pinned hosts | Dashboard: Console → Live Hosts → Listings |
| Blur host photos until the call connects | Dashboard: Console → Live Hosts → Host photos |
| App Key, its bindings (package name, bundle ID, website, signing certificate) and Quick-mode caps | Dashboard: Console → Projects → Quick mode |
| Which host, call type and listing | Code: host_ref, type and listing when you start the call |
Concepts
| Term | Meaning |
|---|---|
| Host | A 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_ref | Opaque, stable ID of a host for your account. It is not a Titli user ID and cannot be used anywhere else. |
| End user | Your user who calls. Identified by your own stable end_user_id; end_user_name is what the host sees (default "Guest"). |
| Call | One end user ↔ one host. States: connecting → ringing → connected → ending → ended. |
| Room | The media room your app joins with livekit_url + token (the host joins it on our side). |
| Listing | Where 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). |
| Cost | What we deduct from your balance per minute (cost_per_minute in lists, rate on a call). |
| Your price | What 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.
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);TitliVideo.init({ appKey: 'tak_…', userId: 'user_123', userName: 'Rahul' });
const hosts = await TitliVideo.liveHosts.hosts();
const call = await TitliVideo.liveHosts.startCall({ hostRef: 'any', type: 'video' });TitliVideo.init(context, appKey = "tak_…", userId = "user_123", userName = "Rahul")
val call = TitliVideo.liveHosts.startCall(hostRef = "any", type = TitliCallType.VIDEO)TitliVideo.initialize(appKey: "tak_…", userId: "user_123", userName: "Rahul")
let call = try await TitliVideo.liveHosts.startCall(hostRef: "any", type: .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
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.
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
final call = await TitliCall.connect(url: livekitUrl, token: token, video: true);
// then
TitliCallScreen(call: call)const room = new Room();
await room.connect(livekitUrl, token);
await room.localParticipant.enableCameraAndMicrophone();TitliCallView(url: livekitUrl, token: token)
// or
try await TitliCall.join(url: livekitUrl, token: token, options: .init(audioOnly: false))TitliCallScreen(livekitUrl, token)
// or
TitliCall.join(context, livekitUrl, token, TitliCallOptions(audioOnly = false))<TitliCallScreen url={livekitUrl} token={token} />
// or
await TitliCall.join(livekitUrl, token, { audioOnly: false })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)
/v1/live-hosts/hostsThe 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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
type | string | optional (query) | both types | audio, video | Only hosts who take this call type right now. | type=audio |
language | string | optional (query) | your console default | up to 20 characters | Matches one of the host's languages. | language=hi |
min_age | integer | optional (query) | your console default | 18 to 99 | Youngest age to include. | min_age=21 |
max_age | integer | optional (query) | your console default | 18 to 99 | Oldest age to include. | max_age=30 |
q | string | optional (query) | – | up to 80 characters | Search by name, or by the start of a host_ref. | q=asha |
sort | string | optional (query) | online | online, price_asc, price_desc, new | online: hosts who can be called now first. new: newest hosts first. Your console default applies when you leave it out. | sort=new |
status | string | optional (query) | online | online, all, offline | online: hosts who can be called now, plus busy ones. all: every host of the network, with last seen. offline: only hosts who are offline now. | status=all |
max_cost | number | optional (query) | no limit | 0 to 1000000 | Only hosts who cost you at most this per minute, in your billing currency. Most useful on the Direct listing, where each host has her own price. | max_cost=30 |
limit | integer | optional (query) | 50 | 1 to 100 (higher is treated as 100) | Page size. | limit=20 |
offset | integer | optional (query) | 0 | 0 to 100000 | Where the page starts; the answer has next_offset. | offset=20 |
Response
| Field | Type | What it means |
|---|---|---|
hosts | array | Host objects (fields below). |
host_ref | string | Stable ID of the host for your account. |
name | string | The host's display name. |
photo_url | string | Signed photo link (the same as photo.url). |
photo | object | Photo links in fixed sizes, their expiry and a placeholder (see Host photos). |
age | integer | The host's age. |
languages | array of strings | Language codes the host speaks. |
status | string | online (can be called now), busy (on a call) or offline (only with status=all or offline). |
online | boolean | Online on the host network right now. |
last_seen_at | string or null | Last time online, rounded down to 5 minutes; null while online. |
audio_available | boolean | Takes audio calls right now. |
video_available | boolean | Takes video calls right now. |
listing | string | auto or direct. |
featured | boolean | A host you pinned in the console. |
is_new | boolean | Joined within your "new badge" window (default 7 days). |
pricing | object | { currency, cost_per_minute, price_per_minute, margin_per_minute }. Not in Quick-mode answers. |
pricing_by_type | object | Pricing for video and audio when you did not ask for one type. |
available_count | integer | Hosts who can be called now. |
type | string or null | The type you asked for. |
paused | boolean | true while Live Hosts is paused; the list is then empty. |
listing | string | Always auto. |
total | integer | Hosts matching the query. |
offset | integer | Where this page starts. |
next_offset | integer or null | Offset of the next page. |
sort | string | The sort used. |
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.
curl -s "$API/v1/live-hosts/hosts?language=hi&min_age=21&max_age=30&sort=new&limit=20" -u "$KEY_ID:$KEY_SECRET"{ "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:
| Field | Meaning |
|---|---|
listing | auto 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. |
online | true when the host is online on the Titli host network right now. Show a green dot. |
last_seen_at | When the host was last online, rounded down to 5 minutes for the host's privacy; null while online or when unknown. |
status | Can the host take a call now: online (yes), busy (on a call), offline (not taking calls now; only with status=all). |
featured | true for hosts you pinned in the console; they always come first. |
is_new | true 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
/v1/live-hosts/direct-hostsThe 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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
type | string | optional (query) | video | video | Ignored: the Direct listing is video only. | type=video |
language | string | optional (query) | your console default | up to 20 characters | Matches one of the host's languages. | language=hi |
min_age | integer | optional (query) | your console default | 18 to 99 | Youngest age to include. | min_age=21 |
max_age | integer | optional (query) | your console default | 18 to 99 | Oldest age to include. | max_age=30 |
q | string | optional (query) | – | up to 80 characters | Search by name, or by the start of a host_ref. | q=asha |
sort | string | optional (query) | online | online, price_asc, price_desc, new | online: hosts who can be called now first. new: newest hosts first. Your console default applies when you leave it out. | sort=new |
status | string | optional (query) | online | online, all, offline | online: hosts who can be called now, plus busy ones. all: every host of the network, with last seen. offline: only hosts who are offline now. | status=all |
max_cost | number | optional (query) | no limit | 0 to 1000000 | Only hosts who cost you at most this per minute, in your billing currency. Most useful on the Direct listing, where each host has her own price. | max_cost=30 |
limit | integer | optional (query) | 50 | 1 to 100 (higher is treated as 100) | Page size. | limit=20 |
offset | integer | optional (query) | 0 | 0 to 100000 | Where the page starts; the answer has next_offset. | offset=20 |
Response
| Field | Type | What it means |
|---|---|---|
enabled | boolean | false (with an empty list) when Direct is not switched on for your account. |
listing | string | Always direct. |
type | string | Always video. |
currency | string | Your billing currency. |
total, offset, next_offset, sort | integer / string | Paging and the sort used, as in the auto list. |
hosts | array | Host objects, each with their own pricing. |
{ "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
/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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
host_ref | string | required (in the path) | – | up to 128 characters | The host, from either listing. | h_9f2a |
Response
| Field | Type | What it means |
|---|---|---|
host_ref | string | Stable ID of the host for your account. |
name | string | The host's display name. |
photo_url | string | Signed photo link (the same as photo.url). |
photo | object | Photo links in fixed sizes, their expiry and a placeholder (see Host photos). |
age | integer | The host's age. |
languages | array of strings | Language codes the host speaks. |
status | string | online (can be called now), busy (on a call) or offline (only with status=all or offline). |
online | boolean | Online on the host network right now. |
last_seen_at | string or null | Last time online, rounded down to 5 minutes; null while online. |
audio_available | boolean | Takes audio calls right now. |
video_available | boolean | Takes video calls right now. |
listing | string | auto or direct. |
featured | boolean | A host you pinned in the console. |
is_new | boolean | Joined within your "new badge" window (default 7 days). |
pricing | object | { currency, cost_per_minute, price_per_minute, margin_per_minute }. Not in Quick-mode answers. |
listings | array of strings | The listings the host is in: auto, direct. |
direct_pricing | object or null | The host's Direct price, when she is in the Direct listing. |
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.
/v1/live-hosts/hosts/hideBody: { "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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
host_refs | array of strings | required | – | 1 to 500 items, each [A-Za-z0-9_-]{3,64} | Hosts to hide. Send this or host_ref. | ["h_9f2a","h_77b1"] |
host_ref | string | optional | – | [A-Za-z0-9_-]{3,64} | One host, instead of host_refs. | h_9f2a |
reason | string | optional | – | up to 300 characters | Your note, kept in the change history. | Not a fit for our app |
end_live | boolean | optional | false | true, false | true also ends calls already running with these hosts. | true |
Response
| Field | Type | What it means |
|---|---|---|
hidden | array of strings | Hosts hidden by this request. |
already | array of strings | Hosts that were hidden already. |
calls_ended | integer | Running calls ended (with end_live: true). |
/v1/live-hosts/hosts/unhideBody: { "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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
host_refs | array of strings | required | – | 1 to 500 items, each [A-Za-z0-9_-]{3,64} | Hosts to restore. Send this or host_ref. | ["h_9f2a"] |
host_ref | string | optional | – | [A-Za-z0-9_-]{3,64} | One host, instead of host_refs. | h_9f2a |
reason | string | optional | – | up to 300 characters | Your note, kept in the change history. | Back on the list |
Response
| Field | Type | What it means |
|---|---|---|
restored | array of strings | Hosts visible again. |
still_hidden | array | { host_ref, by }; by: "operator" means Titli support hid the host and only support can lift it. |
/v1/live-hosts/hidden-hostsYour 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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
q | string | optional (query) | – | up to 80 characters (longer is cut) | Search by name (contains), or by the start of a host_ref. | asha |
listing | string | optional (query) | both | auto, direct | Only hosts in that listing. | direct |
presence | string | optional (query) | both | online, offline | Only hosts online, or offline, now. | offline |
seen_within_min | integer | optional (query) | no limit | 1 to 525600 | Only hosts online within this many minutes. | 1440 |
language | string | optional (query) | – | up to 20 characters | Matches one of the host's languages. | hi |
min_age | integer | optional (query) | – | 18 to 99 | Youngest age to include. | 21 |
max_age | integer | optional (query) | – | 18 to 99 | Oldest age to include. | 30 |
direct | string | optional (query) | both | true, false | Only hosts who are (or are not) in the Direct listing. | true |
sort | string | optional (query) | online | online, last_seen, price_asc, price_desc, name, new, seen, calls, hidden | calls: most calls with you first; hidden: most recently hidden first; seen: first seen by your account. | last_seen |
scope | string | optional (query) | hidden | all, hidden, visible | Accepted for symmetry with the console; this route always lists hidden hosts. | hidden |
format | string | optional (query) | JSON pages of limit | csv | csv returns up to 5,000 rows in one page (still JSON on this route; the console has the CSV file). | csv |
limit | integer | optional (query) | 25 | 1 to 100 (higher is treated as 100) | Page size. | 50 |
offset | integer | optional (query) | 0 | 0 to 1000000 | Where the page starts. | 25 |
Response
| Field | Type | What it means |
|---|---|---|
total | integer | Hidden hosts matching the query. |
offset, limit, next_offset | integer | Paging. |
source | string | network (the whole host network) or seen (only hosts shown to your account). |
data | array | Hosts: host_ref, name, age, languages, online, last_seen_at, status, listings, direct_pricing, hidden, hidden_by, hidden_at, hidden_reason, calls, last_call_at. |
{ "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).
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
/v1/live-hosts/callsBody: 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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
end_user_id | string | required | – | [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_name | string | optional | Guest | up to 40 characters | The name the host sees. | Rahul |
host_ref | string | optional | any | a host_ref (up to 128 characters) or any | Which host to ring; any or left out = any available host. | h_9f2a |
type | string | optional | video | video, audio, direct | Call type. direct is the short form of listing: "direct" (video). | audio |
listing | string | optional | auto | auto, direct | direct: a host from the Direct listing at her own price, billed per started minute. | direct |
max_cost_per_minute | number | optional | no limit | 0.0001 to 1000000 | Direct calls: refuse with 409 price_changed if the host now costs more than this. | 30 |
Response
| Field | Type | What it means |
|---|---|---|
call_id | string | The same as id. |
id | string | The call ID. |
object | string | Always live_host_call. |
type | string | audio or video. |
status | string | connecting, ringing, connected, ending or ended. |
room | string | Media room name. |
end_user_id | string | Your user. |
end_user_name | string or null | The name the host sees. |
host | object or null | { host_ref, name, photo_url, photo, age, languages }; null until a host is matched. |
rate | object | { currency, per_minute }: what we deduct per minute. |
listing | string | auto or direct. |
billing_unit_seconds | integer | 1 (per second) or 60 (Direct: per started minute). |
end_user_price | object | Your own price, locked at the start: { currency, per_minute }. |
end_user_amount | number | Connected time at your price. |
margin | number | end_user_amount minus cost. |
created_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
billed_seconds | integer | Billed seconds so far. |
cost | number | What left your balance. |
unrecovered | number | Amount that could not be taken from the balance. |
free_seconds | integer | Seconds covered by free minutes. |
cost_breakdown | array | Free and paid parts of the call, one paid line per rate. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence for your user. |
max_seconds | integer | Time limit of this call. |
livekit_url | string | The media URL (create answer only). |
token | string | Your user's join token, valid one hour: join right away (create answer only). |
identity | string | Your user's identity in the room. |
gifts | object | { enabled, version }: whether to show the gift button. |
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.
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}'{ "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
/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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The Live Hosts call ID. | 6a1f… |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The call ID. |
object | string | Always live_host_call. |
type | string | audio or video. |
status | string | connecting, ringing, connected, ending or ended. |
room | string | Media room name. |
end_user_id | string | Your user. |
end_user_name | string or null | The name the host sees. |
host | object or null | { host_ref, name, photo_url, photo, age, languages }; null until a host is matched. |
rate | object | { currency, per_minute }: what we deduct per minute. |
listing | string | auto or direct. |
billing_unit_seconds | integer | 1 (per second) or 60 (Direct: per started minute). |
end_user_price | object | Your own price, locked at the start: { currency, per_minute }. |
end_user_amount | number | Connected time at your price. |
margin | number | end_user_amount minus cost. |
created_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
billed_seconds | integer | Billed seconds so far. |
cost | number | What left your balance. |
unrecovered | number | Amount that could not be taken from the balance. |
free_seconds | integer | Seconds covered by free minutes. |
cost_breakdown | array | Free and paid parts of the call, one paid line per rate. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence for your user. |
max_seconds | integer | Time limit of this call. |
List calls
/v1/live-hosts/callsQuery: 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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
status | string | optional (query) | every status | live, connecting, connected, ended | live = every call that has not ended. | status=live |
end_user_id | string | optional (query) | – | [A-Za-z0-9_.:@-]{1,128} | Only this user's calls. | user_123 |
host_ref | string | optional (query) | – | up to 128 characters | Only calls with this host. | h_9f2a |
listing | string | optional (query) | both | auto, direct | Only calls from this listing. | direct |
before | string | optional (query) | – | ISO 8601 date-time | Calls created before this time (paging: pass next_before). | 2026-11-28T10:00:00Z |
limit | integer | optional (query) | 25 | 1 to 100 (higher is treated as 100) | Page size. | 50 |
Response
| Field | Type | What it means |
|---|---|---|
data | array | Call objects, newest first. |
next_before | string or null | Pass as before for the next page. |
End a call
/v1/live-hosts/calls/{id}/endEnds 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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The Live Hosts call ID. | 6a1f… |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The call ID. |
object | string | Always live_host_call. |
type | string | audio or video. |
status | string | connecting, ringing, connected, ending or ended. |
room | string | Media room name. |
end_user_id | string | Your user. |
end_user_name | string or null | The name the host sees. |
host | object or null | { host_ref, name, photo_url, photo, age, languages }; null until a host is matched. |
rate | object | { currency, per_minute }: what we deduct per minute. |
listing | string | auto or direct. |
billing_unit_seconds | integer | 1 (per second) or 60 (Direct: per started minute). |
end_user_price | object | Your own price, locked at the start: { currency, per_minute }. |
end_user_amount | number | Connected time at your price. |
margin | number | end_user_amount minus cost. |
created_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
billed_seconds | integer | Billed seconds so far. |
cost | number | What left your balance. |
unrecovered | number | Amount that could not be taken from the balance. |
free_seconds | integer | Seconds covered by free minutes. |
cost_breakdown | array | Free and paid parts of the call, one paid line per rate. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence for your user. |
max_seconds | integer | Time limit of this call. |
Receipt
/v1/live-hosts/calls/{id}/receiptEd25519-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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The Live Hosts call ID. | 6a1f… |
Response
| Field | Type | What it means |
|---|---|---|
receipt | object | The receipt (canonical JSON: keys sorted, no whitespace). |
signature | string | Ed25519 signature, base64. |
algorithm | string | Always Ed25519. |
key_id | string | Which signing key; match it with GET /v1/receipts/public-key. |
Stats
/v1/live-hosts/statsQuery: 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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
group | string | optional (query) | day | day, end_user, host, type, listing | How rows are grouped. | host |
type | string | optional (query) | both | audio, video | Only this call type. | video |
listing | string | optional (query) | both | auto, direct | Only this listing. | direct |
from | string | optional (query) | 30 days before to | ISO 8601 date-time | Start of the period (must be before to). | 2026-11-01T00:00:00Z |
to | string | optional (query) | now | ISO 8601 date-time | End of the period. | 2026-12-01T00:00:00Z |
limit | integer | optional (query) | 100 | 1 to 1000 (higher is treated as 1000) | Most rows. | 50 |
Response
| Field | Type | What it means |
|---|---|---|
group | string | The grouping used. |
currency | string | Your billing currency. |
timezone | string | Days are counted in this time zone. |
data | array | Rows: key, calls, connected_calls, seconds, minutes, spend, free_seconds, end_user_amount, margin, last_call_at. |
totals | object | The same summed. |
by_type | object | Totals per call type. |
by_listing | object | Totals per listing. |
by_rate | array | { type, rate_per_minute, seconds, cost }. |
{ "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
/v1/live-hosts/calls/:call_id/giftsYour 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
/v1/live-hosts/pricingYour 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
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
| No parameters. | ||||||
Response
| Field | Type | What it means |
|---|---|---|
currency | string | Your billing currency. |
rates | object | Your flat rate per call type. |
tier_period | string | monthly or lifetime. |
tiers | object | Volume tiers per call type. |
free_monthly_minutes | object | Monthly free minutes per call type. |
status | object | Per type: current_rate_per_minute, minutes_used, next_tier, free. |
end_user_prices | object | Per type: your price, the cost and the margin per minute. |
direct | object | { enabled, markup_type, markup_value, round_to, billing_unit_seconds }. |
Errors
| HTTP | code | When |
|---|---|---|
| 400 | invalid_request | Bad body or query |
| 402 | insufficient_balance | Balance 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 |
| 403 | live_hosts_disabled | Live Hosts is not enabled for your account |
| 403 | calls_disabled | New calls are switched off for your account |
| 403 | end_user_blocked | This end user is blocked |
| 409 | host_unavailable | The chosen host is busy, offline or no longer available |
| 403 | host_hidden | You have hidden this host for your account (restore the host in the console or with /hosts/unhide) |
| 403 | direct_disabled | The Direct listing is not enabled for your account, or is switched off right now |
| 409 | price_changed | Direct call: the host's price is now above your max_cost_per_minute; the error has the new cost_per_minute |
| 422 | price_below_cost | (console) your price for your users is below what a minute costs you; the error has the lowest allowed min |
| 409 | hidden_limit | You have hidden the most hosts an account can hide (2,000 by default); restore some first |
| 409 | no_host_available | "any" and nobody is free right now |
| 503 | lines_busy | Every Live Hosts line is in use right now; retry in a minute |
| 409 | end_user_busy | This end user is already on a Live Hosts call |
| 429 | daily_cap_reached | Today's Live Hosts spending cap is reached (resets at midnight in your account time zone) |
| 429 | concurrency_limit | Too many Live Hosts calls at once for your account (default 5) or on our side |
| 429 | rate_limited | More 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 |
| 503 | partner_paused | Live Hosts is paused (by us or by Titli); try later |
| 503 | partner_unavailable / media_unavailable | A dependency did not answer; retry in a few seconds |
| 404 | not_found | Unknown call ID, or (for one host) the host is not online or is hidden for your account |
| 409 | no_receipt | The 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_reason | Meaning | Billed |
|---|---|---|
end_user_left | Your user hung up or left the room | Connected time only |
end_user_absent | Your user's app did not join the room and start sending media in time, so no host was rung | Nothing |
host_ended | The host hung up | Connected time only |
host_no_answer, host_busy, host_unavailable | The host did not pick up, was on another call, or went offline before connecting | Nothing |
vendor_ended | You called POST /v1/live-hosts/calls/:id/end | Connected time only |
balance_zero | Your balance (and free minutes) ran out | Up to that second |
daily_cap | Today's Live Hosts spending cap was reached | Up to that second |
max_duration | The call reached max_seconds | Up to that second |
kill_switch, partner_off, operator_ended | Live Hosts was switched off, or we ended the call | Up to that second |
error | A fault on our side | Connected 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 atcall.connected_at.live_host.call.ended—{ call, receipt, receipt_signature }(receiptisnullif 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.
"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" }
}| Field | Meaning |
|---|---|
id | This version of the photo. It changes when the host changes the photo. Use id + size as your cache key. |
url | The standard size (256 px). Square, WebP. |
url_96, url_256, url_512 | Fixed square sizes: 96 for lists, 256 for cards, 512 for a profile or call screen. |
expires_at | When these links stop working (24 hours after you got them by default; your console shows your value). |
is_placeholder | true when the host has no approved photo. The links then show a neutral avatar. |
blurred | true when "blur until the call connects" is on for your account and the call is not connected yet. |
placeholder | Initials and a colour, so you can draw your own avatar instead of loading ours. |
How the links work
- 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 plain404. 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
.webpwith.jpgin 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=300and anETag. - Limits: 600 photo requests a minute for one IP address and 6,000 a minute for your account (
429above that).
Refreshing
- Never store a photo link in your database. Store
host_ref. - Before
expires_at, or when an image answers404, callGET /v1/live-hosts/hostsagain (orGET /v1/live-hosts/hosts/:host_reffor one host;404when the host is not online) and use the newphoto. - When the host changes the photo, the next list has a new
idand 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.
CachedNetworkImage(
imageUrl: photo['url_256'],
cacheKey: '${photo['id']}_256',
errorWidget: (_, __, ___) => InitialsAvatar(photo['placeholder']), // expired: ask your server for the host again
)AsyncImage(
model = ImageRequest.Builder(LocalContext.current).data(photo.url256)
.memoryCacheKey("${photo.id}_256").diskCacheKey("${photo.id}_256").build(),
contentDescription = host.name,
onError = { viewModel.refreshHost(host.hostRef) },
)KFImage(source: .network(KF.ImageResource(downloadURL: URL(string: photo.url256)!, cacheKey: "\(photo.id)_256")))
.placeholder { InitialsAvatar(text: photo.placeholder.initials, hex: photo.placeholder.color) }
.onFailure { _ in model.refreshHost(host.hostRef) }<Image source={{ uri: photo.url_256, cacheKey: `${photo.id}_256` }} cachePolicy="disk"
onError={() => refreshHost(host.host_ref)} /><img src="{photo.url_256}" srcset="{photo.url_96} 96w, {photo.url_256} 256w, {photo.url_512} 512w" sizes="56px"
width="56" height="56" alt="" loading="lazy" referrerpolicy="no-referrer">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 withaudio_available: truetake audio calls. - App: the token lets your user publish the microphone only (a camera track is refused). Join with
video: false(FlutterTitliCall.connect),audioOnly: true(iOS / Android / React NativeTitliCall.join), orroom.localParticipant.setMicrophoneEnabled(true)(Web). - Errors specific to audio:
503 partner_pausedwhen Titli has switched audio calls off,503 lines_busywhen every audio line is in use (audio has its own line limit, separate from video).
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 callPOST …/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
usageline 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) orlifetime(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
/v1/live-hosts/pricingReturns { 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) hasfree_secondsandcost_breakdown:[{kind:"free", seconds, ms}, {kind:"paid", seconds, ms, rate_per_minute, cost}](one paid line per rate). - Receipts carry the same as
free_secondsandbreakdown, for example a 2 min 17 s call that crossed 1,000 minutes:
{ "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, nevercost_per_minute. Sendmax_cost_per_minutewith a Direct call so a price change between your list and the call can never surprise you. - Reuse a stable
end_user_idper user: per-user stats, blocks and Titli-side abuse controls use it. - Do not store photo links; store
host_refand ask for fresh links (see Host photos). - Show
busyhosts as unavailable; call with"any"when you do not need a specific host. - Poll
GET /v1/live-hosts/calls/:idor use the webhooks to learn when a call connects or ends.