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

SettingWhere
Call lengthCode: 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 projectDashboard: Console → Projects
Webhook URL and secretDashboard: Console → Projects
App Key, its bindings (package name, bundle ID, website, signing certificate) and Quick-mode capsDashboard: 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

GET/v1/me

Project, account status, balance, rate card, enabled features and the livekit_url apps connect to.

GET/v1/balance

Balance, low-balance threshold, and how many 1:1 audio and video minutes it covers.

GET/v1/end-users/{end_user_id}

Pre-call check: free seconds left for this user and whether a call can start. Read-only.

GET/v1/errors

The 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

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
No parameters.

Response

FieldTypeWhat it means
docs_urlstringThe Error codes page.
fieldsobjectWhich fields an error, a session and room metadata carry.
codesarrayEvery 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

Response
{
  "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

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
No parameters.

Response

FieldTypeWhat it means
projectobject{ id, name, app_id, webhook_url }
accountobject{ name, status }; status is trial, active, suspended or closed.
balancenumberYour balance.
rate_cardobjectCurrency, billing mode, prices per minute and free-second settings.
featuresobjectYour account's switches and limits.
livekit_urlstringThe media URL apps connect to.

Balance: GET /v1/balance

Response
{ "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

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
No parameters.

Response

FieldTypeWhat it means
currencystringINR or USD.
balancenumberYour balance, welcome credit included.
low_balance_thresholdnumberYour alert level.
audio_call_minutesinteger or nullAbout how many 1:1 audio minutes the balance covers.
video_call_minutesinteger or nullThe same for video.

Pre-call check: GET /v1/end-users/{end_user_id}

Response
{
  "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

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
end_user_idstringrequired (in the path)–[A-Za-z0-9_.:@-]{1,128}Your own stable ID for the person.user_1001

Response

FieldTypeWhat it means
end_user_idstringThe ID you asked about.
is_newbooleanNever seen on your account.
first_time_free_seconds_leftintegerFirst-time free seconds left.
daily_free_seconds_leftintegerDaily free seconds left today.
free_seconds_availableintegerWhat a call can use now.
free_ms_availableintegerThe same in milliseconds.
daystringYour account's local day.
totalsobject or nullCalls, seconds, cost, first seen and last call, once the user has called.
vendor_balancenumberYour balance.
can_start_callbooleanQuick check: balance above zero, or free seconds left.
audio_call_minutes, video_call_minutesinteger or nullMinutes the balance covers.

Calls

POST/v1/calls

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

call object (abridged)
{
  "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

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
typestringoptionalvideoaudio, videoCall type. An audio call's tokens publish only the microphone.audio
payer_end_user_idstringoptionalthe 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_secondsintegeroptionalno limit (your account maximum)10 to 86400Time limit of the call. In Quick mode it is capped by the project's Quick-mode call length, which is also the default.600
metadataobjectoptional{}any JSON object under 1 KBYour own data, returned on the call.{ "booking": "B-77" }

Response

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

End reasons

end_reasonMeaning
completedEveryone left and nobody came back within 30 seconds
ended_by_vendorYou called POST /v1/calls/{call_id}/end
insufficient_balanceThe balance ran out (and the payer had no free seconds, or was not in the call)
max_durationmax_duration_seconds, or your account's maximum call length, was reached
project_capThe project reached its daily spending cap during the call
room_closedThe media room closed
expired_unusedNobody joined within an hour of creation
room_create_failedThe media server did not answer at creation (the request got 503 media_unavailable)
vendor_suspended, killed_by_operator, ended_by_operatorWe suspended the account, switched its calls off, or ended this call
GET/v1/calls

List 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

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
statusstringoptional (query)every statuscreated, active, endedOnly calls in this state.status=ended
end_user_idstringoptional (query)–[A-Za-z0-9_.:@-]{1,128}Only calls this user joined.user_1001
limitintegeroptional (query)251 to 100 (higher is treated as 100)Page size.50
beforestringoptional (query)–ISO 8601 date-timeCalls created before this time (paging: pass next_before).2026-11-25T10:00:00Z

Response

FieldTypeWhat it means
dataarrayCall objects, newest first.
next_beforestring or nullPass as before for the next page; null on the last page.
GET/v1/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

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

Response

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

Mint 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

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
idstring (UUID)required (in the path)–an ID from a create or list answerThe call ID.6a1f…
end_user_idstringrequired–[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
rolestringoptionaluseruser, hostThe first user becomes the payer if none was set.host
namestringoptional–1 to 80 charactersDisplay name in the call.Asha
ttl_secondsintegeroptionalthe project default, normally 60030 to the project limit (normally 3600)How long the token can be used to join. It does not limit how long the call lasts.300

Response

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

End 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

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

Response

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

Disconnect 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

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

Response

FieldTypeWhat it means
removedbooleanAlways true (otherwise 404).
POST/v1/calls/{id}/participants/{pid}/mute

Mute 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

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

Response

FieldTypeWhat it means
muted_tracksintegerHow many tracks were muted.
GET/v1/calls/{id}/receipt

The 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

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

Response

FieldTypeWhat it means
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.

Usage and receipts

GET/v1/usage

Daily 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

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
fromstringoptional (query)30 days before toISO 8601 date-timeStart of the period.2026-11-01T00:00:00Z
tostringoptional (query)nowISO 8601 date-timeEnd of the period (not included).2026-12-01T00:00:00Z

Response

FieldTypeWhat it means
fromstringStart of the period.
tostringEnd of the period.
timezonestringYour account time zone (days are counted in it).
dataarray{ day, type, calls, participant_minutes, call_minutes, free_minutes, billed_minutes, amount } per day and type.
GET/v1/receipts/public-key

Public key for verifying receipts. No auth.

No key needed. Public route.

Parameters

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
No parameters.

Response

FieldTypeWhat it means
algorithmstringAlways Ed25519.
key_idstringID of the signing key.
public_key_pemstringThe public key, PEM.
canonicalizationstringHow a receipt is turned into bytes before signing.
POST/v1/receipts/verify

Convenience check of a receipt signature. No auth. Verify locally in production.

No key needed. Public route.

Parameters

ParameterTypeRequiredDefaultAllowed valuesWhat it meansExample
receiptobjectrequired–the receipt object, as you got itThe receipt to check.{ "kind": "call", … }
signaturestringrequired–base64The receipt's signature.k3J…==

Response

FieldTypeWhat it means
validbooleantrue 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 body
{ "error": { "code": "insufficient_balance", "message": "Balance is zero. Recharge to start calls." } }
HTTPCodesMeaning and next step
400invalid_request, invalid_jsonA field is missing or malformed; message says which.
401unauthorized, invalid_api_key, key_revoked, key_expiredNo 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.
402insufficient_balance, project_cap_reachedThe 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.
403vendor_suspended, vendor_closed, project_disabled, calls_disabled, audio_disabled, video_disabledThe account, project or call type is switched off. Contact support.
403ip_not_allowedThe key has an IP allowlist and this request came from another address. Add the address in the console.
403end_user_blockedSupport blocked this end-user ID on your account.
404not_foundUnknown call or participant, or no such route.
405method_not_allowedThe path exists, but not with this HTTP method.
409call_ended, call_not_active, call_not_endedThe call is in the wrong state for this action. For call_ended on a token, create a new call.
413payload_too_largeBody over 256 KB.
429concurrency_limitMore calls at once than your account limit (5 by default). End calls you no longer need, or ask support to raise it.
429end_user_rate_limitedMore than 300 new end-user IDs in an hour. Send your stable user ID, not a random one per call.
429rate_limitedOver 20 requests/second per key (burst 40). retry_after_ms in the error and the Retry-After header say when to retry.
500internal_errorOur fault. Retry with backoff.
503media_unavailableThe media server did not answer while the call was created. Retry in a few seconds.
Start free