Register a webhook endpoint
Changed onRegisters an HTTPS destination that receives an event when an async job reaches a terminal state, so you can stop polling GET /v1/tts/{jobId}.
The response contains the signing secret exactly once — store it now, it cannot be retrieved again. Use it to verify the Vieneu-Signature header on every event (see the Webhooks guide).
The URL must be https and must resolve to a public address. Private, loopback, link-local, CGNAT and reserved ranges are refused here and again at the moment of each delivery, so a hostname that is re-pointed at an internal address after registration still fails.
Request
- Base URLhttps://api.vieneu.io
- Auth
- API key in header X-API-Key
- or HTTP bearer
Request body
Example request
{
"url": "https://api.example.com/hooks/vieneu",
"description": "Production receiver",
"events": [
"tts.job.completed",
"tts.job.failed"
],
"apiKeyId": "665f1a2b3c4d5e6f7a8b9c0d"
}Response
Endpoint registered. secret is present only in this response.
Example response
{
"id": "665f1a2b3c4d5e6f7a8b9c0d",
"url": "https://api.example.com/hooks/vieneu",
"description": "Production receiver",
"events": [
"tts.job.completed",
"tts.job.failed"
],
"status": "ENABLED",
"apiKeyId": "665f1a2b3c4d5e6f7a8b9c0d",
"secretPrefix": "whsec_a1b2c3",
"secretRotatedAt": "2026-09-01T10:00:00Z",
"lastDeliveryAt": "2026-09-01T10:00:00Z",
"createdAt": "2026-09-01T10:00:00Z",
"secret": "whsec_0000000000000000000000000000000000000000000000000000000000000000"
}Changes
- info
added the optional property
to the response with the status
- info
- breaking
the response property
became optional for the status - breaking
response property
messagelist-of-types was widened by adding typesarrayto media typeapplication/jsonof response400 - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking