Design Job Events
A design job sends one event per operation, named after it, when the job ends. Today there is one operation, adding formats to a design, and its event is ADD_FORMATS; the payload's status says whether it COMPLETED or FAILED.
ADD_FORMATS
Triggered once per job, when it reaches COMPLETED or FAILED — whichever it ends with.
Callback only
Sent only to the callback_url given to POST /designs/{designId}/formats. There is no dashboard subscription for this event, and a job started without a callback_url sends nothing — poll it instead.
Delivery follows the usual rules: signed when the workspace has a signing secret, acknowledged with 200/201 within 15 seconds, and retried on the 15 s ladder. Being a callback_url, there is no subscription to deactivate — a delivery that exhausts its retries is lost, and the job can still be polled for 7 days.
ADD_FORMATS payload example
{
"event_type": "ADD_FORMATS",
"job_id": "5b1e8a3c-4c2f-4d6a-9f0e-2a7b8c9d0e1f",
"design_id": "64238d01-d402-474b-8c2d-fbc957e9d290",
"operation": "add_formats",
"status": "COMPLETED",
"credits": { "generation_credits": 0, "ai_credits": 10 },
"created_at_ts": 1762430000,
"started_at_ts": 1762430001,
"finalized_at_ts": 1762430042,
"details": {
"mode": "ai",
"formats": [
{
"name": "story", "width": 1080, "height": 1920, "unit": "px", "added": true,
"preview_url": "https://production-banners.s3.eu-west-1.amazonaws.com/templates/2c39f2a1-1d2b-4b8e-9f1e-3a4b5c6d7e8f/0f1e2d3c-4b5a-4968-8778-695a4b3c2d1e-story.png"
}
]
}
}ADD_FORMATS payload fields
The payload is the job exactly as GET /design-jobs/{jobId} returns it, plus event_type.
| Field | Type | Description |
|---|---|---|
event_type | String | Always "ADD_FORMATS". |
job_id | UUID | The job_id returned when the job was started. |
design_id | UUID | The design the formats were added to. |
operation | string | Always add_formats for this event. |
status | string | COMPLETED or FAILED — never anything else in this event. |
credits | object | What the job spent: generation_credits and ai_credits, integers. 10 AI credits for a completed ai job, else 0. |
created_at_ts / started_at_ts / finalized_at_ts | integer | When the job was started, began and ended, Unix seconds. |
details.mode | string | auto or ai. |
details.formats | array | The formats asked for, each { "name", "width", "height", "unit", "added" }, and preview_url on each added format of a completed job. |
details.warnings | array | Only when a preview could not be rendered: [{ "code": "preview_generation_failed", "message" }] — see Previews. |
error.code / error.message | string | On a failed job only — codes. The design is unchanged. |
The event is sent once the new formats' previews are rendered, so each preview_url can be displayed at once. Without a preview_generation_failed warning, every added format has one.
Related
- Add Formats to a Design — the jobs that trigger this event
- Webhooks Overview — delivery, retries and signing
- Signature verification — verify the payload came from Abyssale
