Get a voice endpoint
GET/v1/profiles/{profile_id}/voice-endpoints/{endpoint_id}
- Scope
calls:read
One voice endpoint (never its password or secret).
Parameters
Path
profile_idstringrequiredThe line (
prf_…).endpoint_idstringrequiredThe voice endpoint (
vep_…).
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.