Docs menu

Update a voice endpoint

PATCH/v1/profiles/{profile_id}/voice-endpoints/{endpoint_id}

  • Scope calls:write

Changes its name, address or credentials. null clears the SIP username and password (both together).

Parameters

Path

  • profile_idstringrequired

    The line (prf_…).

  • endpoint_idstringrequired

    The voice endpoint (vep_…).

Request body

  • namestring

    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

200 OKThe endpoint.

  • 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

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