Webhooks and events
Where events go, how each delivery went, and the record of every event.
PATCH/v1/webhooks/{endpoint_id}Change URL or events, switch it on or off.
Request5 fields
Path
endpoint_idstringrequiredThe webhook endpoint's id (whk_...).
- Type
string
Body
urlstring (URL)A new public https URL.
- Limits
- At most 2048 characters.
events(string | "*")[]The events it wants now: 1 to 40 types, or * for all.
- Limits
- 1 to 40 items.
descriptionstring | nullA new note; null clears it.
- Limits
- At most 500 characters.
activebooleanfalse stops sending to it, until you set true again.
- Type
boolean
Answers 20011 fields
idstringThe endpoint (whk_...).
- Example
whk_2bq
object"webhook_endpoint"Always webhook_endpoint.
- Type
"webhook_endpoint"
urlstringWhere the events go.
- Type
string
events(string | "*")[]The events it wants.
- Type
(string | "*")[]
descriptionstring | nullYour note; null when you gave none.
- Type
string | null
activebooleanWhether events are sent to it.
- Type
boolean
mode"live" | "test"The mode it hears: test or live, the mode of the key that made it. A test endpoint never hears a live event.
- Type
"live" | "test"
deployment_idstring | nullOnly this deployment's events reach it (dep_...), plus your account's, such as keys, users and usage alerts. Set when a deployment's vestra.yaml declared the endpoint. Null: every event its types allow.
- Type
string | null
managed_by"file" | nullfile: declared in that deployment's vestra.yaml, so deploying the file changes it; null: you made it.
- Type
"file" | null
created_atstringWhen it was made, as an ISO 8601 time.
- Type
string
updated_atstringWhen it last changed, as an ISO 8601 time.
- Type
string
No sample in your language for this route, so here it is over HTTP.
curl -X PATCH "$VESTRA_BASE_URL/v1/webhooks/{endpoint_id}" \ -H "Authorization: Bearer $VESTRA_API_KEY" \ -H "Content-Type: application/json" \ -d '{}'