Rotate an endpoint's signing secret
POST
/v1/webhook-endpoints/{id}/rotate-secret
const url = 'https://api.validationcheck.net/v1/webhook-endpoints/example/rotate-secret';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.validationcheck.net/v1/webhook-endpoints/example/rotate-secret \ --header 'Authorization: Bearer <token>'The old secret stops working immediately; deliveries already queued are signed with the new one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Rotated
Media typeapplication/json
object
success
required
boolean
data
required
object
id
required
string
url
required
string
description
required
string | null
events
required
Event types, or [“*”] for all.
Array<string>
format
required
Json: signed JSON payload. slack / discord: a chat message for an incoming-webhook URL.
string
status
required
string
disabled_reason
required
“failing” when turned off after a day of failed deliveries.
string | null
created_at
required
string
secret
required
Signs every delivery (VC-Signature). Shown only when created or rotated.
string
Example
{ "success": true, "data": { "id": "we_3f9c…", "format": "json", "status": "enabled" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}