Openi DeveloperDeveloper

Issue a new signing secret; the previous one keeps signing during the grace period

POST
/v1/webhooks/{webhook_id}/rotate-secret
AuthorizationBearer <token>

In: header

Path Parameters

webhook_id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

grace_hours?integer

How long deliveries are also signed with the previous secret; default 24, 0 retires it at once

Range0 <= value <= 168

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret" \  -H "Content-Type: application/json" \  -d '{}'
{  "secret": "string",  "previous_secret_expires_at": "2019-08-24T14:15:22Z"}