API referenceWebhook events
generation.canceled
A generation was cancelled (or stopped). Answer 2xx within 10 seconds; anything else is retried for about a day.
Remagica-Signature*stringt=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">, keyed with the endpoint's secret.
Remagica-Event-Id*stringThe event's id: the same in every retry and redelivery.
Remagica-Event-Type*stringThe event's type, as in the body.
application/json- body
A generation was cancelled (or stopped).
createdAt*stringWhen it happened.
Format
date-timedata*One generation request and its results.
id*stringThe event's id (evt_...).
organizationId*stringThe workspace it happened in.
type*stringReceived. Any 2xx acknowledges the event.
Example Requests
POST/generation.canceled
A generation was cancelled (or stopped).
application/json
{ "createdAt": "2026-10-21T12:00:00.000Z", "data": { "completedAt": "2026-10-21T12:00:00.000Z", "createdAt": "2026-09-30T12:00:00.000Z", "createdByUserId": "f3656abb-5b3d-4f60-8e2a-1d9c6b4f7e05", "credits": 12, "creditsRefunded": true, "error": null, "id": "7a1c9e42-5b3d-4f60-8e2a-1d9c6b4f7e05", "input": { "prompt": "A lighthouse on a cliff at dusk, cinematic" }, "kind": "image", "metadata": { "seed": 42 }, "model": "google/nano-banana-pro", "organizationId": "9a863583-5b3d-4f60-8e2a-1d9c6b4f7e05", "outputs": [ { "contentType": "image/png", "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "kind": "image", "previews": [ { "height": 1280, "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "width": 1024 } ], "previewUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "role": "output", "sizeBytes": 2457600, "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png" } ], "references": [ { "fileIds": [ "string" ], "itemId": "59c47fe8-5b3d-4f60-8e2a-1d9c6b4f7e05", "label": "string", "version": 3, "versionId": "772c657e-5b3d-4f60-8e2a-1d9c6b4f7e05" } ], "status": "queued", "stopRequested": true, "updatedAt": "2026-10-21T12:00:00.000Z" }, "id": "evt_3f1c9a0b2d4e6f8a1b3c5d7e", "organizationId": "9a863583-5b3d-4f60-8e2a-1d9c6b4f7e05", "type": "generation.canceled"}{ "Remagica-Signature": "string", "Remagica-Event-Id": "f602728b-5b3d-4f60-8e2a-1d9c6b4f7e05", "Remagica-Event-Type": "string"}