palbaseDocs

Palbase Calls · API

POST/calls/admin/calls/{call_id}/tickets

Let an agent in

Lets the project's agent into the call as a bot: a participant everyone in it hears (and sees), listed as a bot (kind bot; on the media server, an agent). The ticket is the media server's url and an access token its open-source client and agent libraries connect with as they are — LiveKit's: the agent receives each person's audio as a track of its own, named by their user id, and publishes its own. What the media server sends it is billed as anyone's; past a Free project's call data no new agent comes in (429 quota_exceeded), one in the call already gets its way back in. Palbase runs no agent: transcribing, answering, taking notes are the agent's. The calls.call.started and calls.participant.joined webhooks are when to send one in.

Called by your server, with the project's secret key.

Path

call_idstring (uuid) · requiredThe call's id

Request body

can_publishboolean · optionalIt speaks (and shows) too (true, by default); false: it listens only
identitystring · requiredThe agent's identity in the call (bot:<identity>): 1 to 64 letters, digits, _ . -
metadataobject · optionalIts own words (32 strings, 2 KiB at most)
namestring · optionalIts name, as the call lists it
curl
curl -X POST "https://<your-ref>.palbase.studio/calls/admin/calls/<call_id>/tickets" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"identity":"string"}'

Responses

201The ticket

400The request is malformed, or a field breaks a rule (the error names which)

401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)

403Not the project's secret key (`secret_key_required`)

404No such call (`call_not_found`)

409The call is over (`call_ended`) or full (`call_full`); the identity is a person's (`invalid_identity`)

429A Free project's call data is used up this month (`quota_exceeded`): no new agent comes in

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation CreateCallTicket of calls's contract.