Skip to Content
Pouch
Webhook endpoints

Rotate a webhook signing secret

POST
/v1/webhook_endpoints/{id}/rotate_secret

Auth: Bearer key with no domain scope.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Response Body

The endpoint with its new secret, returned once. The old secret stops verifying immediately, so publish the new one before the next event.

application/json
  1. response
id?string

Opaque id, prefixed whk_.

key_id?string

The key whose sends produce this endpoint's events.

url?string

Where Pouch posts.

events?array<string>

Events this endpoint receives.

description?|

The note it was created with, or null.

disabled?boolean

True while delivery is stopped, by request or by too many exhausted deliveries.

last_success_at?|

ISO 8601 timestamp of the last 2xx, or null.

last_failure_at?|

ISO 8601 timestamp of the last failed attempt, or null.

created_at?string

ISO 8601 timestamp.

secret?string

The signing secret, returned by this call only. Reveal it again on the key detail screen, or rotate for a new one.

Example Request
curl -X POST 'https://pouch.example.com/v1/webhook_endpoints/string/rotate_secret'
Example Response
{  "id": "string",  "key_id": "string",  "url": "string",  "events": [    "string"  ],  "description": "string",  "disabled": true,  "last_success_at": "string",  "last_failure_at": "string",  "created_at": "string",  "secret": "string"}