Business API
Rotate a webhook signing secret
api
post
/webhooks/{webhook_id}/rotate-signing-secret

Rotate a webhook signing secret

Rotate a signing secret for a specific webhook.

For more information, see the guides: About webhooks and Manage webhooks.

Request

Webhook signing secret rotation request

Path Parameters
Path Parameters
Request body
Body object 

Response

The details of the webhook for which you rotated the signing secret

Response body
Body object 
Was this page helpful?
POST
/webhooks . /{webhook_id} . /rotate-signing-secret . 
Parameters
curl -L -g -X POST 'https://b2b.revolut.com/api/2.0/webhooks/{webhook_id}/rotate-signing-secret' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"expiration_period": "PT5H30M"
}'
Request body samples
{
"expiration_period": "PT5H30M"
}
Response body samples
{
"id": "c6db947e-e9ce-41c2-b445-02e6eb741d21",
"url": "https://www.example.com",
"events": [
"TransactionCreated",
"PayoutLinkCreated"
],
"signing_secret": "wsk_4jETWMz1g1b37gCONjNp84t2KSSIT7dK"
}