API overview

View as Markdown

This 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://blitframe.codeartworks.com/v1
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 /v1/webhooks, GET /v1/api-keys and GET /v1/projects/{projectId}/render-links 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 /v1/renders/{renderId}, download archives, version exports, HTML5 ads, ZIP import status, batches of variations, GET /v1/uploads/{uploadId} and POST /v1/uploads/{uploadId}/complete 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 /v1/projects with a ZIP upload or export, and POST /v1/projects/{projectId}/package Up to 50 seconds by default. Prefer: wait=N sets a shorter wait.

Endpoints

Every path below starts at https://blitframe.codeartworks.com.

Method Path Does
GET /v1/projects List projects, newest first. q searches names. copiedFromVersionId and copiedFromProjectId find copies.
POST /v1/projects Create a project: empty, from a ZIP upload or a ready export, or as a copy of a version
GET PATCH DELETE /v1/projects/{projectId} Get, rename or delete a project
GET /v1/projects/{projectId}/files List the files of the project's versions
GET /v1/projects/{projectId}/versions List the versions of main, or of the variation named in ?variation=, newest first
POST /v1/projects/{projectId}/versions Edit the project
POST /v1/projects/{projectId}/package Import a ZIP upload or a ready export as a new version
GET POST /v1/projects/{projectId}/variations List or create variations
GET DELETE /v1/projects/{projectId}/variations/{name} Get or delete a variation
POST /v1/projects/{projectId}/variations/batch Create many variations
GET /v1/projects/{projectId}/variations/batch/{batchId} Status of a batch of variations
POST /v1/projects/{projectId}/variations/batch/{batchId}/cancel Cancel a batch of variations
GET /v1/projects/{projectId}/package/{importId} Status of a large ZIP import
POST /v1/projects/{projectId}/renders/batch Queue up to 1,000 renders, each of its own version or variation, with its own replacements
GET POST /v1/projects/{projectId}/render-links List or create render links
GET /v1/render-links List the workspace's render links
DELETE /v1/render-links/{linkId} Revoke a render link
GET /v1/versions/{versionId} Get a version with its files and problems
GET /v1/versions/{versionId}/layers List the version's editable text, image and video layers
GET /v1/versions/{versionId}/files/{path} Download one file (302 redirect)
POST /v1/versions/{versionId}/export Queue a ZIP of the whole version
POST /v1/projects/{projectId}/export Queue a ZIP of every variation's head, to restore as a new project
GET /v1/versions/{versionId}/export/{exportId} Version export status and download link
GET /v1/projects/{projectId}/export/{exportId} Project export status and download link
POST /v1/uploads Start an upload of a large file or ZIP
POST /v1/uploads/batch Start up to 100 uploads in one request, answered as { "uploads": [...] }
POST /v1/uploads/{uploadId}/parts New URLs for parts of a multipart upload
POST /v1/uploads/{uploadId}/complete Complete an upload
GET DELETE /v1/uploads/{uploadId} Get or delete an upload
GET /v1/files/capabilities Supported file types and their limits
POST /v1/renders Queue a render, optionally with replacements
GET /v1/renders List renders
GET /v1/renders/{renderId} Render status and output links
POST /v1/renders/statuses Status of up to 1,000 renders
POST /v1/renders/cancel Cancel up to 1,000 renders (see refunds)
POST /v1/renders/download-archive ZIP of up to 1,000 succeeded videos
GET /v1/renders/download-archive/{archiveId} Archive status and download link
POST /v1/renders/{renderId}/cancel Cancel a render (see refunds)
DELETE /v1/renders/{renderId} Delete a finished render
POST /v1/renders/{renderId}/html Package a render as an HTML5 ad
GET /v1/renders/{renderId}/html/{htmlAdId} HTML5 ad status and download link
GET /v1/usage Get the workspace's plan, balance and plan limits
GET /v1/fonts Search library fonts (q, language, category, limit, after)
GET /v1/fonts/{slug} One library font with its license and preview image
GET /v1/api-keys List API keys
DELETE /v1/api-keys/{apiKeyId} Revoke an API key
POST /v1/problem-reports Report a problem with a render or version
GET /v1/problem-reports/{reportId} A problem report and support's answer
POST /v1/feedback Tell Blitframe what was broken, missing or confusing. Nobody answers it. See Send feedback.
GET POST /v1/webhooks List or add webhook endpoints
GET PATCH DELETE /v1/webhooks/{webhookId} Get, update or remove an endpoint
POST /v1/webhooks/{webhookId}/rotate-secret Replace the endpoint's signing secret with a new one
GET /v1/webhooks/{webhookId}/deliveries Delivery log
POST /v1/webhooks/{webhookId}/deliveries/{deliveryId}/redeliver Send a delivery's event again
POST /v1/webhooks/{webhookId}/test Send a webhook.test event
POST /v1/webhooks/{webhookId}/recover 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:

  1. Send an Idempotency-Key header with a unique value, such as a UUID.
  2. Send the same request with the same key when you retry.
Request A retry with the same key returns
POST /v1/projects The project, or the import creating it from a ZIP
POST /v1/projects/{projectId}/versions The version the edit made
POST /v1/projects/{projectId}/package The version the import made. If the first response was 202, the import as it is now.
POST /v1/projects/{projectId}/variations The variation
POST /v1/projects/{projectId}/variations/batch The batch, as it is now
POST /v1/renders The render, charged once. See render keys.
POST /v1/projects/{projectId}/renders/batch The batch's renders, charged once
POST /v1/uploads and POST /v1/uploads/batch 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.

See which errors to retry.

Documentation for agents

Every docs page is also Markdown at /docs/blitframe/{page}.md, and each of its sections at /docs/blitframe/{page}/{section}.md. llms.txt lists them. MCP clients get the same pages as resources. See MCP for agents.