Docs menu

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_idstringrequired

    The line (prf_…).

Request body

  • kind"sip" | "stream" | "phone"required

    sip (recommended), stream (WebSocket audio, for agents without SIP) or phone (an agent that has its own phone number: calls go there, then to the team if it doesn't answer).

  • namestringrequired

    A name for people.

  • vendorstring or null

    Where the agent was built, as a short lowercase name such as vapi, retell or other. Only used for setup help in the app. Optional.

  • sip_uristring

    For sip: the agent's SIP address, such as sip:+14155550123@agents.example.com;transport=tcp. Public hosts only, no ?headers.

  • sip_usernamestring or null

    For sip: the username your agent expects (SIP digest). Give both or neither.

  • sip_passwordstring or null

    For sip: its password. Write-only.

  • stream_urlstring

    For stream: a wss:// URL with no query string.

  • phone_numberstring

    For phone: the agent's own US/Canada number, typed any way; stored as E.164.

Response

201 CreatedThe endpoint and its signing secret.

  • idstringrequired

    vep_…

  • object"voice_endpoint"required

  • profile_idstringrequired

    prf_…

  • namestringrequired

  • kind"sip" | "stream" | "phone"required

    sip (recommended), stream (WebSocket), or phone: an agent with its own phone number.

  • vendorstring or nullrequired

    Where the agent was built, as a short lowercase name such as vapi, retell or other, for setup help.

  • sip_uristring or nullrequired

  • sip_usernamestring or nullrequired

  • has_sip_passwordbooleanrequired

  • stream_urlstring or nullrequired

  • phone_numberstring or nullrequired

    For phone agents: the agent's own number (E.164).

  • created_attimestamprequired

  • updated_attimestamprequired

  • signing_secretstringrequired

    vss_…: check X-Bubblr-Signature with it. Shown only here.

Errors

StatusCodeMeans
400validation_failedA field is missing or invalid.
401unauthorizedThe API key is missing, unknown or revoked.
403insufficient_scopeThe API key lacks the scope this needs.
404not_foundNo such object, or the key can't see it.

Every error is { "error": { "code", "message" } }. All error codes.

Keys come with your first line.

Request an invite and we'll set up a line for your team. API access is part of every plan.

Request an invite