Api Webhooks Rotate Create
POST /api/webhooks/<id>/rotate/ - Rotate webhook secret
Generates a new webhook secret. The new secret takes effect immediately.
Update your server promptly to avoid webhook delivery failures.
Path Parameters:
- id (int): Webhook ID
Response (200 OK):
{
"id": 123,
"name": "My Webhook",
"secrets": "whsec_new123...",
"message": "Secret rotated successfully. Update your server immediately."
}
Error Responses:
- 404: Webhook not found or doesn't belong to organization
Authentication
AuthorizationBearer
JWT access token or Respan API key
Path parameters
id
Response
id
name
secrets
message