API reference
Blitframe renders a composition, the description of a video's layers and how they move, to MP4, HLS or image frames. A composition can come from After Effects, from your own code or from an AI agent.
Every endpoint has a page in the API reference with its fields and a request in nine languages. Try it sends the request from your browser with your API key.
Authentication
An API key identifies your workspace. Create one in the console, and send it on every request:
Authorization: Bearer blitframe_...
How it works
| Object | What it is |
|---|---|
| Project | The place where one piece of motion graphics lives: its composition, its files and every saved version of them. Its headVersionId is the current version, which edits and renders use unless you name another. |
| Version | A snapshot of every file of a project. Each edit saves a new one. |
| Render | The job that makes the finished output from one version: an MP4, an HLS stream or image frames. |
POST /creates an empty project.v1/ projects POST /edits the project: the files you send are saved as a new version. Send the composition, a file namedv1/ projects/ {projectId}/ versions data.json, and the files it uses.- The response says whether the version is
renderable. If it is not,problemslists what to fix. Send the fix in another edit. POST /with thev1/ renders projectIdqueues a render.GET /returns the render: itsv1/ renders/ {renderId} statusand, once it has succeeded, the links to its output. Send thePrefer: wait=50header to have the response held until the render finishes, for up to 50 seconds. Or have a webhook tell you.
Quickstart: Code walks through these steps. The composition format lists everything a composition can hold.
| To make | Use |
|---|---|
| One-off videos that swap text or pictures, such as one per row of a data sheet | POST /. See many videos from a data sheet. |
| The same video in another form that you keep editing, such as in Spanish or vertical for phones | POST /. See Variations. |
Conventions
| Topic | Rule |
|---|---|
| Format | JSON bodies with case-sensitive camelCase fields and values (an unknown or repeated field, or an unknown query parameter, is 400 invalid_request), ISO 8601 times. Ids are UUIDs, except render link ids and library font slugs. |
| Enums | camelCase strings. Webhook event types are dotted, such as render.succeeded. |
| Lists | { "items": [...], "next": "..." }. Pass next as before for the next page (as after for project files, variations and library fonts). next is null on the last page. limit sets the page size, 1 to 1,000. |
| Errors | { "error": { "code": "...", "message": "..." } }. Have your code check code, not message. See errors. |
| Retries | Send an Idempotency-Key header when you create a project, variation or upload, edit, import a ZIP or render, and the same key when you retry. See retrying safely. |
| Rate limit | Requests per minute per workspace, set by your plan. Over it, you get 429 with a Retry-After header. See limits. |
AI agents
AI agents use the same operations through the MCP server at /. An agent signs in with your Code Artworks account and needs no API key. See Quickstart: AI Agent and MCP for agents.
API keys
Layers
Feedback
Fonts
Problem reports
Projects
- GET
/v1/projectsList projects - POST
/v1/projectsCreate a project - GET
/v1/projects/{projectId}Get a project - PATCH
/v1/projects/{projectId}Rename a project - DELETE
/v1/projects/{projectId}Delete a project - GET
/v1/projects/{projectId}/filesList project files - POST
/v1/projects/{projectId}/packageImport a ZIP into a project - GET
/v1/projects/{projectId}/package/{importId}Get a ZIP import - GET
/v1/projects/{projectId}/variationsList variations - POST
/v1/projects/{projectId}/variationsCreate a variation - POST
/v1/projects/{projectId}/variations/batchCreate many variations - GET
/v1/projects/{projectId}/variations/batch/{batchId}Get a batch of variations - POST
/v1/projects/{projectId}/variations/batch/{batchId}/cancelCancel a batch of variations - GET
/v1/projects/{projectId}/variations/{name}Get a variation - DELETE
/v1/projects/{projectId}/variations/{name}Delete a variation - GET
/v1/projects/{projectId}/versionsList version history - POST
/v1/projects/{projectId}/versionsEdit a project - GET
/v1/versions/{versionId}Get a version - GET
/v1/versions/{versionId}/files/{path}Download a file - POST
/v1/versions/{versionId}/exportExport a version as ZIP - POST
/v1/projects/{projectId}/exportExport a whole project as ZIP - GET
/v1/versions/{versionId}/export/{exportId}Get a version export - GET
/v1/projects/{projectId}/export/{exportId}Get a project export
Render links
- POST
/v1/projects/{projectId}/render-linksCreate a render link - GET
/v1/projects/{projectId}/render-linksList a project's render links - GET
/v1/render-linksList render links - DELETE
/v1/render-links/{linkId}Delete a render link
Renders
- POST
/v1/rendersCreate a render - GET
/v1/rendersList renders - POST
/v1/projects/{projectId}/renders/batchCreate a batch of renders - POST
/v1/renders/statusesGet many render statuses - POST
/v1/renders/cancelCancel many renders - POST
/v1/renders/download-archiveCreate a download archive - GET
/v1/renders/download-archive/{archiveId}Get a download archive - GET
/v1/renders/{renderId}Get a render - DELETE
/v1/renders/{renderId}Delete a render - POST
/v1/renders/{renderId}/cancelCancel a render - POST
/v1/renders/{renderId}/htmlExport an HTML5 ad - GET
/v1/renders/{renderId}/html/{htmlAdId}Get an HTML5 ad
Uploads
- POST
/v1/uploadsCreate an upload - POST
/v1/uploads/batchCreate many uploads - GET
/v1/uploads/{uploadId}Get an upload - DELETE
/v1/uploads/{uploadId}Delete an upload - POST
/v1/uploads/{uploadId}/partsIssue part URLs again - POST
/v1/uploads/{uploadId}/completeComplete an upload - GET
/v1/files/capabilitiesGet file capabilities
Workspace
Webhooks
- GET
/v1/webhooksList webhook endpoints - POST
/v1/webhooksAdd a webhook endpoint - GET
/v1/webhooks/{webhookId}Get a webhook endpoint - PATCH
/v1/webhooks/{webhookId}Update a webhook endpoint - DELETE
/v1/webhooks/{webhookId}Delete a webhook endpoint - POST
/v1/webhooks/{webhookId}/rotate-secretRotate the signing secret - GET
/v1/webhooks/{webhookId}/deliveriesList deliveries - POST
/v1/webhooks/{webhookId}/deliveries/{deliveryId}/redeliverRedeliver an event - POST
/v1/webhooks/{webhookId}/testSend a test event - POST
/v1/webhooks/{webhookId}/recoverResend missed events
Models
Models lists every object the requests send and the responses return, field by field.