Retire a signing secret
DELETE/v1/webhook_endpoints/{endpoint}/secrets/{secret}
Retires a signing secret — the second half of a rotation. It stops signing immediately; signatures already sent are unaffected.
An endpoint’s LAST active secret cannot be retired: an endpoint that could not sign would have to stop delivering, and silently unsigned webhooks are indistinguishable from forgeries. Add the replacement first.
Retire a signing secret
curl https://whatsapp.messages.api.linqapp.com/v1/webhook_endpoints/$ENDPOINT/secrets/$SECRET \
-X DELETE \
-H "Authorization: Bearer $LINQ_WHATSAPP_API_KEY"{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"retired_at": "2019-12-27T18:11:19.117Z",
"status": "status"
}Returns Examples
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"retired_at": "2019-12-27T18:11:19.117Z",
"status": "status"
}