JamFrame Figma import API

Create templates from Figma frames: the endpoints behind the Figma plugin (see `docs/figma-plugin.md` in the repository). The one way to create designs through the API; they are then rendered like any other. Both methods answer CORS for any origin (the plugin's iframe has a `null` origin; the credential is the bearer key, never a cookie).

GitHub OpenAPI

Operations 2

GET /designs/import/figma Check a key for the Figma plugin #
POST /designs/import/figma Import Figma frames as templates #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/jamframe-com:jamframe-com-figma-import-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

jamframe-com-figma-import-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: JamFrame Figma import API
  version: 1.0.0
  summary: Render images, carousels, PDFs and short videos from your templates.
  description: 'The JamFrame REST API turns a template you designed in the JamFrame

    editor into finished files: a PNG, JPEG or WebP image, a multi-page

    carousel, a PDF, or an MP4 video of the animated pages. Send the

    template id and the values to fill in; get back a URL (or base64) for

    each file. Every request is authenticated with a per-workspace API key, created

    from the **API Keys** page in the web app. ## Authentication


    Send your key in the `Authorization` header as a bearer token:


    ```

    Authorization: Bearer jf_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    ```


    The key is bound to a single workspace; you don''t need to pass a

    workspace id separately. Keys are shown exactly once when you create

    them: store them in a secrets manager, and rotate them by revoking and

    recreating. ## Rendering in three steps


    1. Find the template: `GET /designs` lists the workspace''s templates. 2. See what you can fill in: `GET /designs/{id}` returns the template''s

    `parameters` (layer keys and `{{placeholders}}`) and page count. 3. Render it: `POST /render` with the template id and `modifications`. Templates from the **template library** (the ready-made designs in the

    editor''s Templates tab) can be rendered the same way: pass the library

    template''s id as `templateId`, and `GET /designs/{id}` returns its

    parameters too. Credits are charged to your workspace, and the render

    log records the library template''s id. ## File links


    Rendered files are private. With `response.type: "url"` (the default)

    each file comes back as a link that works for `expiresIn` seconds, a

    top-level field of the render request: 300 (5 minutes) by default, at

    most 604800 (7 days). `expiresAt`, next to `content`, says until when. A value outside that range is a `400 VALIDATION_ERROR`. - A render job keeps its `expiresIn`: every `GET /render-jobs/{id}`

    answers fresh links that work for that long from then, and the

    `render.*` webhook events and the `webhookUrl` callback carry links

    signed when they are sent. - `GET /renders` and `GET /renders/{id}` answer fresh links that work

    for 5 minutes. - Files are deleted **8 days** after the render, so a link never

    outlives its file. - **Need a permanent link?** Use a Dynamic URL (below): it renders the

    image when it is opened, serves it from the render cache afterwards,

    and works for as long as you keep it on. ## Signed and dynamic URLs


    Two ways to render from a plain link, with no API key in the page, for

    an ``, an email or an `og:image`:


    - **Signed URLs**: `POST /signed-urls` turns one render request into a

    tamper-proof link that renders it when opened (and serves it from the

    render cache afterwards, free). See `GET /r/s/{token}`. - **Dynamic URLs**: a template''s public link, switched on in the app''s

    Integrations, API & Forms dialog, that renders from its query parameters:

    `/r/d/{publicId}.png?headline=Hello`. It has a credit cap, a cache

    time and an expiry. See `GET /r/d/{file}`. Both answer with the file''s bytes. A render costs credits as usual; a

    request served from the render cache costs nothing. ## Smart Resize


    One template renders at any size. `response.size` lays every page out

    at another size: a size saved on the template in the editor''s

    **Resize** tab (its id, listed in `GET /designs/{id}` as `sizes`, with

    any manual adjustments), a size name (`story`, `square`, `portrait`,

    `landscape`, `widescreen`, `thumbnail`, `pin`, or a preset id such as

    `instagram-story` or `og-image`), `"WIDTHxHEIGHT"`, or `original`. A size the template hasn''t saved is laid out automatically: backgrounds

    and photos fill the new canvas, edge decorations stay on their edge,

    and the content is scaled and re-centred. `response.sizes` renders

    several sizes in one call; `content` is then one entry per size,

    `[{ size, url | urls }]`. Credits are 1 per page per size. ### Modification keys


    | Key | Effect |

    | --- | --- |

    | `title` | Sets every layer whose parameter key is `title`, and every `{{title}}` placeholder in text.'
servers:
- url: https://api.jamframe.com/v1
  description: Production
- url: http://localhost:3100/v1
  description: Local development
security:
- bearerAuth: []
tags:
- name: Figma import
  description: 'Create templates from Figma frames: the endpoints behind the Figma

    plugin (see `docs/figma-plugin.md` in the repository). The one way to

    create designs through the API; they are then rendered like any other.

    Both methods answer CORS for any origin (the plugin''s iframe has a

    `null` origin; the credential is the bearer key, never a cookie).'
paths:
  /designs/import/figma:
    get:
      tags:
      - Figma import
      operationId: getFigmaImportInfo
      summary: Check a key for the Figma plugin
      description: 'The API key''s workspace and organization, and the limits an import

        must respect. The Figma plugin calls it when connecting.'
      responses:
        '200':
          description: The workspace and the limits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FigmaImportInfo'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      tags:
      - Figma import
      operationId: importFigma
      summary: Import Figma frames as templates
      description: 'Turns the Figma plugin''s export (frames, layers bottom to top, and

        their image/SVG files) into a template of the key''s workspace: one

        page per frame (`mode: pages`, default) or one template per frame

        (`mode: separate`). Layers named `{{key}}` or `#key` in Figma carry

        a `param` and become the template''s parameters.


        Send `multipart/form-data` with a `document` field (the document as

        JSON) and one file part per asset, named after the asset''s `id`; or

        `application/json` with the document itself and each asset''s bytes

        as base64 `data` (bodies up to 5 MB).


        Files are checked by content (PNG, JPEG, GIF, WebP, or SVG under the

        brand library''s rules) and stored in the brand library, tagged

        `figma` and the template''s name. Fonts are matched to the built-in

        Google Fonts, the brand library, or Google Fonts (added to the

        library unless `options.importFonts` is false), else a fallback.

        Nothing is stored unless every file passes. Each new design sends a

        `design.created` webhook.


        Limits: 20 frames, 1,000 layers a frame (5,000 in all), 300 files,

        10 MB a raster image, 5 MB an SVG, 1 MB a thumbnail, 60 MB of files

        in all, 30 imports per workspace per 10 minutes.'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - document
              properties:
                document:
                  type: string
                  description: The `FigmaImportDocument` as JSON (at most 4 MB).
              additionalProperties:
                type: string
                format: binary
                description: One file per asset, the field named after the asset id.
          application/json:
            schema:
              $ref: '#/components/schemas/FigmaImportDocument'
      responses:
        '201':
          description: The template(s) created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FigmaImportResult'
              examples:
                post:
                  value:
                    designs:
                    - id: clx8m2k3p0004abcd1234efgh
                      name: Summer sale post
                      orientation: portrait
                      createdAt: '2026-11-10T09:12:44.000Z'
                      updatedAt: '2026-11-10T09:12:44.000Z'
                      pages: 1
                      animated: false
                      editorUrl: https://app.jamframe.com/designs/clx8m2k3p0004abcd1234efgh/edit
                      parameters:
                      - key: photo
                        type: image
                        pages:
                        - 1
                        example: https://cdn.jamframe.com/workspaces/ws/images/a1.png
                      - key: headline
                        type: text
                        pages:
                        - 1
                        example: Summer Sale is here
                    fonts:
                    - family: Poppins
                      status: google
                      usedFamily: Poppins
                    - family: SF Pro Display
                      status: fallback
                      usedFamily: Inter
                      note: 'Not a Google Font and not in the brand library: drawn in Inter.'
                    assets:
                      stored: 3
                      bytes: 245911
                    warnings:
                    - frame: Instagram post
                      layer: '{{headline}}'
                      message: 'Text with several styles kept its main style (Poppins Bold 88px #111827); colour of the rest flattened'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '413':
          description: A file, the files together, or the request is over its cap.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error: VALIDATION_ERROR
                message: A file is larger than 10 MB (field "a1")
        '415':
          description: The body is neither `multipart/form-data` nor `application/json`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    FigmaImportResult:
      type: object
      required:
      - designs
      - fonts
      - assets
      - warnings
      properties:
        designs:
          type: array
          items:
            allOf:
            - $ref: '#/components/schemas/Design'
            - type: object
              required:
              - pages
              - parameters
              - editorUrl
              properties:
                pages:
                  type: integer
                  minimum: 1
                parameters:
                  type: array
                  items:
                    $ref: '#/components/schemas/TemplateParameter'
                editorUrl:
                  type: string
                  format: uri
                  description: The template in the editor.
        fonts:
          type: array
          items:
            type: object
            required:
            - family
            - status
            - usedFamily
            properties:
              family:
                type: string
                description: The family as Figma names it.
              status:
                type: string
                enum:
                - google
                - brand-library
                - imported
                - fallback
                description: '`google`: a built-in Google Font. `brand-library`: a font

                  file in the brand library. `imported`: added to the brand

                  library from Google Fonts now. `fallback`: unavailable,

                  drawn in `usedFamily`.

                  '
              usedFamily:
                type: string
              note:
                type: string
        assets:
          type: object
          required:
          - stored
          - bytes
          description: Files added to the brand library (fonts not counted).
          properties:
            stored:
              type: integer
            bytes:
              type: integer
        warnings:
          type: array
          description: What didn't carry over exactly (flattened text styles, dropped effects, fonts that fell back, …).
          items:
            $ref: '#/components/schemas/FigmaImportWarning'
    TemplateParameter:
      type: object
      required:
      - key
      - type
      - pages
      - example
      properties:
        key:
          type: string
          description: The modification key, e.g. `title`.
        type:
          type: string
          enum:
          - text
          - image
          - qr
          - shape
          - video
          - audio
          - subtitles
          - variable
          description: 'What the value sets: `text` → the layer''s text, `image` → the

            image URL, `qr` → the encoded value, `shape` → the fill colour,

            `video` → the video clip URL, `audio` → the template''s audio

            track URL (listed when the template has one; it plays across

            every page), `subtitles` → the video''s subtitles (listed when

            the template has some; `example` is the first cue''s text),

            `variable` → a `{{placeholder}}` inside text.

            '
        pages:
          type: array
          items:
            type: integer
            minimum: 1
          description: Pages (from 1) on which this parameter appears.
        example:
          type: string
          description: The value currently in the template.
        prompt:
          type: string
          description: 'Layers filled by AI at render time: their prompt. Send

            `<key>.prompt` to change it, or a plain value to skip the AI;

            `example` is then the layer''s saved text or image. `{{name}}`

            placeholders in it are parameters of the render too.

            '
    Design:
      type: object
      description: Template summary. Also the `data` of every `design.*` webhook event.
      required:
      - id
      - name
      - orientation
      - pages
      - animated
      - createdAt
      - updatedAt
      properties:
        id:
          type: string
        name:
          type: string
        orientation:
          type: string
          enum:
          - landscape
          - portrait
          - square
          description: Derived from the first page's canvas size.
        pages:
          type: integer
          minimum: 0
          description: 'Number of pages in the template (1 for a single image, more for

            a carousel; each page is a scene of a video). 0 only for a

            template that can''t be read, which fails to render.

            '
        animated:
          type: boolean
          description: 'A video template: a page has animated layers, a video layer, a

            set duration or a transition into the next page, or the template

            has a soundtrack. Render it with `response.format: "mp4"` to see

            the motion; image and PDF formats show it still.

            '
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    FigmaImportDocument:
      type: object
      description: 'What the Figma plugin exports. Coordinates are px in the frame; a

        layer''s box is unrotated and `rotation` turns it clockwise around

        its centre. Layers are listed bottom to top. The complete schema is

        `server/src/lib/figmaImport/format.ts`; the plugin''s fixtures

        (`integrations/figma-plugin/fixtures/*.json`) are full examples.

        '
      required:
      - format
      - version
      - frames
      - assets
      properties:
        format:
          type: string
          enum:
          - figma-import
        version:
          type: integer
          enum:
          - 1
        name:
          type: string
          maxLength: 200
          description: Template name (`pages` mode; default the first frame's name).
        mode:
          type: string
          enum:
          - pages
          - separate
          default: pages
        source:
          type: object
          properties:
            fileName:
              type: string
            fileKey:
              type:
              - string
              - 'null'
            pageName:
              type: string
            pluginVersion:
              type: string
        options:
          type: object
          properties:
            importFonts:
              type: boolean
              default: true
              description: Add Google Fonts that aren't built in to the brand library.
        frames:
          type: array
          minItems: 1
          maxItems: 20
          items:
            $ref: '#/components/schemas/FigmaImportFrame'
        assets:
          type: array
          maxItems: 300
          items:
            type: object
            required:
            - id
            - mime
            properties:
              id:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,64}$
              mime:
                type: string
                enum:
                - image/png
                - image/jpeg
                - image/gif
                - image/webp
                - image/svg+xml
              name:
                type: string
                description: The name it gets in the brand library.
              role:
                type: string
                enum:
                - layer
                - thumbnail
              data:
                type: string
                format: byte
                description: Base64 bytes (JSON requests only).
        warnings:
          type: array
          description: Notes from the plugin, passed through to the result.
          items:
            $ref: '#/components/schemas/FigmaImportWarning'
    FigmaImportLayer:
      type: object
      description: 'One layer. Common fields below; by `type`:

        `text`: `text`, `runs` (style runs: `start`, `end`, `fontFamily`,

        `fontStyle`, `fontWeight`, `italic`, `fontSize`, `lineHeight`,

        `letterSpacing`, `color`, `textCase`, `decoration`), `align`,

        `verticalAlign`, `autoResize`, `inkBounds`;

        `rectangle`, `ellipse`, `line`, `triangle`: `fill`, `stroke`,

        `strokeWidth`, `strokeAlign`, `strokeCap`, `cornerRadius`;

        `image`: `asset`, `fit` (`cover`, `contain`, or `fill` for a render

        of the layer), `cornerRadius`, `flipX`, `flipY`.

        '
      required:
      - type
      - id
      - name
      - x
      - y
      - width
      - height
      properties:
        type:
          type: string
          enum:
          - text
          - rectangle
          - ellipse
          - line
          - triangle
          - image
        id:
          type: string
        name:
          type: string
        param:
          type: string
          description: API parameter key (from a `{{key}}` or `#key` layer name).
        x:
          type: number
        y:
          type: number
        width:
          type: number
          minimum: 0
        height:
          type: number
          minimum: 0
        rotation:
          type: number
          description: Degrees, clockwise.
        opacity:
          type: number
          minimum: 0
          maximum: 1
        clip:
          type: object
          description: The visible area left by a clipping parent frame (images and rectangles are cropped to it).
          properties:
            x:
              type: number
            y:
              type: number
            width:
              type: number
            height:
              type: number
            radius:
              type: number
      additionalProperties: true
    FigmaImportWarning:
      type: object
      required:
      - message
      properties:
        frame:
          type: string
        layer:
          type: string
        message:
          type: string
    FigmaImportFrame:
      type: object
      required:
      - id
      - name
      - width
      - height
      - background
      - layers
      properties:
        id:
          type: string
          description: Figma node id.
        name:
          type: string
        width:
          type: number
          minimum: 1
          maximum: 10000
        height:
          type: number
          minimum: 1
          maximum: 10000
        background:
          type:
          - string
          - 'null'
          description: '`#rrggbb`; null for none (white).'
        thumbnail:
          type: string
          description: Asset id of a small preview, stored as the design's thumbnail.
        layers:
          type: array
          maxItems: 1000
          items:
            $ref: '#/components/schemas/FigmaImportLayer'
    FigmaImportInfo:
      type: object
      required:
      - workspace
      - organization
      - appUrl
      - format
      - formatVersion
      - limits
      properties:
        workspace:
          type: object
          required:
          - id
          - name
          properties:
            id:
              type: string
            name:
              type: string
        organization:
          type: object
          required:
          - id
          - name
          properties:
            id:
              type: string
            name:
              type: string
        appUrl:
          type: string
          description: The app's origin (the editor lives at `<appUrl>/designs/<id>/edit`).
        format:
          type: string
          enum:
          - figma-import
        formatVersion:
          type: integer
          enum:
          - 1
        limits:
          type: object
          description: What one import may carry (bytes, counts, px).
          additionalProperties:
            type: integer
          example:
            maxFrames: 20
            maxLayersPerFrame: 1000
            maxLayers: 5000
            maxAssets: 300
            maxAssetBytes: 10485760
            maxSvgBytes: 5242880
            maxThumbnailBytes: 1048576
            maxTotalBytes: 62914560
            maxDocumentBytes: 4194304
            maxJsonBodyBytes: 5242880
            maxTextLength: 20000
            maxCanvasSide: 10000
    ApiError:
      type: object
      required:
      - error
      - message
      properties:
        error:
          type: string
          description: 'Stable, machine-readable error code. `INVALID_REQUEST` (400) is a

            body that isn''t valid JSON, `BODY_TOO_LARGE` (413) a body over

            5 MB, and `UNSUPPORTED_MEDIA_TYPE` (415) a body in a charset or

            encoding the API can''t read.

            '
          enum:
          - MISSING_API_KEY
          - INVALID_API_KEY
          - EXPIRED_API_KEY
          - ORG_ON_HOLD
          - ORG_SUSPENDED
          - RATE_LIMITED
          - VALIDATION_ERROR
          - INVALID_REQUEST
          - BODY_TOO_LARGE
          - UNSUPPORTED_MEDIA_TYPE
          - NOT_FOUND
          - CONFLICT
          - QUOTA_EXCEEDED
          - WORKSPACE_QUOTA_EXCEEDED
          - PLAN_LIMIT_EXCEEDED
          - WEBHOOK_URL_INVALID
          - WEBHOOK_LIMIT_REACHED
          - VIDEO_UNAVAILABLE
          - AI_UNAVAILABLE
          - AI_CONTENT_REFUSED
          - AI_TIMEOUT
          - AI_RATE_LIMITED
          - AI_BAD_OUTPUT
          - AI_BAD_REQUEST
          - AI_UPSTREAM_ERROR
          - AI_CREDITS_EXCEEDED
          - INTERNAL
        message:
          type: string
          description: Human-readable error message, safe to show to end users.
        detail:
          type: object
          description: Optional structured context (varies by error code).
          additionalProperties: true
  responses:
    ValidationError:
      description: 'The request body or query was invalid: a malformed body, a page

        that doesn''t exist (`includePages` or a `pageN@` key), a style

        property the layer type doesn''t support, a non-numeric value for a

        numeric property, more than 20 pages, or a video longer than the

        plan allows (30 seconds on Free, 60 on paid plans).

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            badBody:
              value:
                error: VALIDATION_ERROR
                message: Invalid render request
                detail:
                  issues:
                  - code: invalid_type
                    path:
                    - templateId
                    message: 'Invalid input: expected string, received undefined'
            badPage:
              value:
                error: VALIDATION_ERROR
                message: 'includePages: the template has 3 page(s)'
                detail:
                  missing:
                  - 4
            badProperty:
              value:
                error: VALIDATION_ERROR
                message: '"photo.color": "color" can''t be set on a image layer'
    Unauthorized:
      description: 'Missing, malformed, expired or revoked API key, or the key''s

        creator is suspended or no longer has editor access to the

        workspace.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            missing:
              value:
                error: MISSING_API_KEY
                message: Missing Authorization header
            invalid:
              value:
                error: INVALID_API_KEY
                message: Invalid API key
            expired:
              value:
                error: EXPIRED_API_KEY
                message: API key has expired
    RateLimited:
      description: 'Too many requests for this organization (or endpoint). Honour the `Retry-After`

        response header (seconds) or the `detail.retryAfter` field.

        '
      headers:
        Retry-After:
          description: Seconds until the next request will succeed.
          schema:
            type: integer
        RateLimit:
          description: 'The current window (IETF rate-limit headers, draft 7), sent on

            every authenticated response: `limit=100, remaining=0, reset=42`

            (requests per window, requests left, seconds until it resets).

            '
          schema:
            type: string
          example: limit=100, remaining=0, reset=42
        RateLimit-Policy:
          description: The limit and the window length in seconds (`100;w=60`), sent on every authenticated response.
          schema:
            type: string
          example: 100;w=60
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            default:
              value:
                error: RATE_LIMITED
                message: Rate limit exceeded. Retry after 30 seconds.
                detail:
                  retryAfter: 30
    Forbidden:
      description: 'The organization is on hold (`ORG_ON_HOLD`: reads still work,

        changes and renders are refused) or suspended (`ORG_SUSPENDED`:

        everything is refused).

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            onHold:
              value:
                error: ORG_ON_HOLD
                message: This organization is on hold while we review recent activity. You can still view everything, but changes are paused.
            suspended:
              value:
                error: ORG_SUSPENDED
                message: This organization has been suspended.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: jf_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      description: Bearer API key created on the web app's API Keys page.
x-tagGroups:
- name: Rendering
  tags:
  - Render
  - Signed URLs
  - Public URLs
  - Public forms
- name: Templates
  tags:
  - Designs
  - AI
  - Figma import
- name: Automation
  tags:
  - Workflows
  - Social
  - Webhooks
- name: Account
  tags:
  - Auth