Skip to content

Regenerate Webhook Secret

Generate a new signing secret for a webhook. The old secret stops working immediately.

POST /v1/products/:id/webhooks/:webhookId/regenerate-secret

Path Parameters

ParameterDescription
idProduct ID
webhookIdWebhook 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)