Skip to Content
Vatis TechAPI docs
Webhooks

Create a webhook

Creates a webhook, an address on your server where finished transcripts are posted.

Serverhttps://api.eu.vatis.tech

POST/v1/webhooks

Admin key only

A Member key gets 403 admin_only. Roles: Authentication and API keys.

Deliveries need batch transcription

A webhook delivers the transcripts of files, so deliveries come once batch is open on your workspace (Batch transcription).

Headers

Authorization (required)
An Admin key (Roles). A Member key gets 403 admin_only.
ValuesBearer <api key>

Body fields

application/json

url (required)string
Where deliveries go. The API must reach it from the internet: loopback, link-local and private network addresses are refused (400 invalid_parameter).
Valueshttp:// or https://, up to 2048 characters
namestring
A name for your own use.
Valuesup to 200 characters, or null
headersobject
Your own headers, sent with each delivery: at most 20, names up to 256 characters, values of printable ASCII up to 4096 characters. Not Content-Type, Content-Length, Host, Vatis-Signature, Transfer-Encoding, Connection, Keep-Alive, Upgrade, TE, Trailer, Expect, or any Proxy- header.
Valuesa JSON object of strings
retryboolean
Retry failed deliveries.
Valuestrue, falseDefaulttrue
eventsstring[]
Which ends of a batch job it gets: transcript.completed carries the transcript, transcript.failed the error. Each once; an empty list or another name is 400 invalid_parameter.
Valuesa JSON list of transcript.completed, transcript.failed or bothDefaultboth

Response fields

id
wh_ and 16 hex digits.
url
Where deliveries go.
name
Your name for it, or null.
enabled
Whether deliveries go out. A new webhook is on.
retry
Whether failed deliveries are retried.
headers
Your own headers for each delivery, {} when there are none.
events
The events it gets: transcript.completed, transcript.failed or both, in that order.
created_at
ISO 8601, UTC.
secret
whsec_...: the key that signs each delivery. Keep it with your receiver (Check the signature).
Whenonly in this answer

Responses

The webhook with its secret, shown only here.

400 missing_parameter

No url.

A field that is unknown (enabled too) or not valid, or a query parameter. The param names it.

400 invalid_request

A body that is not a JSON object, or a 51st webhook.

No key, or a wrong, revoked or expired one.

403 admin_only

A Member key.

413 request_too_large

A JSON body over 64 KB.

503 unavailable

The service is busy for a moment. Send the request again after the seconds of the Retry-After header.

Notes

  • url: a name that leads to a refused address passes here, and its deliveries then fail without a retry.
  • At most 50 webhooks in a workspace: the 51st is 400 invalid_request.
  • A new webhook is on. enabled is not a field here: turn it off with Update a webhook.
  • The secret cannot be changed: create a new webhook, move your receiver to its secret, then delete the old one.
  • events: a job that names a webhook without its event sends it nothing, and is not refused for it (how the job ends is not known when it is sent).
  • What a delivery holds, and when it is retried: Deliveries.