> ## Documentation Index
> Fetch the complete documentation index at: https://docs.motion.so/llms.txt
> Use this file to discover all available pages before exploring further.

# API Reference

> Motion REST API reference: base URL, authentication, date-based versioning, and core object model.

The Motion API is organized around REST. It uses predictable resource-oriented URLs, accepts JSON request bodies, returns JSON responses, and uses standard HTTP response codes, Bearer authentication, and date-based API versioning.

## Base URL

```text theme={null}
https://api.motion.so/api/motion
```

## Authentication & versioning

Authenticate requests with a workspace-scoped Motion API key or OAuth 2.1 access token in the `Authorization` header:

```bash theme={null}
curl https://api.motion.so/api/motion/projects \
  -H "Authorization: Bearer motion_YOUR_API_KEY"
```

* **Current version:** `2026-11-19` (default for all new API keys).
* **Pinned versions:** Existing keys and OAuth connections stay pinned to their version (`2026-10-22` or `2026-11-19`) until you upgrade them in **Settings → Integrations → API keys**.
* **Per-request override:** Send `Motion-API-Version: 2026-11-19` on any request to test another version without changing your key. Every response echoes the resolved `Motion-API-Version` header.

See [Authentication & scopes](https://docs.motion.so/guides/authentication.md) and [API versions](https://docs.motion.so/guides/api-versions.md) for full details.

## Core object model

Motion separates **authoring** from **rendering** so you can iterate quickly, branch into templates, and export multiple formats without re-running the video agent:

| Object | What it is |
| - | - |
| **[Project](https://docs.motion.so/api/projects)** | Stateful creative workspace holding conversation history, active settings, saved generations, and exports. |
| **[Turn](https://docs.motion.so/api/projects/list-turns.md)** | One execution cycle (`turn_id`) triggered by creating a project or sending a message (plus any mid-run steering). |
| **[Generation](https://docs.motion.so/api/projects#the-generation-object)** | **Immutable saved snapshot** (`generation_id`) of a project's authored video/image compositions committed when a turn finalizes—no MP4 encode required. Used as the stable source for Exports, Templates, and Social posts. |
| **[Export](https://docs.motion.so/api/exports)** | Asynchronous GPU render job converting one composition from a saved generation into an MP4, still image, or desktop editor package (Premiere, After Effects, Resolve, Final Cut, PSD, SVG). |
| **[Library Asset](https://docs.motion.so/api/library)** | Reusable workspace media file (footage, images, audio, fonts, PDFs up to 512 MB) referenced by `asset_id`. |
| **[Template](https://docs.motion.so/api/templates)** | Reusable creative blueprint saved directly from a finalized `generation_id`. |
| **[Brand Kit](https://docs.motion.so/api/brand-kits)** | Structured guidelines and ready Library assets attached across projects. |

## Core resources

* **[Projects](https://docs.motion.so/api/projects)** — Create, steer, poll, and inspect stateful video and image projects.
* **[Exports](https://docs.motion.so/api/exports)** — Automatically or manually render compositions from saved generations.
* **[Library](https://docs.motion.so/api/library)** — Upload and manage reusable media assets.
* **[Templates](https://docs.motion.so/api/templates)** — Save finalized generations as reusable layouts and visual styles.
* **[Brand kits](https://docs.motion.so/api/brand-kits)** — Bundle logos, fonts, colors, and brand guidelines.
* **[Connectors](https://docs.motion.so/api/connectors)** — Connect GitHub, Notion, Google Drive, Getty Images, S3, and social accounts.
* **[Automations](https://docs.motion.so/api/automations)** — Schedule or event-trigger recurring video workflows.
* **[Social posting](https://docs.motion.so/api/social-posting)** — Draft, approve, schedule, and publish finalized generations to social channels.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.