cargopanel logocargopanel for developers

Rotate Secret

POSThttps://api.cargopanel.co/v1/webhooks/:id/rotate-secret

Generate a new signing secret. The old secret stops working immediately; deliveries (including retries) after this call are signed with the new one.

The new secret is returned only once. Update your receiver before or right after rotating.

Path Parameters

idstringrequired

Webhook ID.

Example Response

201
{
  "success": true,
  "data": {
    "id": "wh_k3j9x2m1q8w7e6r5t4y3u2i1",
    "secret": "whsec_1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f809",
    "_warning": "Yeni secret yalnızca bir kez gösterilir."
  }
}

Responses

201Secret rotated
401Unauthorized (invalid or missing token)
404Webhook not found
429Too many requests (10/min)