API overview
View as MarkdownThis page lists the rules every REST endpoint follows, and every endpoint. For one endpoint's fields, open its page in the API reference.
The OpenAPI document
One OpenAPI 3.1 document describes every endpoint and field, in a form tools can read:
https://codeartworks.com/docs/openapi/blitframe.json
Import it into Postman or Insomnia to send requests by hand, or generate a client library from it. This command generates one for Python:
npx @openapitools/openapi-generator-cli generate \
-i https://codeartworks.com/docs/openapi/blitframe.json -g python -o blitframe-client
In the API reference, Try it sends a request from your browser with your API key. The key is not saved.
Conventions
| Topic | Rule |
|---|---|
| Base URL | https:/ |
| Authentication | Send Authorization: Bearer <api key> on every request. See Authentication and API keys. |
| Format | JSON bodies, UTF-8, camelCase fields. Field names and values such as "high" are case-sensitive, and a field the endpoint doesn't take is refused with 400 invalid_request, as is a field sent twice or a number sent as a string ("0" for 0). |
| Query parameters | A query parameter the endpoint doesn't take is refused with 400 invalid_request. |
| Ids | UUID strings, except render link ids and library font slugs |
| Enums | camelCase strings, such as "extraHigh". Webhook event types are dotted, such as "render.succeeded". |
| Times | ISO 8601 with offset, such as 2026-11-04T14:00:00+00:00 |
| Empty fields | A field without a value is in the response as null, not left out. The exception is a render, which can leave out replacements, codec, encoding, size, posterFrame and the unset fields of frames. See render fields. |
| Errors | { "error": { "code": "…", "message": "…" } }. Have your code check code, not message. See Errors. |
| Retries | Some POST requests accept an Idempotency-Key header, which lets you retry them without doing the work twice. See Retrying safely. |
| Rate limits | Requests per minute per workspace, set by your plan. See Limits. |
Lists
Endpoints that list things return them a page at a time.
| Part | Rule |
|---|---|
| Response | { "items": [...], "next": "…" }. items is one page, and next leads to the page after it. |
| Next page | Send the request again with next as the before query parameter. Project files, variations and library fonts take it as after instead. |
| Last page | next is null. |
| One page only | GET /, GET / and GET / always fit one page: next is always null, and they take no limit or before. |
| Page size | Set by the limit query parameter, from 1 to 1,000. Any other limit is refused with 400 invalid_request. Without it a page has up to 100 items, or up to 50 for renders, versions, render links and webhook deliveries. |
| A wrong cursor | Use only a next value from the same list. Any other before, or after for project files, is refused with 400 invalid_request. |
Wait for a result
Renders, uploads and other background work finish after their request has returned. Instead of asking again and again, you can have Blitframe hold a response until the work is done. See Waiting for a result.
| Request | Waits |
|---|---|
GET /, download archives, version exports, HTML5 ads, ZIP import status, batches of variations, GET / and POST / |
Only when you send the Prefer: wait=N header. N is in seconds: a larger N waits 50, and a Prefer header that is not wait=N is ignored. |
POST / with a ZIP upload or export, and POST / |
Up to 50 seconds by default. Prefer: wait=N sets a shorter wait. |
Endpoints
Every path below starts at https:/.
| Method | Path | Does |
|---|---|---|
GET |
/ |
List projects, newest first. q searches names. copiedFromVersionId and copiedFromProjectId find copies. |
POST |
/ |
Create a project: empty, from a ZIP upload or a ready export, or as a copy of a version |
GET PATCH DELETE |
/ |
Get, rename or delete a project |
GET |
/ |
List the files of the project's versions |
GET |
/ |
List the versions of main, or of the variation named in ?variation=, newest first |
POST |
/ |
Edit the project |
POST |
/ |
Import a ZIP upload or a ready export as a new version |
GET POST |
/ |
List or create variations |
GET DELETE |
/ |
Get or delete a variation |
POST |
/ |
Create many variations |
GET |
/ |
Status of a batch of variations |
POST |
/ |
Cancel a batch of variations |
GET |
/ |
Status of a large ZIP import |
POST |
/ |
Queue up to 1,000 renders, each of its own version or variation, with its own replacements |
GET POST |
/ |
List or create render links |
GET |
/ |
List the workspace's render links |
DELETE |
/ |
Revoke a render link |
GET |
/ |
Get a version with its files and problems |
GET |
/ |
List the version's editable text, image and video layers |
GET |
/ |
Download one file (302 redirect) |
POST |
/ |
Queue a ZIP of the whole version |
POST |
/ |
Queue a ZIP of every variation's head, to restore as a new project |
GET |
/ |
Version export status and download link |
GET |
/ |
Project export status and download link |
POST |
/ |
Start an upload of a large file or ZIP |
POST |
/ |
Start up to 100 uploads in one request, answered as { "uploads": [...] } |
POST |
/ |
New URLs for parts of a multipart upload |
POST |
/ |
Complete an upload |
GET DELETE |
/ |
Get or delete an upload |
GET |
/ |
Supported file types and their limits |
POST |
/ |
Queue a render, optionally with replacements |
GET |
/ |
List renders |
GET |
/ |
Render status and output links |
POST |
/ |
Status of up to 1,000 renders |
POST |
/ |
Cancel up to 1,000 renders (see refunds) |
POST |
/ |
ZIP of up to 1,000 succeeded videos |
GET |
/ |
Archive status and download link |
POST |
/ |
Cancel a render (see refunds) |
DELETE |
/ |
Delete a finished render |
POST |
/ |
Package a render as an HTML5 ad |
GET |
/ |
HTML5 ad status and download link |
GET |
/ |
Get the workspace's plan, balance and plan limits |
GET |
/ |
Search library fonts (q, language, category, limit, after) |
GET |
/ |
One library font with its license and preview image |
GET |
/ |
List API keys |
DELETE |
/ |
Revoke an API key |
POST |
/ |
Report a problem with a render or version |
GET |
/ |
A problem report and support's answer |
POST |
/ |
Tell Blitframe what was broken, missing or confusing. Nobody answers it. See Send feedback. |
GET POST |
/ |
List or add webhook endpoints |
GET PATCH DELETE |
/ |
Get, update or remove an endpoint |
POST |
/ |
Replace the endpoint's signing secret with a new one |
GET |
/ |
Delivery log |
POST |
/ |
Send a delivery's event again |
POST |
/ |
Send a webhook.test event |
POST |
/ |
Resend the events that never reached the endpoint |
Billing, the team, sign-in security and new API keys are managed in the console, not through the API.
Retrying safely
A request can time out after Blitframe has done the work. To retry it without doing the work twice:
- Send an
Idempotency-Keyheader with a unique value, such as a UUID. - Send the same request with the same key when you retry.
| Request | A retry with the same key returns |
|---|---|
POST / |
The project, or the import creating it from a ZIP |
POST / |
The version the edit made |
POST / |
The version the import made. If the first response was 202, the import as it is now. |
POST / |
The variation |
POST / |
The batch, as it is now |
POST / |
The render, charged once. See render keys. |
POST / |
The batch's renders, charged once |
POST / and POST / |
The uploads, with fresh URLs, while none has been used, deleted or has expired |
| Case | Response |
|---|---|
| The same request again, after the first succeeded | What the first request made, as it is now, with the first request's status code and the header Idempotent-Replayed: true. Nothing is created or charged again. |
| A different request with the same key | 422 idempotency_key_reused. Use a new key. |
| The same key while the first request is still running | 409 idempotency_key_in_use. Wait, then send it again. |
| The first request failed, or everything it made was deleted | The key is free: a request with it runs as a new one. |
A key is 1 to 200 characters and lasts 24 hours. A key for a render or a batch can't contain / or start with render-link:. A key belongs to one workspace and one endpoint, so the same value on another endpoint is a separate key. A render and a batch are the exception: they share their keys.
Documentation for agents
Every docs page is also Markdown at /, and each of its sections at /. llms.txt lists them. MCP clients get the same pages as resources. See MCP for agents.