Appearance
Regenerate Webhook Secret
Generate a new signing secret for a webhook. The old secret stops working immediately.
POST /v1/products/:id/webhooks/:webhookId/regenerate-secretPath Parameters
| Parameter | Description |
|---|---|
id | Product ID |
webhookId | Webhook ID |
Response
json
{
"data": {
"secret": "whsec_xxx"
}
}Example
bash
curl -X POST "https://api.packedge.dev/v1/products/prd_xxx/webhooks/whk_xxx/regenerate-secret" \
-H "Authorization: Bearer pk_your_api_key"Notes
- Update your subscriber's verification logic with the new secret right away — deliveries signed with the new secret will fail verification against the old one (see Security)
