Rotate the HMAC secret for an endpoint
POST /api/v1/webhooks/endpoints/{id}/rotate
Replaces the HMAC secret for an endpoint owned by the authenticated organization. Requires webhooks.manage and the write ability. The new secret is returned once; a missing or out-of-organization endpoint returns 404.
Authenticate with a portal session token.
Parameters
idinteger path required
Responses
200 New endpoint secret issued once.
application/json object
idinteger requiredmessagestring requiredsecretstring requiredWrite only
Generated sample
{
"id": 0,
"message": "string",
"secret": "string"
}401 Missing or invalid bearer token.
application/json object
Any keys are accepted.
403 The authenticated user has not verified their email or accepted the Terms of Service and Privacy Policy, or lacks the required write ability or webhooks.manage permission.
application/json object
Any keys are accepted.
404 Endpoint was not found in this organization.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string