Passer à la navigation

Generation Status Update

Sent when a generation reaches COMPLETED, NO_OP, FAILED or REJECTED. Timeouts, connection errors, 429 and 5xx responses are retried, up to six attempts over about two hours; any other non-2xx response stops delivery. Each attempt times out after 10 seconds. Retries keep the same Sync-Delivery-Id, so deduplicate on it or the generation id. See Webhooks.

En-têtes

Sync-SignaturestringRequis

t=<unix seconds>,v1=<hex HMAC-SHA256>. The HMAC is computed over <t>.<raw request body> with your organization webhook secret from GET /v2/organizations/webhook/secret. Each attempt is signed again with a new timestamp.

Sync-Delivery-IdstringRequis
Identifies this delivery. It stays the same on every retry of the same event, so use it to ignore duplicates.

Charge utile

The payload of this webhook request is an object.
idstringRequis
A unique identifier for the generation.
createdAtdatetimeRequis
The date and time the generation was created
statusenumRequis
The status of the generation
Valeurs autorisées:
modelenumRequis
name of the model to use for generation.
Valeurs autorisées:
inputlist of objectsRequis
The input items for the generation
outputUrlstring or nullRequis
url of the generated output media. Null unless the generation completed.
errorstring or nullRequis

Human-readable error message if the generation failed, was rejected or lip-synced nothing (NO_OP), otherwise null.

errorCodestring or nullRequis

Machine-readable error code if the generation failed, was rejected or lip-synced nothing (NO_OP), otherwise null. See Error Handling and GET /v2/errors.

webhookUrlstringOptionnel
url of the webhook server
optionsobjectOptionnel
options used for the generation
dubAudioUrlstring or nullOptionnel

Dubbed audio URL. Omitted without dubParams; null until the dubbed track is available.

dubAudioAssetIdstring or nullOptionnel

Reusable AUDIO asset for the dubbed track. Omitted without dubParams; null until available or when retention settings or a custom output bucket prevent saving it.

synthesizedAudioUrlstringOptionnel
url of the speech synthesized from a text input. Present only for generations that used a text input.

Réponse

200
n'importe quel
Retournez un statut 200 pour indiquer que les données ont été reçues avec succès.