Webhooks
Rotate webhook endpoint signing secret
Changed onReplace the endpoint's signing secret and return the new one. The old secret stops working immediately, so update your receiver right away. Returns 400 when signing is disabled. Not available to OAuth applications.
post/v1/accounts/{accountId}/webhooks/endpoints/{endpointId}/secret/rotate
Request
- Base URL: https://api.assinafy.com.br
- URL: https://api.assinafy.com.br/v1/accounts/{accountId}/webhooks/endpoints/{endpointId}/secret/rotate
- Auth: one of:
- HTTP bearer
- API key in header X-Api-Key
Path parameters
accountIdstring required
Workspace account ID.
endpointIdstring required
The webhook endpoint ID.
Response
The new secret
Example response
{
"status": 200,
"data": {
"secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
}
}Changes
- ○
endpoint added
- ○