POST/v1/webhooks/rotate0 credits
Rotate webhook secret
Issue a new whsec_…. Shown once. Previous secret stops verifying new deliveries. No webhook configured is 404.
Needs predict:write on the key. This is a permission on the key, not a request header. Missing it returns 403 api_not_enabled.
Request parameters
No query, path, or JSON body parameters.
Response
{
"object": "webhook",
"url": "https://customer.example/hookest",
"configured": true,
"secret": "whsec_…"
}
Response fields
| Name | Type | Required | Description |
|---|---|---|---|
object |
string | Required | Always webhook. |
url |
string | Nullable | Configured HTTPS URL, or null when none is set. |
configured |
boolean | Required | True only when an HTTPS URL is active. |
secret |
string | Required | New whsec_…. Shown once. Previous secret stops verifying new deliveries. |