Rotate a voice number's callback secret
Changed onGenerates a new signing secret for the questions Sent sends to this number's callback URL and returns it. The previous secret stops signing immediately, so update your backend before the next call reaches it. The number is the E.164 value in the path with the plus sign URL-encoded (%2B).
With sandbox: true a secret is generated and returned with 202, and nothing is written.
Request
- Base URLhttps://api.sent.dm
- URLhttps://api.sent.dm/v3/channels/voice/{number}/rotate-secret
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
The voice number from the route, in E.164 format with the plus sign URL-encoded (%2B), for example /v3/channels/voice/%2B12025550123/rotate-secret.
Headers
Unique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.
Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.
Request body
Response
The new secret. The old one no longer signs anything
Changes
- info
endpoint added
- info