Developers API reference Webhooks Rotate a webhook's secret
Rotate a webhook's secret POST /webhooks/{webhookId}/rotate-secret
POST /webhooks/{webhookId} /rotate-secretTry it Base https://api.mockflow.com/v1Scopes boards:read
Request
curl https://api.mockflow.com/v1/webhooks/whk_9fa2/rotate-secret \
-X POST \
-H "Authorization: Bearer $MOCKFLOW_API_KEY"
const response = await fetch("https://api.mockflow.com/v1/webhooks/whk_9fa2/rotate-secret" , {
method: "POST" ,
headers: {
Authorization: `Bearer ${process.env.MOCKFLOW_API_KEY}`
}
});
const data = await response.json();
import os, requests
response = requests.post(
"https://api.mockflow.com/v1/webhooks/whk_9fa2/rotate-secret" ,
headers={"Authorization" : f"Bearer {os.environ['MOCKFLOW_API_KEY']}" },
)
response.raise_for_status()
data = response.json()
Response
{
"id" : "string" ,
"secret" : "string"
}
{
"error" : {
"code" : "rate_limited" ,
"message" : "Too many requests." ,
"docsUrl" : "https://mockflow.com/developers/concepts/errors#rate_limited"
},
"requestId" : "req_45d49816999bac40"
}
A new signing secret, effective for the next delivery. Update your receiver first.
Authorization
Authorizationstring header required
Bearer <key>. The key needs boards:read scope. Create and manage keys in the developer console , or use an OAuth app to act for other people; what each scope unlocks is on the scopes page .
Path parameters
webhookIdstring path required
Response 200 · application/json
Was this page helpful? Yes No PreviousReplay a delivery Next Send a test event