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).
Body fields
application/jsonurl (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).Values
http:// or https://, up to 2048 charactersheadersobject
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
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 bothDefaultbothwh_ and 16 hex digits.Where deliveries go.
Your name for it, or
null.Whether deliveries go out. A new webhook is on.
Whether failed deliveries are retried.
Your own headers for each delivery,
{} when there are none.The events it gets:
transcript.completed, transcript.failed or both, in that order.ISO 8601, UTC.
whsec_...: the key that signs each delivery. Keep it with your receiver (Check the signature).Whenonly in this answer
application/json
The webhook with its
secret, shown only here.400 missing_parameter
No
url.application/json
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.
application/json
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.
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
400invalid_request. - A new webhook is on.
enabledis 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.