Skip to Content
Pouch
Webhook endpoints

Update a webhook endpoint

PATCH
/v1/webhook_endpoints/{id}

Auth: Bearer key with no domain scope.

disabled: true stops delivery and keeps the endpoint. The secret is unchanged — rotate it through its own route.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Request Body

application/json
  1. body
url?string

https URL Pouch posts to. A private or unroutable address is refused.

Length1 <= length
events?array<>

Events to receive: email.delivered, email.bounced, email.complained, email.unsubscribed, list.subscribed, address.received, domain.reputation_changed, organization.reputation_changed.

Items1 <= items
description?|

Note for whoever reads the endpoint list later. null clears it.

disabled?boolean

true stops delivery to this endpoint; false resumes it.

Response Body

The updated endpoint.

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.

Example Request
curl -X PATCH 'https://pouch.example.com/v1/webhook_endpoints/string' \  -H 'Content-Type: application/json' \  -d '{}'
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"}