Skip to main content
POST
Create webhook

Authorizations

Authorization
string
header
required

API key authentication. Use format: Authorization: Bearer tavrn_sk_live_... Live keys (tavrn_sk_live_...) work only against https://enterprise.tavrn.ai; sandbox test keys (tavrn_sk_test_..., from https://sandbox.tavrn.ai) work only against https://sandbox.tavrn.ai.

Headers

Tavrn-Version
string

Dated API version (YYYY-MM-DD) to apply to this request. Defaults to the version pinned to the API key, then to the baseline 2026-10-16. Unknown values return 400 invalid_api_version. See Guides > Versioning.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-10-16"

Idempotency-Key
string

Optional opaque key (1-255 characters, a UUID v4 is recommended) that makes a POST safe to retry. Scoped to your organization and kept for 24 hours. A retry with the same key and the same body replays the original status and body with Idempotent-Replayed: true; the same key with a different body returns 422 idempotency_key_reused_with_different_payload; a retry while the first attempt is still running returns 409 idempotency_key_in_use. Only 2xx and 4xx outcomes are stored - a 5xx releases the key so the retry executes again. See the Idempotent requests guide.

Required string length: 1 - 255

Body

application/json
name
string
required

Webhook name, unique within your organization

Required string length: 1 - 100
Example:

"Production webhook"

url
string<uri>
required

Webhook endpoint URL (must use HTTP/HTTPS)

Maximum string length: 2048
Example:

"https://client.example.com/webhooks/tavrn"

events
enum<string>[]
required

Event types to subscribe to (at least one required)

Minimum array length: 1
Available options:
retrieval_request.status_changed,
retrieval_request.action_required,
retrieval_request.documents_available,
retrieval_request.updated,
retrieval_request_draft.created,
retrieval_request_draft.submitted,
retrieval_request_draft.deleted,
webhook_endpoint.disabled
Example:
description
string | null

Optional webhook description

Maximum string length: 500
Example:

"Production webhook for retrieval events"

Response

Webhook created successfully (secret is ONLY returned here!)

Creation response. Read or list the webhook for delivery health fields.

id
string
required

Opaque webhook identifier.

Example:

"507f1f77bcf86cd799439016"

name
string
required

Webhook name, unique within your organization

Example:

"Production webhook"

url
string<uri>
required
Example:

"https://client.example.com/webhooks/tavrn"

description
string | null
required

Optional webhook description

events
enum<string>[]
required
Available options:
retrieval_request.status_changed,
retrieval_request.action_required,
retrieval_request.documents_available,
retrieval_request.updated,
retrieval_request_draft.created,
retrieval_request_draft.submitted,
retrieval_request_draft.deleted,
webhook_endpoint.disabled
secret
string
required

Webhook secret, returned only on creation. Store it securely.

Example:

"whsec_XyZ789AbCdEfGhIjKlMnOpQrSt"

is_enabled
boolean
required
Example:

true

auto_disabled_at
string<date-time> | null
required

Always null when the webhook is created

last_failure
object | null
required

Always null when the webhook is created

created_at
string<date-time>
required
Example:

"2026-10-08T12:00:00.000Z"