Skip to content

Design Format Details

Retrieve details for a specific format within a design, including its pixel dimensions (width × height) and the template_format_name value required for synchronous generation.

GET/designs/{designId}/formats/{formatSpecifier}API Reference

Path Parameters

ParameterTypeRequiredDescription
designIdstringYesUnique identifier of the design.
formatSpecifierstringYesFormat name (e.g. "facebook-post") or format UID.

Response

FieldTypeDescription
idstringFormat identifier (name), e.g. "facebook-post". This is the value to pass as template_format_name in generation requests.
uidstring (uuid)Unique UUID of this format instance.
widthintegerWidth of the format in the specified unit.
heightintegerHeight of the format in the specified unit.
unitstringUnit of measurement, e.g. "px".
preview_urlstring (uri)URL to the preview image for this format.
dynamic_image_urlstring (uri)Dynamic image URL for this format, if one has been created.
designobjectSummary of the parent design (id, name, type, etc.).
elementsarrayAll elements in this format with their attributes and layout.
variablesobjectTemplate variables defined in text layers for this format.

Response Example

json
{
  "id": "facebook-post",
  "uid": "6248b96f-581a-43f0-9863-85e1b7d0ec05",
  "width": 1200,
  "height": 1200,
  "unit": "px",
  "preview_url": "https://production-banners.s3-eu-west-1.amazonaws.com/templates/e0d292f2-ec21-11e9-a539-3c408bf94152/21aff1a9-bcde-4294-8320-be6cae651381.png",
  "dynamic_image_url": "https://img.abyssale.com/673f0cb6-f1f6-4f7d-8ea2-4a0ed317efbe/6248b96f-581a-43f0-9863-85e1b7d0ec0a",
  "elements": [
    {
      "name": "root",
      "type": "container",
      "settings": { "is_mandatory": false },
      "attributes": [
        { "id": "background_color", "help": "Background color of the banner", "value": "#FFFFFF" }
      ],
      "layout": { "x": 0, "y": 0, "width": 1200, "height": 1200 }
    }
  ],
  "variables": {
    "name": "{name}",
    "title": "{title}"
  }
}