Integrations
Preview

Change an outbound webhook endpoint

Changes only the fields sent: the name, the address, the events it takes, and whether it is paused. A paused endpoint is sent nothing, and events that happen meanwhile are dropped for it, not kept; deliveries already waiting are held until it is resumed. Needs `integration:manage`.

PATCH
/outbound-webhooks/{endpointId}
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

endpointId*string
Formatuuid
Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
name?string
Length1 <= length <= 100
url?string
Lengthlength <= 2048
events?array<string>
Items1 <= items <= 4
paused?boolean

Response Body

The endpoint after the change.

application/json
  1. response
id*string
Formatuuid
name*string
url*string
Formaturi
events*array<string>

The event types the endpoint takes.

paused*boolean
maskedSecret*string

The signing secret with all but its last four characters hidden.

createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
lastDelivery?|null
Example Request
curl -X PATCH 'https://wardn.example.com/api/v1/outbound-webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "deploy-events",  "url": "https://hooks.example.com/wardn/deploys",  "events": [    "string"  ],  "paused": true,  "maskedSecret": "whsec_••••a91f",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "lastDelivery": {    "status": "pending",    "at": "2019-08-24T14:15:22Z",    "code": 0  }}