Rotate a voice endpoint's secret
POST/v1/profiles/{profile_id}/voice-endpoints/{endpoint_id}/rotate-secret
- Scope
calls:write
A new signing secret, shown once. Calls are signed with it from now on.
Parameters
Path
profile_idstringrequiredThe line (
prf_…).endpoint_idstringrequiredThe voice endpoint (
vep_…).
Response
200 OKThe endpoint and its new 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.