remagicaDocs home
API referenceWebhook events

generation.failed

A generation failed. Answer 2xx within 10 seconds; anything else is retried for about a day.

Header Parameters

Remagica-Signature*string

t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">, keyed with the endpoint's secret.

Remagica-Event-Id*string

The event's id: the same in every retry and redelivery.

Remagica-Event-Type*string

The event's type, as in the body.

Request Body

application/json
  1. body

A generation failed.

createdAt*string

When it happened.

Formatdate-time
data*

One generation request and its results.

id*string

The event's id (evt_...).

organizationId*string

The workspace it happened in.

type*string

Response Body

Received. Any 2xx acknowledges the event.

Example Requests
POST/generation.failed

A generation failed.

Request Body
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.failed"}
Header Parameters
{  "Remagica-Signature": "string",  "Remagica-Event-Id": "f602728b-5b3d-4f60-8e2a-1d9c6b4f7e05",  "Remagica-Event-Type": "string"}