Get a webhook
This reference covers the single-webhook read endpoint. Use it when you already know a webhook ID and need its current configuration, its lifecycle state, or the outcome of its most recent delivery attempt. The call needs the webhooks:read scope, and the response deliberately omits the full signing secret.
Request shape
The method is GET and the path is /v2/webhooks/{id}. The only path parameter is id, a required string holding the webhook ID. Authentication uses a bearer token in the Authorization header, and the key must carry the webhooks:read scope. The full contract for the header and the path parameter is in the protected modules referenced below; this page does not restate their exact syntax.
What the response contains
A successful call returns a single webhook object. The fields fall into four groups: identity (webhookId, ownerId), configuration (url, description, events), lifecycle (status, pausedReason, pausedAt, revokedAt, revocationReason), and delivery history (lastDelivery). The secretPrefix field holds only the first ten characters of the signing secret, which is enough to tell two secrets apart but not enough to sign a payload. The full secret is never part of this response. The exact field names, types and requiredness are defined in the contract schema module, not paraphrased here.
Reading the lifecycle fields
status is one of active, paused or revoked. Only active webhooks receive events. When status is paused, pausedReason explains why: manual means it was paused through the API or dashboard, delivery-failures means every delivery failed for 72 hours, and endpoint-gone means your endpoint returned 410. pausedAt records when the pause happened. When status is revoked, revokedAt and revocationReason describe that state instead. A webhook that is paused or revoked will not deliver, so a reader checking health should look at status before looking at lastDelivery.
Reading lastDelivery
lastDelivery is null until the first delivery is attempted. After that it carries the deliveryId (the same value as the VT-Delivery-Id header), the eventName, a status of PENDING, RETRYING, SUCCEEDED, FAILED or SKIPPED, the responseStatus your endpoint returned on the latest attempt, and the timestamp of that attempt. responseStatus is absent when no response was received. SKIPPED means the webhook was paused, revoked or deleted before the delivery went out, so a SKIPPED entry is a lifecycle signal rather than an endpoint failure.
Telling the errors apart
Two error codes matter most on this endpoint. A 403 FORBIDDEN response means the key owner no longer exists. A 404 WEBHOOK_NOT_FOUND response is returned in two distinct situations: the requested webhook is absent, or it belongs to a different user and the key owner lacks admin rights. Because both situations collapse into the same code, a 404 on its own cannot tell you whether the ID is wrong or whether the record is simply outside the key owner's reach. The other documented statuses are 401 for a missing or unrecognised key, 429 for rate limiting and 500 for an internal failure. The error envelope and its fields are defined in the contract schema modules.
Pre-flight checklist
Before sending the request, confirm four things. First, the key carries webhooks:read. Second, the ID you are using is the webhookId value, not the ownerId. Third, if you expect a webhook owned by a colleague, check whether the key owner has admin rights, because a non-admin key owner will see 404 rather than the record. Fourth, decide in advance how your client will treat a 403: it points at a key owner that no longer exists, so retrying the same key will not help.
Worked example
Suppose the response shows status active, pausedReason null, and a lastDelivery with status SUCCEEDED and responseStatus 200. That combination says the webhook is live and its most recent attempt was accepted by your endpoint. Now suppose status is paused, pausedReason is delivery-failures, and lastDelivery shows FAILED. The webhook stopped because repeated failures crossed the 72-hour threshold; fixing the endpoint alone will not resume it, because the pause is a separate state you must clear. Finally, suppose status is revoked and revocationReason is owner_deleted. The webhook will not deliver again under that owner, and the record is being kept for inspection rather than for continued use.
Frequently asked questions
Can I retrieve the full signing secret from this endpoint?
No. The response includes only secretPrefix, the first ten characters of the signing secret, which is intended to help you tell secrets apart. The full secret is not returned here. If you have lost it, the documented path is to rotate the signing secret rather than to read it back.
Why does a webhook I know exists return 404?
WEBHOOK_NOT_FOUND is returned when the webhook is absent, and also when it belongs to a different user and the key owner is not an admin. Because both conditions share one code, check the ID first, then confirm whether the key owner has admin rights over the webhook's owner.
What does a SKIPPED delivery status mean?
SKIPPED means the webhook was paused, revoked or deleted before the delivery was sent. It is not a sign that your endpoint rejected the payload; look at status and pausedReason or revocationReason to understand why delivery did not happen.
What causes 403 FORBIDDEN on this call?
The documented cause is that the key owner no longer exists. That is different from a missing scope, which returns INSUFFICIENT_SCOPE, and different from a missing webhook, which returns WEBHOOK_NOT_FOUND.
curl -X GET "$API_BASE_URL/v2/webhooks/wh_3f1c2b9e-8a47-4d5e-9c61-2b7f0e4a1d93" \
-H "Authorization: Bearer "{
"data": {
"webhookId": "wh_3f1c2b9e-8a47-4d5e-9c61-2b7f0e4a1d93",
"url": "https://example.com/vacation-tracker/webhooks",
"description": "Example post details.",
"events": [
"leave.approved",
"leave.cancelled"
],
"status": "active",
"pausedReason": null,
"pausedAt": null,
"revokedAt": null,
"revocationReason": null,
"ownerId": "user-63b17e97-d38b-4586-8498-bb4f5d2e2c14",
"secretPrefix": "whsec_AbCd",
"lastDelivery": {
"deliveryId": "dlv_1790157600000_8a47c61e2b7f4d5e9c613f1c2b9e1d93",
"eventName": "leave.approved",
"status": "SUCCEEDED",
"responseStatus": 200,
"at": "2026-09-23T10:00:00.000Z"
},
"createdAt": "2026-09-01T08:00:00.000Z",
"updatedAt": "2026-09-23T10:00:00.000Z"
}
}{
"error": {
"code": "UNAUTHORIZED",
"name": "Unauthorized",
"description": "Example post details.",
"resolution": "Send a valid API key in the Authorization header as Bearer followed by the full vt_live_ key.",
"requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef"
}
}{
"error": {
"code": "INSUFFICIENT_SCOPE",
"name": "InsufficientScope",
"description": "Example post details.",
"resolution": "Add the scopes listed in details.requiredScopes to the key in the OnlyLeave dashboard.",
"requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef",
"details": {
"requiredScopes": [
"leaves:write"
]
}
}
}{
"error": {
"code": "WEBHOOK_NOT_FOUND",
"name": "Webhook not found",
"description": "Example post details.",
"resolution": "Check the webhook ID.",
"requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef"
}
}{
"error": {
"code": "RATE_LIMITED",
"name": "RateLimited",
"description": "Example post details.",
"resolution": "Wait a few seconds and retry, using the same Idempotency-Key for writes.",
"requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"name": "InternalError",
"description": "Example post details.",
"resolution": "Retry later, and if it keeps happening, contact OnlyLeave support and quote the requestId.",
"requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef"
}
}id
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| id | string | Yes | webhook ID. |
response
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| response | object | |||
| response.data | object | No | ||
| response.data.webhookId | string | Yes | webhook ID | |
| response.data.url | string | Yes | the HTTPS URL deliveries are sent to | Format: uri |
| response.data.description | string | null | No | a description to help you recognize the webhook | |
| response.data.description[variant1] | string | a description to help you recognize the webhook | ||
| response.data.description[variant2] | null | a description to help you recognize the webhook | ||
| response.data.events | array<WebhookEventType> | Yes | the event types sent to this webhook | |
| response.data.events[] | string | the event type. webhook.test is sent only by test deliveries and cannot be subscribed to. | Allowed values: $6e | |
| response.data.status | string | Yes | active webhooks receive events; paused and revoked webhooks do not | Allowed values: "active" | "paused" | "revoked" |
| response.data.pausedReason | string | null | No | why the webhook is paused. manual means it was paused with the API or the dashboard, delivery-failures means every delivery failed for 72 hours, endpoint-gone means your endpoint returned 410. | Allowed values: "manual" | "delivery-failures" | "endpoint-gone" | null |
| response.data.pausedReason[variant1] | string | why the webhook is paused. manual means it was paused with the API or the dashboard, delivery-failures means every delivery failed for 72 hours, endpoint-gone means your endpoint returned 410. | Allowed values: "manual" | "delivery-failures" | "endpoint-gone" | null | |
| response.data.pausedReason[variant2] | null | why the webhook is paused. manual means it was paused with the API or the dashboard, delivery-failures means every delivery failed for 72 hours, endpoint-gone means your endpoint returned 410. | "manual" | "delivery-failures" | "endpoint-gone" | null | |
| response.data.pausedAt | string | null | No | a timestamp in the ISO 8601 format, set while the webhook is paused | date-time |
| response.data.pausedAt[variant1] | string | a timestamp in the ISO 8601 format, set while the webhook is paused | date-time | |
| response.data.pausedAt[variant2] | null | a timestamp in the ISO 8601 format, set while the webhook is paused | date-time | |
| response.data.revokedAt | string | null | No | a timestamp in the ISO 8601 format, set when the webhook is revoked | date-time |
| response.data.revokedAt[variant1] | string | a timestamp in the ISO 8601 format, set when the webhook is revoked | date-time | |
| response.data.revokedAt[variant2] | null | a timestamp in the ISO 8601 format, set when the webhook is revoked | date-time | |
| response.data.revocationReason | string | null | No | why the webhook was revoked | "manual" | "owner_permissions_reduced" | "owner_deactivated" | "owner_deleted" | null |
| response.data.revocationReason[variant1] | string | why the webhook was revoked | "manual" | "owner_permissions_reduced" | "owner_deactivated" | "owner_deleted" | null | |
| response.data.revocationReason[variant2] | null | why the webhook was revoked | "manual" | "owner_permissions_reduced" | "owner_deactivated" | "owner_deleted" | null | |
| response.data.ownerId | string | Yes | the ID of the user who owns the webhook. Events are filtered by this user's current permissions. | |
| response.data.secretPrefix | string | Yes | the first 10 characters of the signing secret, to help you tell secrets apart | |
| response.data.lastDelivery | WebhookLastDelivery | null | No | the most recent delivery, null before the first delivery | |
| response.data.lastDelivery[variant1] | object | the most recent delivery, null before the first delivery | ||
| response.data.lastDelivery[variant1].deliveryId | string | Yes | delivery ID, the same as the VT-Delivery-Id header | |
| response.data.lastDelivery[variant1].eventName | string | Yes | the event type. webhook.test is sent only by test deliveries and cannot be subscribed to. | Allowed values: $6e |
| response.data.lastDelivery[variant1].status | string | Yes | delivery status. SKIPPED means the webhook was paused, revoked or deleted before the delivery was sent. | "PENDING" | "RETRYING" | "SUCCEEDED" | "FAILED" | "SKIPPED" |
| response.data.lastDelivery[variant1].responseStatus | integer | No | the HTTP status your endpoint returned on the latest attempt, absent when no response was received | |
| response.data.lastDelivery[variant1].at | string | Yes | a timestamp in the ISO 8601 format of the latest attempt | date-time |
| response.data.lastDelivery[variant2] | null | the most recent delivery, null before the first delivery | ||
| response.data.createdAt | string | Yes | a timestamp in the ISO 8601 format | date-time |
| response.data.updatedAt | string | Yes | a timestamp in the ISO 8601 format | date-time |
response
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| response | object | Error envelope returned by every endpoint, including authentication and rate limit errors. error.code is one of the codes in x-error-catalog . | ||
| response.error | object | Yes | ||
| response.error.code | string | Yes | stable machine-readable error code | |
| response.error.name | string | Yes | short human-readable error name | |
| response.error.description | string | Yes | what went wrong | |
| response.error.resolution | string | Yes | how to fix the problem | |
| response.error.requestId | string | Yes | request ID, include it when contacting support | |
| response.error.details | object | No | optional additional information specific to the error code | |
| response.error.details.[key: string] | any | No |
response
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| response | object | Error envelope returned by every endpoint, including authentication and rate limit errors. error.code is one of the codes in x-error-catalog . | ||
| response.error | object | Yes | ||
| response.error.code | string | Yes | stable machine-readable error code | |
| response.error.name | string | Yes | short human-readable error name | |
| response.error.description | string | Yes | what went wrong | |
| response.error.resolution | string | Yes | how to fix the problem | |
| response.error.requestId | string | Yes | request ID, include it when contacting support | |
| response.error.details | object | No | optional additional information specific to the error code | |
| response.error.details.[key: string] | any | No |
response
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| response | object | Error envelope returned by every endpoint, including authentication and rate limit errors. error.code is one of the codes in x-error-catalog . | ||
| response.error | object | Yes | ||
| response.error.code | string | Yes | stable machine-readable error code | |
| response.error.name | string | Yes | short human-readable error name | |
| response.error.description | string | Yes | what went wrong | |
| response.error.resolution | string | Yes | how to fix the problem | |
| response.error.requestId | string | Yes | request ID, include it when contacting support | |
| response.error.details | object | No | optional additional information specific to the error code | |
| response.error.details.[key: string] | any | No |
response
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| response | object | Error envelope returned by every endpoint, including authentication and rate limit errors. error.code is one of the codes in x-error-catalog . | ||
| response.error | object | Yes | ||
| response.error.code | string | Yes | stable machine-readable error code | |
| response.error.name | string | Yes | short human-readable error name | |
| response.error.description | string | Yes | what went wrong | |
| response.error.resolution | string | Yes | how to fix the problem | |
| response.error.requestId | string | Yes | request ID, include it when contacting support | |
| response.error.details | object | No | optional additional information specific to the error code | |
| response.error.details.[key: string] | any | No |
response
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| response | object | Error envelope returned by every endpoint, including authentication and rate limit errors. error.code is one of the codes in x-error-catalog . | ||
| response.error | object | Yes | ||
| response.error.code | string | Yes | stable machine-readable error code | |
| response.error.name | string | Yes | short human-readable error name | |
| response.error.description | string | Yes | what went wrong | |
| response.error.resolution | string | Yes | how to fix the problem | |
| response.error.requestId | string | Yes | request ID, include it when contacting support | |
| response.error.details | object | No | optional additional information specific to the error code | |
| response.error.details.[key: string] | any | No |