Rotate Webhook Secret
POST /webhooks/{webhook_id}/rotate-secret
POST
/webhooks/{webhook_id}/rotate-secret
Rotate the signing secret for a webhook subscription. Returns the new secret (shown once).
Authorizations
Parameters
Path Parameters
webhook_id
required
Webhook subscription ID
string
Webhook subscription ID
Header Parameters
Responses
200
Successful Response
object
data
required
object
environment
‘live’ or ‘sandbox’: which events this subscription receives.
string
events
Array<string>
id
required
string
is_active
boolean
url
required
string
pagination
Any of:
object
has_next
required
Whether there are more pages
boolean
limit
required
Items per page
integer
notes
Any of:
Array<string>
null
page
required
Current page number (1-indexed)
integer
total
required
Total number of items
integer
null
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string