Resume a webhook
A paused webhook stops receiving events. The resume endpoint reactivates it so future events flow again, regardless of why it was paused. This page covers the request shape, the required scope, the response fields, and the errors that can block reactivation.
Request contract
The call is a POST to /v2/webhooks/{id}/resume, where {id} is the webhook ID. There is no request body. The API key must be sent as Authorization: Bearer vt_live_<secret> and must carry the webhooks:write scope. The Idempotency-Key and X-On-Behalf-Of headers are ignored for this operation. A successful call returns HTTP 200 with the webhook in status active. Only events that happen after this call are sent.
Path parameters
The only path parameter is id, a required string containing the webhook ID. The example value in the reference is wh_3f1c2b9e-8a47-4d5e-9c61-2b7f0e4a1d93. The complete path parameter schema is delivered in the protected contract module schema0001 and schema0002.
Response body
A 200 response returns a WebhookResponse object containing a data field with the webhook. The webhook object includes webhookId, url, description, events, status, pausedReason, pausedAt, revokedAt, revocationReason, ownerId, secretPrefix, lastDelivery, createdAt, and updatedAt. After a successful resume, status is active. See the response fields below.
Field map for the resumed webhook
Use this map to read the response after reactivation:
- webhookId — the webhook ID.
- url — the HTTPS URL deliveries are sent to.
- description — a label to help you recognize the webhook; may be null.
- events — the event types sent to this webhook.
- status — active, paused, or revoked. After a successful resume it is active.
- pausedReason — why the webhook is paused: manual, delivery-failures, or endpoint-gone.
- pausedAt — ISO 8601 timestamp set while paused.
- revokedAt — ISO 8601 timestamp set when revoked.
- revocationReason — why revoked: manual, owner_permissions_reduced, owner_deactivated, or owner_deleted.
- ownerId — the user who owns the webhook; events are filtered by this user's current permissions.
- secretPrefix — the first 10 characters of the signing secret, to help tell secrets apart.
- lastDelivery — the most recent delivery, or null before the first delivery. Includes deliveryId, eventName, status, responseStatus, and at.
- createdAt and updatedAt — ISO 8601 timestamps.
Errors that block a resume
The reference lists three error cases for this endpoint:
- 403 FORBIDDEN — the key owner no longer exists.
- 404 WEBHOOK_NOT_FOUND.
- 409 WEBHOOK_REVOKED — the webhook is revoked.
The error envelope also covers 400, 401, 429, and 500 responses. The full error schemas are delivered in the protected contract modules schema0004 through schema0010, and the example error bodies are delivered in code0003 through code0009.
Before you resume: a short checklist
- Confirm the webhook is paused, not revoked. A revoked webhook returns 409 and must be replaced.
- Check the pausedReason. If it is delivery-failures or endpoint-gone, fix the receiving endpoint before resuming so the webhook does not pause again.
- Verify the API key has webhooks:write and that the key owner still exists.
- Confirm the webhook ID. A wrong ID returns 404.
- After resuming, expect only events that happen after the call.
Example: resuming a payroll sync webhook
Suppose a webhook with ID wh_3f1c2b9e-8a47-4d5e-9c61-2b7f0e4a1d93 was paused manually while you migrated an endpoint. Its events are leave.approved and leave.cancelled. After you finish the migration, send POST /v2/webhooks/wh_3f1c2b9e-8a47-4d5e-9c61-2b7f0e4a1d93/resume with a Bearer token that has webhooks:write. The 200 response returns status active. Only events that happen after this call are sent. The cURL example is delivered in code0001, and the sample 200 response is delivered in code0002.
Frequently asked questions
Does resuming a webhook replay events that happened while it was paused?
No. Only events that happen after the resume call are sent.
What happens if I try to resume a revoked webhook?
The API returns 409 WEBHOOK_REVOKED. A revoked webhook cannot be resumed; delete it and create a new one.
Which scope does the resume endpoint require?
webhooks:write. The API key is sent as Authorization: Bearer vt_live_<secret>.
Are the Idempotency-Key and X-On-Behalf-Of headers used by this endpoint?
No. Both headers are ignored for the resume operation.
What does the response look like after a successful resume?
A 200 response returns the webhook with status active. See the response fields below.
curl -X POST "$API_BASE_URL/v2/webhooks/wh_3f1c2b9e-8a47-4d5e-9c61-2b7f0e4a1d93/resume" \
-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": "VALIDATION_ERROR",
"name": "ValidationError",
"description": "Example post details.",
"resolution": "Fix the fields listed in details.fields and send the request again.",
"requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef",
"details": {
"fields": [
{
"path": "startDate",
"message": "\"startDate\" is required"
}
]
}
}
}{
"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": "WEBHOOK_REVOKED",
"name": "Webhook revoked",
"description": "Example post details.",
"resolution": "Delete the webhook and create a new one.",
"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: $72 | |
| 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: $72 |
| 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 |
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 |