Webhooks
Update a webhook
PATCH
Updates an outbound webhook. Send only the fields to change.
cookiecookie
better-auth.session_token<token>Dashboard session cookie
id*stringapplication/json- body
url?stringFormat
uriLength
length <= 2048events?array<>Items
1 <= itemsenabled?booleanapplication/json- response
id*stringurl*stringevents*array<>enabled*booleanconsecutiveFailures*integerlastError*string|nulllastDeliveredAt*|Format
date-timecreatedAt*stringFormat
date-timecurl -X PATCH 'https://api.example.com/api/v1/webhooks/string' \
-H 'Content-Type: application/json' \
-d '{}'Example Response
{
"id": "string",
"url": "string",
"events": [
"error.created"
],
"enabled": true,
"consecutiveFailures": 0,
"lastError": "string",
"lastDeliveredAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z"
}