Webhooks
Retire signing key
Retire a secondary key without promoting it. The primary key cannot be retired; promote a replacement instead.
POST
https://api.sndr.sh/v1/webhooks/{id}/signing-keys/{key_id}/retireRetire signing key
curl -X POST 'https://api.sndr.sh/v1/webhooks/wh_2a7d4e9c-6b1/signing-keys/whk_61d0a9c7-5e4/retire' \
-H "Authorization: Bearer $SNDR_API_KEY"200OK
{
"id": "whk_61d0a9c7-5e4",
"status": "retired"
}Authorization
AuthorizationstringheaderrequiredBearer followed by your API key. Needs the send scope.
Path parameters
idstringrequiredWebhook ID (wh_...).
key_idstringrequiredSecondary key ID (whk_...).
Errors
401
unauthenticatedMissing or invalid API key.403
insufficient_scopeThe API key is missing the send scope.404
not_foundResource does not exist or belongs to a different account.409
conflictThe key is not a secondary key (it is the primary or already retired).