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.

POSThttps://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.

Authorization header

Sent as a header on every request.

Authorizationstringrequired

A 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

urlstringrequired

Where to POST events. HTTPS, 8–2048 characters.

eventsstring[]required

Which events to receive. At least one.

Values:run.completeddraft.ready

What does it return? · 201

application/json

webhookobject

The new webhook.

+Show child attributes
idstring

Webhook id.

urlstring

Where events are sent.

eventsstring[]

The events it receives.

Values:run.completeddraft.ready

is_activeboolean

False once it has been switched off after 15 consecutive failed deliveries.

last_statusintegernullable

HTTP status of the latest delivery attempt.

last_delivery_atstringnullable

When the latest attempt was made (ISO 8601).

created_atstring

When it was created (ISO 8601).

secretstring

The signing secret (whsec_…). Shown once — store it now; it signs every delivery.

Which errors can it return?

403 plan_feature_unavailableThe feature is on a higher plan. Bulk exports and webhooks are Custom-only.
403 write_not_allowedThe 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_reachedThe workspace already has the maximum number of webhooks (10).
422 invalid_requestA 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 unauthorizedNo 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_requiredThe 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_approvedThe workspace is still waiting for approval, or wasn't approved.
429 rate_limitedToo 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.