Skip to main content
Webhooks allow you to receive real-time notifications when specific events occur in LILT. When you configure a webhook, LILT sends an HTTP POST request to your specified URL whenever a subscribed event is triggered.

Event Types

You can subscribe to the following event types when creating a webhook configuration:

Payload Structure

The payload sent to your webhook URL is a JSON object. The structure varies depending on the event type. Job and project event payloads do not include an explicit event type field, so you must infer the event type from the fields present in the payload. Instant translate event payloads include an eventType field.

JOB_UPDATE

Sent when a job is updated.

JOB_DELIVER

Sent when a job is delivered.

PROJECT_UPDATE

Sent when a project is updated.

PROJECT_DELIVER

Sent when a project is delivered.

INSTANT_TRANSLATE_COMPLETED

Sent when an instant file translation task completes successfully.

INSTANT_TRANSLATE_FAILED

Sent when an instant file translation task fails.

Distinguishing Event Types

Instant translate events include an eventType field in the payload. For job and project events, which do not include an explicit event type field, use the following logic to determine which event triggered the webhook:
If you need to handle multiple event types, consider subscribing to each event type with a separate webhook configuration pointing to distinct endpoints. This removes the need to infer the event type from the payload structure.