Linkable
Webhooks

Rotate signing secret

POST
/v1/me/webhooks/{id}/rotate-secret

Issue a new signing secret for a webhook, invalidating the old one. The new plaintext secret is returned once.

Authorization

ClientToken
AuthorizationBearer <token>

Bearer token issued by Linkable. Pass in the Authorization: Bearer <token> header.

In: header

Path Parameters

id*string

Webhook id.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/me/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "url": "http://example.com",  "description": "string",  "topics": [    "order.created"  ],  "is_active": true,  "consecutive_failures": 0,  "disabled_reason": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "secret": "string"}