Update endpoint, events, or rotate secret.
cURL
curl --request PATCH \ --url https://app.strix.ai/api/v1/webhooks/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "<string>", "events": [ "<string>" ], "is_active": true, "rotate_secret": true } '
{ "webhook": { "id": "<string>", "url": "<string>", "events": [ "<string>" ], "secret_prefix": "<string>", "is_active": true, "last_success_at": "2023-11-07T05:31:56Z", "last_failure_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }, "secret": "<string>" }
API token from Settings > API Access
Set to true to rotate the webhook secret
Webhook updated. New secret included if rotated.
Show child attributes
New secret if rotate_secret was true