Skip to content

Banner Events

This page details the webhook events linked to the generation and creation of banners within your workspace.

NEW_BANNER

Triggered when a single banner has been successfully generated or saved — either from within the Abyssale application or asynchronously via the API.

INFO

You can configure the webhook to send this event only for a specific design.

WARNING

This event is not triggered when a banner is generated synchronously from a REST API call.

Payload Example

json
{
  "id": "a14e1d26-ff41-47cb-bbf9-8f2d777a5bd7",
  "version": 1,
  "sharing_id": "5fcec999-2bfb-4dd7-ba38-2d9e16c49149",
  "file": {
    "type": "jpeg",
    "url": "url/name.jpeg",
    "cdn_url": "cdn_url/name.jpeg",
    "filename": "name.jpeg"
  },
  "format": { "id": "300x250-medium-rectangle", "width": 300, "height": 250 },
  "template": {
    "id": "873608a1-e498-47dd-a36d-bd065e3e2b8e",
    "name": "Template name",
    "created_at": 1623229458,
    "updated_at": 1649942114
  }
}

Payload Field Definitions

FieldTypeDescription
idUUID v4Unique ID of the generated banner.
versionnumberVersion number of the visual. Increments on re-generation; sharing_id stays the same.
sharing_idUUID v4Identifier shared across all versions of the same visual.
file.typestringFile format: jpeg, png, pdf, etc.
file.urlstringDirect storage URL.
file.cdn_urlstringCDN URL for low-latency delivery. Bandwidth limits apply per plan.
file.filenamestringResulting filename (reflects custom naming scheme if configured).
format.idstringFormat name/ID as defined in the template.
format.widthnumberWidth in the format's unit of measure.
format.heightnumberHeight in the format's unit of measure.
template.idUUID v4ID of the template used.
template.namestringTemplate name.
template.created_atUnix timestampTemplate creation date.
template.updated_atUnix timestampTemplate last-updated date.

Optional URL Properties

PropertyDescriptionCondition
view_urlLink to the visual's detail page in the app.Always returned for frontend-generated visuals. For API generation, only if "Store a copy of visuals generated via API" is enabled.
edit_urlDeep link to the visual editor.Only returned when the visual was generated from a static design.

NEW_BANNER_BATCH

Triggered when an asynchronous batch generation API request has completed, whether successful or with errors.

Payload Example

json
{
  "generation_request_id": "c18c3cec-14c2-4539-99d4-92623b6a4aef",
  "banners": [
    {
      "id": "ec3a9fcd-f209-4077-b5ea-037d4bdfa9f2",
      "file": {
        "type": "jpeg",
        "url": "url/name.jpeg",
        "cdn_url": "cdn_url/name.jpeg",
        "filename": "name.jpeg"
      },
      "format": { "id": "facebook", "width": 1200, "height": 628 },
      "template": {
        "id": "834362df-966b-46fb-a92b-213f3c2ceeac",
        "name": "Template name",
        "created_at": 1649682431,
        "updated_at": 1649682494
      }
    }
  ],
  "errors": [
    {
      "template_format_name": "some-format",
      "reason": "Element text_placeholder error: The text 'Placeholder text' cannot fit within the defined space."
    }
  ]
}

Payload Field Definitions

FieldTypeDescription
generation_request_idUUID v4ID of the initial async generation request.
bannersarraySuccessfully created banners. Same properties as NEW_BANNER.
errorsarrayGeneration errors with template_format_name and reason.