Skip to documentation
AppLaunchFlow/ Docs

API reference / Graphics

Save graphics layouts

POST/api/v1/graphics

Authorization

Send your API key or MCP OAuth token in the Authorization: Bearer header. Active or trialing Unlimited is required.

Required permission designs:write

Every mutation requires JSON and an Idempotency-Key. Reuse the same key and exact input when retrying.

Parameters

Idempotency-Keyheaderrequired

string

Persist this key for retries. Reusing it with changed input returns 409. Receipts are retained for at least 24 hours.

min length: 8 · max length: 128

Request body

application/json

generationIdbodyrequired

string · uuid

variantIdbodyoptional

string | null

languagebodyoptional

"en" | "en-GB" | "en-AU" | "en-CA" | "es" | "es-MX" | "fr" | "fr-CA" | "de" | "it" | "pt" | "pt-BR" | "ja" | "ko" | "zh-CN" | "zh-TW" | "nl" | "ru" | "ar" | "tr" | "pl" | "sv" | "no" | "da" | "fi" | "cs" | "hi" | "hu" | "ro" | "uk" | "el" | "he" | "id" | "ms" | "th" | "vi" | "hr" | "sk" | "ca"

socialTemplateIdbodyrequired

string

min length: 1

socialPrimaryFormatbodyrequired

"og" | "x_post" | "instagram_story" | "instagram_post" | "x_header" | "linkedin_banner" | "play_store_feature" | "app_store_event_card" | "app_store_event_details" | "ad_banner" | "ad_mobile_banner" | "ad_tablet_banner_720" | "ad_tablet_banner_728" | "ad_mrec" | "ad_phone_portrait" | "ad_phone_landscape" | "ad_fullscreen_landscape" | "ad_tablet_portrait" | "ad_tablet_landscape"

graphicsbodyrequired

object[]

min items: 1 · max items: 19

View complete request schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "generationId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "variantId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "language": {
      "type": "string",
      "enum": [
        "en",
        "en-GB",
        "en-AU",
        "en-CA",
        "es",
        "es-MX",
        "fr",
        "fr-CA",
        "de",
        "it",
        "pt",
        "pt-BR",
        "ja",
        "ko",
        "zh-CN",
        "zh-TW",
        "nl",
        "ru",
        "ar",
        "tr",
        "pl",
        "sv",
        "no",
        "da",
        "fi",
        "cs",
        "hi",
        "hu",
        "ro",
        "uk",
        "el",
        "he",
        "id",
        "ms",
        "th",
        "vi",
        "hr",
        "sk",
        "ca"
      ]
    },
    "socialTemplateId": {
      "type": "string",
      "minLength": 1
    },
    "socialPrimaryFormat": {
      "type": "string",
      "enum": [
        "og",
        "x_post",
        "instagram_story",
        "instagram_post",
        "x_header",
        "linkedin_banner",
        "play_store_feature",
        "app_store_event_card",
        "app_store_event_details",
        "ad_banner",
        "ad_mobile_banner",
        "ad_tablet_banner_720",
        "ad_tablet_banner_728",
        "ad_mrec",
        "ad_phone_portrait",
        "ad_phone_landscape",
        "ad_fullscreen_landscape",
        "ad_tablet_portrait",
        "ad_tablet_landscape"
      ]
    },
    "graphics": {
      "minItems": 1,
      "maxItems": 19,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "og",
              "x_post",
              "instagram_story",
              "instagram_post",
              "x_header",
              "linkedin_banner",
              "play_store_feature",
              "app_store_event_card",
              "app_store_event_details",
              "ad_banner",
              "ad_mobile_banner",
              "ad_tablet_banner_720",
              "ad_tablet_banner_728",
              "ad_mrec",
              "ad_phone_portrait",
              "ad_phone_landscape",
              "ad_fullscreen_landscape",
              "ad_tablet_portrait",
              "ad_tablet_landscape"
            ]
          },
          "layout": {
            "type": "object",
            "properties": {
              "template": {
                "type": "string"
              },
              "platform": {
                "type": "string",
                "enum": [
                  "ios",
                  "android",
                  "both"
                ]
              },
              "screens": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "index": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "screenType": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "screenshots": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "position": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": {}
                          },
                          "zIndex": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "overflow": {
                            "type": "boolean"
                          },
                          "rotation": {
                            "type": "number"
                          },
                          "opacity": {
                            "type": "number"
                          },
                          "hidden": {
                            "type": "boolean"
                          },
                          "locked": {
                            "type": "boolean"
                          },
                          "shadow": {
                            "type": "object",
                            "properties": {
                              "color": {
                                "type": "string",
                                "minLength": 1
                              },
                              "blur": {
                                "type": "number"
                              },
                              "offsetX": {
                                "type": "number"
                              },
                              "offsetY": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "color",
                              "blur",
                              "offsetX",
                              "offsetY"
                            ],
                            "additionalProperties": {}
                          },
                          "colorRefs": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "path": {
                            "type": "string"
                          },
                          "signedUrl": {
                            "type": "string"
                          },
                          "iosPath": {
                            "type": "string"
                          },
                          "iosSignedUrl": {
                            "type": "string"
                          },
                          "androidPath": {
                            "type": "string"
                          },
                          "androidSignedUrl": {
                            "type": "string"
                          },
                          "scale": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "tiltAngle": {
                            "type": "number"
                          },
                          "phoneId": {
                            "type": "string"
                          },
                          "tabletId": {
                            "type": "string"
                          },
                          "desktopId": {
                            "type": "string"
                          },
                          "watchId": {
                            "type": "string"
                          },
                          "variant3D": {
                            "type": "string"
                          },
                          "fitMode": {
                            "type": "string",
                            "enum": [
                              "stretch",
                              "cover",
                              "contain"
                            ]
                          },
                          "showCamera": {
                            "type": "boolean"
                          },
                          "cleanStatusBar": {
                            "type": "boolean"
                          },
                          "contentRotation": {
                            "anyOf": [
                              {
                                "type": "number",
                                "const": 0
                              },
                              {
                                "type": "number",
                                "const": 90
                              },
                              {
                                "type": "number",
                                "const": 180
                              },
                              {
                                "type": "number",
                                "const": 270
                              }
                            ]
                          },
                          "windowTitle": {
                            "type": "string"
                          },
                          "model3D": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "id",
                          "position",
                          "zIndex",
                          "rotation",
                          "scale"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "texts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "position": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": {}
                          },
                          "zIndex": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "overflow": {
                            "type": "boolean"
                          },
                          "rotation": {
                            "type": "number"
                          },
                          "opacity": {
                            "type": "number"
                          },
                          "hidden": {
                            "type": "boolean"
                          },
                          "locked": {
                            "type": "boolean"
                          },
                          "shadow": {
                            "type": "object",
                            "properties": {
                              "color": {
                                "type": "string",
                                "minLength": 1
                              },
                              "blur": {
                                "type": "number"
                              },
                              "offsetX": {
                                "type": "number"
                              },
                              "offsetY": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "color",
                              "blur",
                              "offsetX",
                              "offsetY"
                            ],
                            "additionalProperties": {}
                          },
                          "colorRefs": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "richContent": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "const": "doc"
                              },
                              "content": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "content": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "text": {
                                            "type": "string"
                                          },
                                          "marks": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "attrs": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {}
                                                }
                                              },
                                              "required": [
                                                "type"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "additionalProperties": {}
                                }
                              },
                              "attrs": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              }
                            },
                            "required": [
                              "type",
                              "content"
                            ],
                            "additionalProperties": {}
                          },
                          "align": {
                            "type": "string",
                            "enum": [
                              "left",
                              "center",
                              "right"
                            ]
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "title",
                              "subtitle",
                              "body",
                              "brands"
                            ]
                          },
                          "lineHeight": {
                            "type": "number"
                          },
                          "width": {
                            "type": "number"
                          },
                          "backgroundColor": {
                            "type": "string",
                            "minLength": 1
                          },
                          "backgroundPaddingX": {
                            "type": "number"
                          },
                          "backgroundPaddingY": {
                            "type": "number"
                          },
                          "backgroundCornerRadius": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "id",
                          "position",
                          "zIndex",
                          "richContent"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "pills": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "position": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": {}
                          },
                          "zIndex": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "overflow": {
                            "type": "boolean"
                          },
                          "rotation": {
                            "type": "number"
                          },
                          "opacity": {
                            "type": "number"
                          },
                          "hidden": {
                            "type": "boolean"
                          },
                          "locked": {
                            "type": "boolean"
                          },
                          "shadow": {
                            "type": "object",
                            "properties": {
                              "color": {
                                "type": "string",
                                "minLength": 1
                              },
                              "blur": {
                                "type": "number"
                              },
                              "offsetX": {
                                "type": "number"
                              },
                              "offsetY": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "color",
                              "blur",
                              "offsetX",
                              "offsetY"
                            ],
                            "additionalProperties": {}
                          },
                          "colorRefs": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "type": {
                            "type": "string",
                            "const": "pill"
                          },
                          "richContent": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "const": "doc"
                              },
                              "content": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "content": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "text": {
                                            "type": "string"
                                          },
                                          "marks": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "attrs": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {}
                                                }
                                              },
                                              "required": [
                                                "type"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "additionalProperties": {}
                                }
                              },
                              "attrs": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              }
                            },
                            "required": [
                              "type",
                              "content"
                            ],
                            "additionalProperties": {}
                          },
                          "backgroundColor": {
                            "type": "string",
                            "minLength": 1
                          },
                          "textColor": {
                            "type": "string",
                            "minLength": 1
                          },
                          "width": {
                            "type": "number"
                          },
                          "height": {
                            "type": "number"
                          },
                          "borderColor": {
                            "type": "string",
                            "minLength": 1
                          },
                          "borderWidth": {
                            "type": "number",
                            "minimum": 0
                          },
                          "borderOpacity": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          }
                        },
                        "required": [
                          "id",
                          "position",
                          "zIndex",
                          "richContent",
                          "backgroundColor",
                          "textColor",
                          "width",
                          "height"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "badges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "position": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": {}
                          },
                          "zIndex": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "overflow": {
                            "type": "boolean"
                          },
                          "rotation": {
                            "type": "number"
                          },
                          "opacity": {
                            "type": "number"
                          },
                          "hidden": {
                            "type": "boolean"
                          },
                          "locked": {
                            "type": "boolean"
                          },
                          "shadow": {
                            "type": "object",
                            "properties": {
                              "color": {
                                "type": "string",
                                "minLength": 1
                              },
                              "blur": {
                                "type": "number"
                              },
                              "offsetX": {
                                "type": "number"
                              },
                              "offsetY": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "color",
                              "blur",
                              "offsetX",
                              "offsetY"
                            ],
                            "additionalProperties": {}
                          },
                          "colorRefs": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "type": {
                            "type": "string",
                            "const": "badge"
                          },
                          "text": {
                            "type": "string"
                          },
                          "subtext": {
                            "type": "string"
                          },
                          "size": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "id",
                          "position",
                          "zIndex",
                          "text",
                          "size"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "blobs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "position": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": {}
                          },
                          "zIndex": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "overflow": {
                            "type": "boolean"
                          },
                          "rotation": {
                            "type": "number"
                          },
                          "opacity": {
                            "type": "number"
                          },
                          "hidden": {
                            "type": "boolean"
                          },
                          "locked": {
                            "type": "boolean"
                          },
                          "shadow": {
                            "type": "object",
                            "properties": {
                              "color": {
                                "type": "string",
                                "minLength": 1
                              },
                              "blur": {
                                "type": "number"
                              },
                              "offsetX": {
                                "type": "number"
                              },
                              "offsetY": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "color",
                              "blur",
                              "offsetX",
                              "offsetY"
                            ],
                            "additionalProperties": {}
                          },
                          "colorRefs": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "position",
                          "zIndex"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "ratings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "position": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": {}
                          },
                          "zIndex": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "overflow": {
                            "type": "boolean"
                          },
                          "rotation": {
                            "type": "number"
                          },
                          "opacity": {
                            "type": "number"
                          },
                          "hidden": {
                            "type": "boolean"
                          },
                          "locked": {
                            "type": "boolean"
                          },
                          "shadow": {
                            "type": "object",
                            "properties": {
                              "color": {
                                "type": "string",
                                "minLength": 1
                              },
                              "blur": {
                                "type": "number"
                              },
                              "offsetX": {
                                "type": "number"
                              },
                              "offsetY": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "color",
                              "blur",
                              "offsetX",
                              "offsetY"
                            ],
                            "additionalProperties": {}
                          },
                          "colorRefs": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "position",
                          "zIndex"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "logo": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "position": {
                          "type": "object",
                          "properties": {
                            "x": {
                              "type": "number"
                            },
                            "y": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "x",
                            "y"
                          ],
                          "additionalProperties": {}
                        },
                        "zIndex": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "overflow": {
                          "type": "boolean"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "opacity": {
                          "type": "number"
                        },
                        "hidden": {
                          "type": "boolean"
                        },
                        "locked": {
                          "type": "boolean"
                        },
                        "shadow": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string",
                              "minLength": 1
                            },
                            "blur": {
                              "type": "number"
                            },
                            "offsetX": {
                              "type": "number"
                            },
                            "offsetY": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "color",
                            "blur",
                            "offsetX",
                            "offsetY"
                          ],
                          "additionalProperties": {}
                        },
                        "colorRefs": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "position",
                        "zIndex"
                      ],
                      "additionalProperties": {}
                    },
                    "illustrations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "position": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": {}
                          },
                          "zIndex": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "overflow": {
                            "type": "boolean"
                          },
                          "rotation": {
                            "type": "number"
                          },
                          "opacity": {
                            "type": "number"
                          },
                          "hidden": {
                            "type": "boolean"
                          },
                          "locked": {
                            "type": "boolean"
                          },
                          "shadow": {
                            "type": "object",
                            "properties": {
                              "color": {
                                "type": "string",
                                "minLength": 1
                              },
                              "blur": {
                                "type": "number"
                              },
                              "offsetX": {
                                "type": "number"
                              },
                              "offsetY": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "color",
                              "blur",
                              "offsetX",
                              "offsetY"
                            ],
                            "additionalProperties": {}
                          },
                          "colorRefs": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "position",
                          "zIndex"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "magnifiers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "position": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": {}
                          },
                          "zIndex": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "overflow": {
                            "type": "boolean"
                          },
                          "rotation": {
                            "type": "number"
                          },
                          "opacity": {
                            "type": "number"
                          },
                          "hidden": {
                            "type": "boolean"
                          },
                          "locked": {
                            "type": "boolean"
                          },
                          "shadow": {
                            "type": "object",
                            "properties": {
                              "color": {
                                "type": "string",
                                "minLength": 1
                              },
                              "blur": {
                                "type": "number"
                              },
                              "offsetX": {
                                "type": "number"
                              },
                              "offsetY": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "color",
                              "blur",
                              "offsetX",
                              "offsetY"
                            ],
                            "additionalProperties": {}
                          },
                          "colorRefs": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "position",
                          "zIndex"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "emojis": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "position": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": {}
                          },
                          "zIndex": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "overflow": {
                            "type": "boolean"
                          },
                          "rotation": {
                            "type": "number"
                          },
                          "opacity": {
                            "type": "number"
                          },
                          "hidden": {
                            "type": "boolean"
                          },
                          "locked": {
                            "type": "boolean"
                          },
                          "shadow": {
                            "type": "object",
                            "properties": {
                              "color": {
                                "type": "string",
                                "minLength": 1
                              },
                              "blur": {
                                "type": "number"
                              },
                              "offsetX": {
                                "type": "number"
                              },
                              "offsetY": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "color",
                              "blur",
                              "offsetX",
                              "offsetY"
                            ],
                            "additionalProperties": {}
                          },
                          "colorRefs": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "position",
                          "zIndex"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "backgroundColor": {
                      "type": "string",
                      "minLength": 1
                    },
                    "backgroundGradient": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "linear",
                            "radial"
                          ]
                        },
                        "colors": {
                          "minItems": 2,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "direction": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "type",
                        "colors"
                      ],
                      "additionalProperties": {}
                    },
                    "colorRefs": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "backgroundImage": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string"
                        },
                        "storagePath": {
                          "type": "string"
                        },
                        "blur": {
                          "type": "number"
                        },
                        "verticalOffset": {
                          "type": "number"
                        },
                        "horizontalOffset": {
                          "type": "number"
                        },
                        "attribution": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "required": [
                    "id",
                    "index",
                    "screenType",
                    "screenshots",
                    "texts"
                  ],
                  "additionalProperties": {}
                }
              },
              "headers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "position": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": {}
                    },
                    "width": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "height": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "backgroundColor": {
                      "type": "string",
                      "minLength": 1
                    },
                    "zIndex": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "id",
                    "position",
                    "width",
                    "height",
                    "backgroundColor",
                    "zIndex"
                  ],
                  "additionalProperties": {}
                }
              },
              "canvasWidth": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "canvasHeight": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "backgroundColor": {
                "type": "string",
                "minLength": 1
              },
              "backgroundGradient": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "linear",
                      "radial"
                    ]
                  },
                  "colors": {
                    "minItems": 2,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "direction": {
                    "type": "number"
                  }
                },
                "required": [
                  "type",
                  "colors"
                ],
                "additionalProperties": {}
              },
              "colorRefs": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "panoramaBackground": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "themeColors": {
                "type": "object",
                "properties": {
                  "primary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "secondary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "accent": {
                    "type": "string",
                    "minLength": 1
                  },
                  "background": {
                    "type": "string",
                    "minLength": 1
                  },
                  "text": {
                    "type": "string",
                    "minLength": 1
                  },
                  "textSecondary": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "primary",
                  "secondary",
                  "text",
                  "textSecondary"
                ],
                "additionalProperties": {}
              },
              "orientation": {
                "type": "string",
                "enum": [
                  "portrait",
                  "landscape"
                ]
              },
              "layerGroups": {
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              }
            },
            "required": [
              "template",
              "platform",
              "screens",
              "canvasWidth",
              "canvasHeight",
              "backgroundColor"
            ],
            "additionalProperties": {}
          }
        },
        "required": [
          "format",
          "layout"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "generationId",
    "socialTemplateId",
    "socialPrimaryFormat",
    "graphics"
  ],
  "additionalProperties": false
}

Request example

Set ALF_API_URL to https://dashboard.applaunchflow.com/api/v1 and ALF_API_KEY to your key. Replace sample IDs with your project’s values. Use a new ALF_REQUEST_ID for each new operation.

cURL
curl --request POST \
  --url "$ALF_API_URL/graphics" \
  --header "Authorization: Bearer $ALF_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $ALF_REQUEST_ID" \
  --data '{
  "generationId": "11111111-1111-4111-8111-111111111111",
  "socialTemplateId": "11111111-1111-4111-8111-111111111111",
  "socialPrimaryFormat": "og",
  "graphics": [
    {
      "format": "og",
      "layout": {
        "template": "string",
        "platform": "ios",
        "screens": [
          {
            "id": "11111111-1111-4111-8111-111111111111",
            "index": -9007199254740991,
            "screenType": -9007199254740991,
            "screenshots": [
              {
                "id": "11111111-1111-4111-8111-111111111111",
                "position": {
                  "x": 1,
                  "y": 1
                },
                "zIndex": -9007199254740991,
                "rotation": 1,
                "scale": 1
              }
            ],
            "texts": [
              {
                "id": "11111111-1111-4111-8111-111111111111",
                "position": {
                  "x": 1,
                  "y": 1
                },
                "zIndex": -9007199254740991,
                "richContent": {
                  "type": "doc",
                  "content": [
                    {
                      "type": "string"
                    }
                  ]
                }
              }
            ]
          }
        ],
        "canvasWidth": 1,
        "canvasHeight": 1,
        "backgroundColor": "string"
      }
    }
  ]
}'

This example shows the request structure. Some editor operations require additional query parameters that are not yet described in OpenAPI.

Response

Successful JSON responses wrap the result in data, with a request ID in meta.requestId.

successdatarequired

boolean

View response schema
{
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        }
      },
      "required": [
        "success"
      ],
      "additionalProperties": {}
    },
    "meta": {
      "type": "object",
      "required": [
        "requestId"
      ],
      "properties": {
        "requestId": {
          "type": "string",
          "format": "uuid"
        }
      }
    }
  }
}

Errors & retries

Errors use application/problem+json. Check the stable code and keep requestId when contacting support. Respect Retry-After on 429 responses.

See error handling and idempotency →