KuikCodeDocs
APIReferenceWebhooks

Rotate the signing secret

POST
/webhooks/{id}/rotate-secret

Mints a new secret and returns it. For the next 24 hours every delivery carries two v1 signatures, one per secret, so the receiver can switch without dropping events.

AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Path Parameters

id*string
Length1 <= length

Response Body

application/json

application/json

curl -X POST "https://example.com/webhooks/string/rotate-secret"
{  "id": "string",  "url": "http://example.com",  "enabled": true,  "secret": "string",  "secretRotatedAt": "2019-08-24T14:15:22Z",  "codes": [    {      "id": "string",      "shortCode": "string",      "name": "string"    }  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}