Webhooks
Create a webhook
Register an HTTPS endpoint to be told when a run finishes or a draft is ready. The signing secret is returned once and never again.
https://api.vidrys.com/v1/webhooks- Plan
- Custom
- Key
- read-and-write
- Rate cost
- 1 unit
The URL must be HTTPS and publicly resolvable — private and internal addresses are refused, and checked again on every delivery.
Up to 10 webhooks per workspace. See Webhooks for the signature, the retry schedule and the payloads.
Reviewed by Garvit Sharma, Co-founder, on 4 November 2026. This call is included on the Custom plan, which is quoted per contract. Requests and responses follow HTTP semantics (RFC 9110), bearer tokens (RFC 6750) and JSON.
What does the request need?
A POST request to /v1/webhooks sends one header, an API key with read-and-write access, and takes 2 body fields. Each part is listed below.
Sent as a header on every request.
AuthorizationstringrequiredA Vidrys API key, sent as Bearer vidrys_sk_…. This call changes data, so the key must be read-and-write. See Authentication.
Request body
application/json
urlstringrequiredWhere to POST events. HTTPS, 8–2048 characters.
eventsstring[]requiredWhich events to receive. At least one.
Values:run.completeddraft.ready
What does it return? · 201
application/json
webhookobjectThe new webhook.
+−Show child attributesHide child attributes
idstringWebhook id.
urlstringWhere events are sent.
eventsstring[]The events it receives.
Values:run.completeddraft.ready
is_activebooleanFalse once it has been switched off after 15 consecutive failed deliveries.
last_statusintegernullableHTTP status of the latest delivery attempt.
last_delivery_atstringnullableWhen the latest attempt was made (ISO 8601).
created_atstringWhen it was created (ISO 8601).
secretstringThe signing secret (whsec_…). Shown once — store it now; it signs every delivery.
Which errors can it return?
| 403 plan_feature_unavailable | The feature is on a higher plan. Bulk exports and webhooks are Custom-only. |
| 403 write_not_allowed | The key or connection is read-only, or it belongs to a viewer. Writes need a read-and-write key or connection, from a member who can edit. |
| 422 limit_reached | The workspace already has the maximum number of webhooks (10). |
| 422 invalid_request | A parameter or body field is missing or has the wrong type or value. The message names the field. Also returned when a write would pass the plan's prompt limit. |
| 401 unauthorized | No key was sent, or the key is unknown, revoked or expired, or the member who created it has left the workspace or been deactivated. |
| 402 plan_required | The workspace's plan doesn't include API access. It's included on every plan from Track up — Solo is the one without it. |
| 403 workspace_not_approved | The workspace is still waiting for approval, or wasn't approved. |
| 429 rate_limited | Too many requests this minute. Wait for the number of seconds in the `Retry-After` header, then retry. |
Every code, and what to retry, is in Errors.