Rotate a webhook signing secret
POST
/v1/webhooks/{id}/rotate-secretReplaces the endpoint's signing secret and returns the new one. the only time it is ever shown in full. The old secret stops verifying immediately.
Authentication
Send an organization-scoped API key in the Authorization header. Keep credentials on your server.
webhooks:manageParameters
id
pathrequiredstring · uuidResponses
200 Response schema
application/json
secret
stringrequiredView complete response schema
HTTP 200 schema
{
"type": "object",
"properties": {
"secret": {
"type": "string"
}
},
"required": [
"secret"
],
"additionalProperties": false
}401 Response schema
application/json
error
objectrequiredView nested fields
code
stringrequiredmessage
stringrequiredrequestId
stringrequireddetails
valueView complete response schema
HTTP 401 schema
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message",
"requestId"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}403 Response schema
application/json
error
objectrequiredView nested fields
code
stringrequiredmessage
stringrequiredrequestId
stringrequireddetails
valueView complete response schema
HTTP 403 schema
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message",
"requestId"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}404 Response schema
application/json
error
objectrequiredView nested fields
code
stringrequiredmessage
stringrequiredrequestId
stringrequireddetails
valueView complete response schema
HTTP 404 schema
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message",
"requestId"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}422 Response schema
application/json
error
objectrequiredView nested fields
code
stringrequiredmessage
stringrequiredrequestId
stringrequireddetails
valueView complete response schema
HTTP 422 schema
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message",
"requestId"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}429 Response schema
application/json
error
objectrequiredView nested fields
code
stringrequiredmessage
stringrequiredrequestId
stringrequireddetails
valueView complete response schema
HTTP 429 schema
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message",
"requestId"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}Authentication and validation failures use the shared error envelope. Save the request ID when diagnosing a failed call.
Build the surrounding workflow
Read the webhooks guide for ordering, verification and recovery. Browse the other webhooks endpoints when you need the next operation.