Skip to main content

Start an outbound call

from_number must be a number your organization owns, and the caregiver attached to it runs the call. A number your organization does not own answers 400 with From number not found. Use the returned call_id to read the result rather than guessing which row in the list is yours.

Register a web call

The response is 201 Created. The token joins the LiveKit room for that call and nothing else. A caregiver that is not in your organization answers 412 with AI Assistant not found. Complete curl example:
Register web calls from your backend. Return the short-lived LiveKit token and call_id to the browser, but never return the organization API key. The browser uses that token with the LiveKit server URL supplied for its environment.

Call preconditions

Both routes run the same preconditions: workspace balance, caregiver readiness, and the concurrency limit. A call over the limit is refused with {"err": true, "msg": "Maximum concurrency limit reached."} and creates no record.