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_idstringrequiredThe line (
prf_…).endpoint_idstringrequiredThe voice endpoint (
vep_…).
Request body
namestringA 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
200 OKThe endpoint.
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_attimestamprequired
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.