Add a voice endpoint
POST/v1/profiles/{profile_id}/voice-endpoints
- Scope
calls:write
Connects your voice agent to the line: a SIP address (recommended) or a wss:// stream. The answer has signing_secret, shown once: check X-Bubblr-Signature on calls with it.
Parameters
Path
profile_idstringrequiredThe line (
prf_…).
Request body
kind"sip" | "stream" | "phone"requiredsip(recommended),stream(WebSocket audio, for agents without SIP) orphone(an agent that has its own phone number: calls go there, then to the team if it doesn't answer).namestringrequiredA name for people.
vendorstring or nullWhere the agent was built, as a short lowercase name such as
vapi,retellorother. Only used for setup help in the app. Optional.sip_uristringFor
sip: the agent's SIP address, such assip:+14155550123@agents.example.com;transport=tcp. Public hosts only, no?headers.sip_usernamestring or nullFor
sip: the username your agent expects (SIP digest). Give both or neither.sip_passwordstring or nullFor
sip: its password. Write-only.stream_urlstringFor
stream: awss://URL with no query string.phone_numberstringFor
phone: the agent's own US/Canada number, typed any way; stored as E.164.
Response
201 CreatedThe endpoint and its signing secret.
idstringrequiredvep_…object"voice_endpoint"requiredprofile_idstringrequiredprf_…namestringrequiredkind"sip" | "stream" | "phone"requiredsip(recommended),stream(WebSocket), orphone: an agent with its own phone number.vendorstring or nullrequiredWhere the agent was built, as a short lowercase name such as
vapi,retellorother, for setup help.sip_uristring or nullrequiredsip_usernamestring or nullrequiredhas_sip_passwordbooleanrequiredstream_urlstring or nullrequiredphone_numberstring or nullrequiredFor
phoneagents: the agent's own number (E.164).created_attimestamprequiredupdated_attimestamprequiredsigning_secretstringrequiredvss_…: checkX-Bubblr-Signaturewith it. Shown only here.
Errors
| Status | Code | Means |
|---|---|---|
| 400 | validation_failed | A field is missing or invalid. |
| 401 | unauthorized | The API key is missing, unknown or revoked. |
| 403 | insufficient_scope | The API key lacks the scope this needs. |
| 404 | not_found | No such object, or the key can't see it. |
Every error is { "error": { "code", "message" } }. All error codes.