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`.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
endpointId*stringuuidIdempotency-Key?stringMakes 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.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
name?string1 <= length <= 100url?stringlength <= 2048events?array<string>1 <= items <= 4paused?booleanThe endpoint after the change.
application/json- response
id*stringuuidname*stringurl*stringurievents*array<string>The event types the endpoint takes.
paused*booleanmaskedSecret*stringThe signing secret with all but its last four characters hidden.
createdAt*stringdate-timeupdatedAt*stringdate-timelastDelivery?|nullcurl -X PATCH 'https://wardn.example.com/api/v1/outbound-webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 }}Get an outbound webhook endpoint GET
One endpoint with its events and how its newest finished delivery went. Needs `integration:manage`.
Delete an outbound webhook endpoint DELETE
Removes the endpoint, its signing secret and its delivery history. Deliveries waiting to be tried are dropped. The deletion is an Activity entry. Needs `integration:manage`.