REST API reference v1
Every v1 endpoint, with every parameter and response field. Server routes use your project key; the call routes an app also reaches with the App Key are marked.
API v1 is in early access. We announce breaking changes by email before they ship.
Set in your dashboard vs. set in code
| Setting | Where |
|---|---|
| Call length | Code: max_duration_seconds when you create the call, or the project default |
| Token lifetime (server tokens) | Code: ttl_seconds, within the project limit |
| Daily spend cap of a project | Dashboard: Console → Projects |
| Webhook URL and secret | Dashboard: Console → Projects |
| App Key, its bindings (package name, bundle ID, website, signing certificate) and Quick-mode caps | Dashboard: Console → Projects → Quick mode |
Server or app? Server routes use HTTP Basic auth with your project key (Authentication). The call routes marked Also from an app (Quick mode) have a mirror under /v1/client that an app calls with only the App Key, with the same parameters; those answers leave out your money fields. Balance, usage, end-user checks and receipts are server only. Starting out without a backend? Read the Client API (Quick mode).
Base URL: https://api-videosdk.titliapp.com. JSON in and out. Money is in your billing currency: INR, or USD for international accounts (the examples show INR). Usage amounts never include GST; if GST applies to you, it is shown on your recharge invoice. Times are ISO 8601 UTC.
Account
/v1/meProject, account status, balance, rate card, enabled features and the livekit_url apps connect to.
/v1/balanceBalance, low-balance threshold, and how many 1:1 audio and video minutes it covers.
/v1/end-users/{end_user_id}Pre-call check: free seconds left for this user and whether a call can start. Read-only.
/v1/errorsThe full list of error codes, with the sentence your user can see in English and Hindi. No auth. The same list is on Error codes.
No key needed. Public route.
Parameters
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
| No parameters. | ||||||
Response
| Field | Type | What it means |
|---|---|---|
docs_url | string | The Error codes page. |
fields | object | Which fields an error, a session and room metadata carry. |
codes | array | Every code: code, user_code, http_status, products, end_reasons, developer_message, what_to_do, user_message, user_message_hi and more. |
Your account: GET /v1/me
{
"project": { "id": "…", "name": "Main app", "app_id": "app_…", "webhook_url": "https://…" },
"account": { "name": "Acme Live", "status": "active" },
"balance": 1520.4512,
"rate_card": {
"currency": "INR", "billing_mode": "participant_minute",
"audio_per_participant_minute": 0.05, "video_per_participant_minute": 0.2,
"audio_per_call_minute": 0.06, "video_per_call_minute": 0.18,
"first_time_free_seconds": 60, "daily_free_seconds": 0, "daily_free_budget_seconds": 0,
"gst_note": "…"
},
"features": { "audio": true, "video": true, "token_minting": true, "webhooks": true, "free_seconds": true, "bill_solo": false,
"max_call_seconds": 0, "max_participants": 2, "max_video_resolution": "720p",
"max_concurrent_calls": 5, "max_new_end_users_per_hour": 300 },
"livekit_url": "wss://…"
}rate_card.currency is your billing currency (INR or USD); every amount in the API is in that currency. gst_note is a sentence for display and changes with your tax setup. features are your account's switches and limits: max_call_seconds 0 means no account-wide limit, max_participants is the room size, and max_video_resolution (360p, 540p, 720p or 1080p) is the most a participant may publish (our SDKs cap the camera to it). account.status is trial, active, suspended or closed.
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 |
|---|---|---|
project | object | { id, name, app_id, webhook_url } |
account | object | { name, status }; status is trial, active, suspended or closed. |
balance | number | Your balance. |
rate_card | object | Currency, billing mode, prices per minute and free-second settings. |
features | object | Your account's switches and limits. |
livekit_url | string | The media URL apps connect to. |
Balance: GET /v1/balance
{ "currency": "INR", "balance": 1520.4512, "low_balance_threshold": 500, "audio_call_minutes": 15204, "video_call_minutes": 3801 }audio_call_minutes and video_call_minutes estimate how many minutes of a 1:1 call the balance covers at your current price. balance includes any welcome credit or credit from us: it is spent like recharged money. Your statement shows where every rupee came from and went (Billing statements).
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 | INR or USD. |
balance | number | Your balance, welcome credit included. |
low_balance_threshold | number | Your alert level. |
audio_call_minutes | integer or null | About how many 1:1 audio minutes the balance covers. |
video_call_minutes | integer or null | The same for video. |
Pre-call check: GET /v1/end-users/{end_user_id}
{
"end_user_id": "user_1001", "is_new": true,
"first_time_free_seconds_left": 60, "daily_free_seconds_left": 0, "free_seconds_available": 60, "free_ms_available": 60000,
"day": "2026-11-25", "totals": null,
"vendor_balance": 1520.4512, "can_start_call": true, "audio_call_minutes": 15204, "video_call_minutes": 3801
}Read-only: it does not register the user. free_seconds_available is what a call can use now (first-time plus daily seconds, limited by your account's daily free budget); free_ms_available is the same in milliseconds. can_start_call is a quick check (balance above zero, or free seconds left); POST /v1/calls applies the full balance rule. is_new is true when this user ID has never been seen on your account; totals (calls, seconds, cost, first seen, last call) appears once it has. day is your account's local day for daily free seconds.
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 |
|---|---|---|---|---|---|---|
end_user_id | string | required (in the path) | – | [A-Za-z0-9_.:@-]{1,128} | Your own stable ID for the person. | user_1001 |
Response
| Field | Type | What it means |
|---|---|---|
end_user_id | string | The ID you asked about. |
is_new | boolean | Never seen on your account. |
first_time_free_seconds_left | integer | First-time free seconds left. |
daily_free_seconds_left | integer | Daily free seconds left today. |
free_seconds_available | integer | What a call can use now. |
free_ms_available | integer | The same in milliseconds. |
day | string | Your account's local day. |
totals | object or null | Calls, seconds, cost, first seen and last call, once the user has called. |
vendor_balance | number | Your balance. |
can_start_call | boolean | Quick check: balance above zero, or free seconds left. |
audio_call_minutes, video_call_minutes | integer or null | Minutes the balance covers. |
Calls
/v1/callsCreate a call. Fields: type (audio | video, default video), payer_end_user_id, max_duration_seconds (10 to 86400), metadata (under 1 KB). Returns 201, or 402 at zero balance without free seconds.
{
"id": "6a1f…", "room": "tvs_…", "type": "video", "status": "created",
"payer_end_user_id": "user_1001", "max_duration_seconds": 600,
"billing_mode": "participant_minute", "rate_per_minute": 0.2,
"connected_seconds": 0, "billed_minutes": 0, "amount": 0
}status goes created → active → ended. The price is frozen when the call is created. The full object also has metadata, created_at, started_at, connected_at, ended_at, end_reason, participant_seconds, free_seconds, unrecovered_amount and peak_participants; the create answer adds livekit_url and payer_free_seconds_available.
Also from an app (Quick mode): POST /v1/client/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 |
|---|---|---|---|---|---|---|
type | string | optional | video | audio, video | Call type. An audio call's tokens publish only the microphone. | audio |
payer_end_user_id | string | optional | the first user who gets a token | [A-Za-z0-9_.:@-]{1,128} | Who pays; their free seconds are used first. In Quick mode it can only be the user itself. | user_1001 |
max_duration_seconds | integer | optional | no limit (your account maximum) | 10 to 86400 | Time limit of the call. In Quick mode it is capped by the project's Quick-mode call length, which is also the default. | 600 |
metadata | object | optional | {} | any JSON object under 1 KB | Your own data, returned on the call. | { "booking": "B-77" } |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The call ID. |
room | string | Media room name. |
type | string | audio or video. |
status | string | created, active or ended. |
payer_end_user_id | string or null | Who pays (free seconds are checked for this user). |
max_duration_seconds | integer or null | Time limit of this call. |
metadata | object | Your metadata, as sent. |
billing_mode | string | participant_minute or call_minute. |
rate_per_minute | number | Price per minute, frozen at creation. |
created_at, started_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence you can show your user. |
connected_seconds | integer | Seconds with two or more people connected. |
participant_seconds | integer | Sum of every participant's seconds. |
free_seconds | integer | Seconds covered by free time. |
billed_minutes | number | Minutes billed. |
amount | number | Amount billed, in your billing currency. |
unrecovered_amount | number | Amount that could not be taken from the balance. |
peak_participants | integer | Most people in the call at once. |
created_with | string | Only on calls an app made in Quick mode: app_key (with created_by_end_user_id). |
livekit_url | string | The media URL (create answer only). |
payer_free_seconds_available | integer or null | Free seconds of the payer (create answer only). |
End reasons
end_reason | Meaning |
|---|---|
completed | Everyone left and nobody came back within 30 seconds |
ended_by_vendor | You called POST /v1/calls/{call_id}/end |
insufficient_balance | The balance ran out (and the payer had no free seconds, or was not in the call) |
max_duration | max_duration_seconds, or your account's maximum call length, was reached |
project_cap | The project reached its daily spending cap during the call |
room_closed | The media room closed |
expired_unused | Nobody joined within an hour of creation |
room_create_failed | The media server did not answer at creation (the request got 503 media_unavailable) |
vendor_suspended, killed_by_operator, ended_by_operator | We suspended the account, switched its calls off, or ended this call |
/v1/callsList calls, newest first. Query: status, end_user_id, limit (max 100), before.
Also from an app (Quick mode): GET /v1/client/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 | created, active, ended | Only calls in this state. | status=ended |
end_user_id | string | optional (query) | – | [A-Za-z0-9_.:@-]{1,128} | Only calls this user joined. | user_1001 |
limit | integer | optional (query) | 25 | 1 to 100 (higher is treated as 100) | Page size. | 50 |
before | string | optional (query) | – | ISO 8601 date-time | Calls created before this time (paging: pass next_before). | 2026-11-25T10:00:00Z |
Response
| Field | Type | What it means |
|---|---|---|
data | array | Call objects, newest first. |
next_before | string or null | Pass as before for the next page; null on the last page. |
/v1/calls/{id}The call plus its participants with joined/left times, billable and free seconds and amount.
Also from an app (Quick mode): GET /v1/client/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 call ID. | 6a1f… |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The call ID. |
room | string | Media room name. |
type | string | audio or video. |
status | string | created, active or ended. |
payer_end_user_id | string or null | Who pays (free seconds are checked for this user). |
max_duration_seconds | integer or null | Time limit of this call. |
metadata | object | Your metadata, as sent. |
billing_mode | string | participant_minute or call_minute. |
rate_per_minute | number | Price per minute, frozen at creation. |
created_at, started_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence you can show your user. |
connected_seconds | integer | Seconds with two or more people connected. |
participant_seconds | integer | Sum of every participant's seconds. |
free_seconds | integer | Seconds covered by free time. |
billed_minutes | number | Minutes billed. |
amount | number | Amount billed, in your billing currency. |
unrecovered_amount | number | Amount that could not be taken from the balance. |
peak_participants | integer | Most people in the call at once. |
created_with | string | Only on calls an app made in Quick mode: app_key (with created_by_end_user_id). |
participants | array | { end_user_id, role, joined_at, left_at, billable_seconds, free_seconds, amount } per session. |
/v1/calls/{id}/tokensMint a join token. See join tokens.
Also from an app (Quick mode): POST /v1/client/calls/{id}/tokens 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 |
|---|---|---|---|---|---|---|
id | string (UUID) | required (in the path) | – | an ID from a create or list answer | The call ID. | 6a1f… |
end_user_id | string | required | – | [A-Za-z0-9_.:@-]{1,128} | Becomes the participant identity. If the same ID joins again, the older connection is dropped. In Quick mode it is the user itself (filled for you). | user_1001 |
role | string | optional | user | user, host | The first user becomes the payer if none was set. | host |
name | string | optional | – | 1 to 80 characters | Display name in the call. | Asha |
ttl_seconds | integer | optional | the project default, normally 600 | 30 to the project limit (normally 3600) | How long the token can be used to join. It does not limit how long the call lasts. | 300 |
Response
| Field | Type | What it means |
|---|---|---|
token | string | The join token for the app. |
livekit_url | string | The media URL to connect to. |
room | string | Media room name. |
call_id | string | The call. |
identity | string | The participant identity (the end_user_id). |
role | string | user or host. |
type | string | Call type. |
expires_at | string | When the token can no longer be used to join. |
end_user_is_new | boolean | First time this user was seen. |
payer_end_user_id | string or null | Who pays. |
payer_free_seconds_available | integer | Free seconds the payer has. |
max_video_resolution | string or null | Most a participant may publish (null for audio). |
/v1/calls/{id}/endEnd the call for everyone, settle billing and issue the receipt. Idempotent.
Also from an app (Quick mode): POST /v1/client/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 call ID. | 6a1f… |
Response
| Field | Type | What it means |
|---|---|---|
id | string | The call ID. |
room | string | Media room name. |
type | string | audio or video. |
status | string | created, active or ended. |
payer_end_user_id | string or null | Who pays (free seconds are checked for this user). |
max_duration_seconds | integer or null | Time limit of this call. |
metadata | object | Your metadata, as sent. |
billing_mode | string | participant_minute or call_minute. |
rate_per_minute | number | Price per minute, frozen at creation. |
created_at, started_at, connected_at, ended_at | string or null | Times, ISO 8601 UTC. |
end_reason | string or null | Why it ended (see End reasons). |
end_code, end_user_code, end_user_message | string or null | The public code for that reason and a sentence you can show your user. |
connected_seconds | integer | Seconds with two or more people connected. |
participant_seconds | integer | Sum of every participant's seconds. |
free_seconds | integer | Seconds covered by free time. |
billed_minutes | number | Minutes billed. |
amount | number | Amount billed, in your billing currency. |
unrecovered_amount | number | Amount that could not be taken from the balance. |
peak_participants | integer | Most people in the call at once. |
created_with | string | Only on calls an app made in Quick mode: app_key (with created_by_end_user_id). |
/v1/calls/{id}/participants/{pid}/removeDisconnect one participant. Returns { "removed": true }; 404 if they are not in the call. A token they still hold stays valid until it expires.
Also from an app (Quick mode): POST /v1/client/calls/{id}/participants/{pid}/remove with the App Key, same parameters, the call's creator 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 call ID. | 6a1f… |
pid | string | required (in the path) | – | [A-Za-z0-9_.:@-]{1,128} | The participant's end_user_id. | user_1002 |
Response
| Field | Type | What it means |
|---|---|---|
removed | boolean | Always true (otherwise 404). |
/v1/calls/{id}/participants/{pid}/muteMute every track the participant is publishing. Returns { "muted_tracks": 2 }; 409 call_not_active unless the call is active.
Also from an app (Quick mode): POST /v1/client/calls/{id}/participants/{pid}/mute with the App Key, same parameters, the call's creator 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 call ID. | 6a1f… |
pid | string | required (in the path) | – | [A-Za-z0-9_.:@-]{1,128} | The participant's end_user_id. | user_1002 |
Response
| Field | Type | What it means |
|---|---|---|
muted_tracks | integer | How many tracks were muted. |
/v1/calls/{id}/receiptThe Ed25519-signed receipt, once the call has ended (409 call_not_ended before): { receipt, signature, algorithm, key_id }.
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 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. |
Usage and receipts
/v1/usageDaily totals per call type for the project. Query: from, to.
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 |
|---|---|---|---|---|---|---|
from | string | optional (query) | 30 days before to | ISO 8601 date-time | Start of the period. | 2026-11-01T00:00:00Z |
to | string | optional (query) | now | ISO 8601 date-time | End of the period (not included). | 2026-12-01T00:00:00Z |
Response
| Field | Type | What it means |
|---|---|---|
from | string | Start of the period. |
to | string | End of the period. |
timezone | string | Your account time zone (days are counted in it). |
data | array | { day, type, calls, participant_minutes, call_minutes, free_minutes, billed_minutes, amount } per day and type. |
/v1/receipts/public-keyPublic key for verifying receipts. No auth.
No key needed. Public route.
Parameters
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
| No parameters. | ||||||
Response
| Field | Type | What it means |
|---|---|---|
algorithm | string | Always Ed25519. |
key_id | string | ID of the signing key. |
public_key_pem | string | The public key, PEM. |
canonicalization | string | How a receipt is turned into bytes before signing. |
/v1/receipts/verifyConvenience check of a receipt signature. No auth. Verify locally in production.
No key needed. Public route.
Parameters
| Parameter | Type | Required | Default | Allowed values | What it means | Example |
|---|---|---|---|---|---|---|
receipt | object | required | – | the receipt object, as you got it | The receipt to check. | { "kind": "call", … } |
signature | string | required | – | base64 | The receipt's signature. | k3J…== |
Response
| Field | Type | What it means |
|---|---|---|
valid | boolean | true when the signature matches the receipt. |
Errors
Every error also carries error_code (a stable public code), user_code (a short code such as VB-402) and user_message, a neutral sentence you can show your user as is. The full list for every product, with sample code: Error codes.
{ "error": { "code": "insufficient_balance", "message": "Balance is zero. Recharge to start calls." } }| HTTP | Codes | Meaning and next step |
|---|---|---|
| 400 | invalid_request, invalid_json | A field is missing or malformed; message says which. |
| 401 | unauthorized, invalid_api_key, key_revoked, key_expired | No Basic auth header; unknown key ID or wrong secret; the key was revoked; the key expired. Check that the username is the key ID and the password the secret. |
| 402 | insufficient_balance, project_cap_reached | The balance cannot cover the next minute of your live calls plus this one and the payer has no free seconds: recharge. Or the project reached its daily spending cap set in the console. |
| 403 | vendor_suspended, vendor_closed, project_disabled, calls_disabled, audio_disabled, video_disabled | The account, project or call type is switched off. Contact support. |
| 403 | ip_not_allowed | The key has an IP allowlist and this request came from another address. Add the address in the console. |
| 403 | end_user_blocked | Support blocked this end-user ID on your account. |
| 404 | not_found | Unknown call or participant, or no such route. |
| 405 | method_not_allowed | The path exists, but not with this HTTP method. |
| 409 | call_ended, call_not_active, call_not_ended | The call is in the wrong state for this action. For call_ended on a token, create a new call. |
| 413 | payload_too_large | Body over 256 KB. |
| 429 | concurrency_limit | More calls at once than your account limit (5 by default). End calls you no longer need, or ask support to raise it. |
| 429 | end_user_rate_limited | More than 300 new end-user IDs in an hour. Send your stable user ID, not a random one per call. |
| 429 | rate_limited | Over 20 requests/second per key (burst 40). retry_after_ms in the error and the Retry-After header say when to retry. |
| 500 | internal_error | Our fault. Retry with backoff. |
| 503 | media_unavailable | The media server did not answer while the call was created. Retry in a few seconds. |