Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: JamFrame Designs 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: Designs
description: 'A **design** is a template authored in the JamFrame editor: one or
more pages (a carousel, or a post plus a story) whose layers can be
filled in through the API. Designs are made and edited in the web
app; through the API you can also generate one with AI
(`POST /designs/generate`), have a workflow create one, or import
frames from Figma (**Figma import**).'
paths:
/designs:
get:
tags:
- Designs
operationId: listDesigns
summary: List designs
description: 'Returns the templates in the API key''s workspace, newest first.
Read-only: templates are authored in the web app. Use this to
populate a template picker, then `GET /designs/{id}` for the
parameters of the chosen one. With `source=library` it lists the
template-library presets instead, which any workspace can render
by id.
`q` narrows the list to names containing the text, ignoring case,
for a picker''s search box; it works with either `source`. Each
design reports its page count and whether it is `animated` (a
video template), so a picker can show which ones to render as MP4.'
parameters:
- $ref: '#/components/parameters/Cursor'
- $ref: '#/components/parameters/Limit'
- name: source
in: query
required: false
description: '`workspace` (default): the key''s own designs. `library`: the template-library presets.'
schema:
type: string
enum:
- workspace
- library
default: workspace
- name: q
in: query
required: false
description: 'Only designs whose name contains this text, ignoring case
(`coffee` matches "Coffee tips carousel"). Leading and trailing
spaces are ignored; empty means no filter. Longer than 100
characters is a `400 VALIDATION_ERROR`.
'
schema:
type: string
maxLength: 100
example: coffee
responses:
'200':
description: A page of designs.
content:
application/json:
schema:
type: object
required:
- designs
- pagination
properties:
designs:
type: array
items:
$ref: '#/components/schemas/Design'
pagination:
$ref: '#/components/schemas/Pagination'
examples:
default:
value:
designs:
- id: clx8m2k3p0002abcd1234efgh
name: Coffee tips carousel
orientation: square
pages: 3
animated: false
createdAt: '2026-11-01T09:12:44.000Z'
updatedAt: '2026-11-05T16:03:10.000Z'
- id: clx8m2k3p0004abcd1234efgh
name: Coffee promo reel
orientation: portrait
pages: 2
animated: true
createdAt: '2026-10-28T11:40:02.000Z'
updatedAt: '2026-11-03T08:15:51.000Z'
pagination:
nextCursor: null
hasMore: false
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
/designs/{id}:
get:
tags:
- Designs
operationId: getDesign
summary: Get a design and its parameters
description: 'Returns one template from the API key''s workspace, or from the
template library, with its page count and every parameter a render
can set: layers with a parameter key, and `{{placeholders}}` used in
text. Each parameter lists the pages it appears on and its current
value in the template as an `example`.
Returns `404 NOT_FOUND` when the template doesn''t exist or belongs
to another workspace.'
parameters:
- in: path
name: id
required: true
description: The design (template) id.
schema:
type: string
responses:
'200':
description: The design.
content:
application/json:
schema:
type: object
required:
- design
properties:
design:
$ref: '#/components/schemas/DesignDetail'
examples:
carousel:
value:
design:
id: clx8m2k3p0002abcd1234efgh
name: Coffee tips carousel
orientation: square
pages: 3
animated: false
createdAt: '2026-11-01T09:12:44.000Z'
updatedAt: '2026-11-05T16:03:10.000Z'
parameters:
- key: title
type: text
pages:
- 1
- 2
- 3
example: 5 ways to brew better coffee
- key: photo
type: image
pages:
- 1
example: https://example.com/images/beans.jpg
- key: brand
type: variable
pages:
- 1
- 3
example: Acme Coffee
sizes:
- id: story
name: Story / Reel
width: 1080
height: 1920
- id: landscape
name: Landscape 1.91:1
width: 1200
height: 630
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
components:
schemas:
TemplateSize:
type: object
required:
- id
- name
- width
- height
properties:
id:
type: string
description: The value for `response.size`, e.g. `story`.
name:
type: string
width:
type: integer
minimum: 16
maximum: 10000
height:
type: integer
minimum: 16
maximum: 10000
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
Pagination:
type: object
required:
- nextCursor
- hasMore
properties:
nextCursor:
type:
- string
- 'null'
description: 'Pass this as `?cursor=` to fetch the next page. `null` on the
last page.
'
hasMore:
type: boolean
description: True when more pages remain.
DesignDetail:
allOf:
- $ref: '#/components/schemas/Design'
- type: object
required:
- parameters
- sizes
properties:
parameters:
type: array
description: Everything a render's `modifications` can set by plain key.
items:
$ref: '#/components/schemas/TemplateParameter'
sizes:
type: array
description: 'Smart Resize sizes saved on the template (the editor''s Resize
tab). Pass an `id` as `response.size` to render that size with
its manual adjustments. Any other size can be rendered too.
'
items:
$ref: '#/components/schemas/TemplateSize'
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
parameters:
Cursor:
in: query
name: cursor
schema:
type: string
description: 'Opaque cursor returned in the previous response''s
`pagination.nextCursor`. Omit to start from the first page.
'
Limit:
in: query
name: limit
schema:
type: integer
minimum: 1
maximum: 100
default: 25
description: Page size (clamped to 100).
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'
NotFound:
description: The requested resource was not found in this workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
examples:
template:
value:
error: NOT_FOUND
message: Template clx8m2k3p0002abcd1234efgh not found in this workspace
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