> ## 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.

# Projects

> Create, steer, poll, and inspect stateful video and image projects, along with the Project and Generation objects.

A **Project** is a stateful creative workspace in Motion (also viewable in the browser via `chat_url`) where you prompt Motion to create and revise videos and images across one or more turns.

Every project is built around four linked concepts:

* **Project (`id`)** — Persistent workspace holding settings (`effort`, `fast_mode`, `connectors`, `export_formats`), transcript messages, saved generations, and export jobs.
* **Turn (`turn_id`)** — One execution cycle started by `POST /projects` or `POST /projects/{id}/messages` (including any mid-run steering attached while that turn is running).
* **Generation (`generation_id`)** — An **immutable saved snapshot of the project's authored compositions** committed when a turn finalizes—no MP4 encode required. Ordered newest-first (`generations[0]` is the latest) and used as the stable input to [Exports](https://docs.motion.so/api/exports), [Templates](https://docs.motion.so/api/templates), and [Social posting](https://docs.motion.so/api/social-posting).
* **Composition (`compositions[].id`)** — One individual video or image output inside a generation (for example `c72e9f10-4b3a-4d8e-a123-567890abcdef:launch-film`).

> [!NOTE]
>
> **Required scopes:** `motion:projects:read` to list or read projects, turns, and messages; `motion:projects:write` to create projects, send messages, or stop active work. (`motion:sessions:read` and `motion:sessions:write` remain accepted as aliases.)

## Typical lifecycle

1. **Create:** Call `POST /projects` with `prompt` and optional `attachments`, `template_ids`, `brand_kit_ids`, `connectors`, `effort`, `fast_mode`, and `export_formats`. Save `project_id` and `turn_id`.
2. **Poll (or steer):** Poll `GET /projects/{id}` every 5–10 seconds until `status` is terminal (`completed`, `failed`, `cancelled`, `awaiting_user_input`, or `awaiting_credits`). While `running`, send steering via `POST /projects/{id}/messages` or cancel via `POST /projects/{id}/stop`.
3. **Use outputs:** Once `completed`, read `generations[0]` for the saved `generation_id`, `compositions[]`, and attribution `sources[]`, and poll `exports[]` (or trigger on-demand renders via [Exports](https://docs.motion.so/api/exports)).
4. **Iterate:** Send follow-up edits with `POST /projects/{id}/messages`. Each finalized turn commits a new immutable generation while keeping earlier generations available for re-export or template creation.

## The Project object

```json theme={null}
{
  "id": "8a4f2c1e-7b62-4e11-9d2a-1c3b5e7f9012",
  "title": "Spring product launch",
  "status": "completed",
  "progress": {
    "stage": "completed",
    "percent": 100,
    "message": "Generation finalized"
  },
  "latest_turn_id": "3f91d8e0-2a4c-4b7f-8e1a-9d0c1b2a3e4f",
  "error": null,
  "created_at": "2026-11-23T09:15:00.000Z",
  "updated_at": "2026-11-23T09:17:42.000Z",
  "chat_url": "https://motion.so/agent?chat=8a4f2c1e-7b62-4e11-9d2a-1c3b5e7f9012",
  "effort": "standard",
  "fast_mode": false,
  "connectors": null,
  "export_formats": ["mp4", "png"],
  "generations": [
    {
      "id": "c72e9f10-4b3a-4d8e-a123-567890abcdef",
      "turn_id": "3f91d8e0-2a4c-4b7f-8e1a-9d0c1b2a3e4f",
      "created_at": "2026-11-23T09:17:40.000Z",
      "status": "ready",
      "compositions": [
        {
          "id": "c72e9f10-4b3a-4d8e-a123-567890abcdef:launch-film",
          "kind": "video",
          "width": 1920,
          "height": 1080,
          "duration_seconds": 15
        }
      ],
      "sources": []
    }
  ],
  "exports": []
}
```

**id** `string`

Unique UUID for the project. Pass as `{id}` on all project, turn, message, stop, and export endpoints.

**title** `string | null`

Generated or user-set project title, or `null` before titled.

**status** `enum`

Lifecycle state of the latest turn: `queued`, `running`, `completed`, `failed`, `cancelled`, `awaiting_user_input`, or `awaiting_credits`. `completed` means the agent finished authoring and committed a generation; linked exports may still be rendering asynchronously.

**progress** `object | null`

Live customer-facing progress for the current turn: `stage` (`queued`, `starting`, `planning`, `gathering_media`, `authoring`, `reviewing`, `finalizing`, `rendering`, `completed`), monotonic `percent` (`0`–`100`), and a sanitized one-line `message`.

**latest\_turn\_id** `string | null`

UUID of the most recent turn on this project. Matches `turn_id` across `messages[]`, `generations[]`, `exports[]`, and `GET /projects/{id}/turns`.

**error** `string | null`

Actionable failure explanation when `status` is `failed`; `null` otherwise.

**chat\_url** `string`

Motion web app URL to inspect, preview, or continue this project in the browser.

**effort** `enum`

`standard` (default, faster turnaround) or `extended` (deeper planning for complex briefs). Fixed at project creation.

**fast\_mode** `boolean`

Whether Fast mode is enabled (Pro and above). Set at creation or toggled between turns; changing mid-run returns `409`.

**connectors** `object[] | null`

Active connection scoping for the project. `null` uses workspace defaults; `[]` disables all connectors.

**export\_formats** `string[]`

Automatic export formats dispatched by infrastructure as soon as an API turn finalizes a generation. Inherited by later API turns unless overridden; `[]` disables automatic exports.

**generations** `object[]`

Immutable saved project versions ordered **newest-first** (`generations[0]` is the latest). See [The Generation object](#the-generation-object).

**exports** `object[]`

Export jobs created automatically or manually for this project. See [Exports](https://docs.motion.so/api/exports#the-export-object).

**messages** `object[]`

Conversation transcript ordered **oldest-first** (`sequence_num` ascending). Check `messages_has_more` and paginate with `after_sequence`, or filter to one turn with `GET /projects/{id}/messages?turn_id=...`.

## The Generation object

Think of a **Generation** like a Git commit for your video project: each finalized turn saves one immutable snapshot of the project's authored compositions—without waiting for an MP4 encode—so you can pass its `generation_id` (or `compositions[].id`) directly to [Exports](https://docs.motion.so/api/exports), [Templates](https://docs.motion.so/api/templates), or [Social posting](https://docs.motion.so/api/social-posting).

```json theme={null}
{
  "id": "c72e9f10-4b3a-4d8e-a123-567890abcdef",
  "turn_id": "3f91d8e0-2a4c-4b7f-8e1a-9d0c1b2a3e4f",
  "created_at": "2026-11-23T09:17:40.000Z",
  "status": "ready",
  "compositions": [
    {
      "id": "c72e9f10-4b3a-4d8e-a123-567890abcdef:launch-film",
      "kind": "video",
      "width": 1920,
      "height": 1080,
      "duration_seconds": 15
    },
    {
      "id": "c72e9f10-4b3a-4d8e-a123-567890abcdef:launch-thumb",
      "kind": "image",
      "width": 1920,
      "height": 1080,
      "duration_seconds": null
    }
  ],
  "sources": [
    {
      "id": "src_01",
      "composition_ids": ["c72e9f10-4b3a-4d8e-a123-567890abcdef:launch-film"],
      "source_kind": "licensed_library",
      "provider": "getty",
      "provider_asset_id": "1482901123",
      "source_url": "https://www.gettyimages.com/detail/1482901123",
      "source_domain": "www.gettyimages.com",
      "media_type": "video",
      "title": "City skyline sunrise aerial",
      "credit": "Getty Images",
      "rights_status": "licensed"
    }
  ]
}
```

**id** `string`

Immutable generation UUID. Pass as `generation_id` to `POST /templates` or `POST /social/posts`.

**turn\_id** `string | null`

UUID of the project turn that committed this generation. Matches `messages[].turn_id`, `exports[].turn_id`, and `GET /projects/{id}/turns`.

**created\_at** `string`

ISO-8601 timestamp when this generation snapshot was saved.

**status** `enum`

Always `"ready"` once persisted on a project—indicating the editable source snapshot is ready for exports, templates, or social posting.

**compositions** `object[]`

Editable video and image outputs included in this generation. Each entry contains `id` (pass to `POST /projects/{id}/exports` in `composition_ids`), `kind` (`video` or `image`), `width`, `height`, and `duration_seconds` (`null` for images).

**sources** `object[]`

Immutable media attribution records referenced by compositions in this generation, including `composition_ids`, `source_kind` (`licensed_library`, `article`, `web_search`, `web`, `connector`, `upload`, `project`, `generated`, `unknown`), `provider`, `provider_asset_id`, `source_url`, `source_domain`, `media_type`, `title`, `credit`, and `rights_status`.

## Endpoints

| Method & Path | Description |
| - | - |
| [`POST /projects`](https://docs.motion.so/api/projects/create) | Create a project and start its first turn. |
| [`GET /projects`](https://docs.motion.so/api/projects/list) | List projects in the workspace with cursor pagination. |
| [`GET /projects/{id}`](https://docs.motion.so/api/projects/retrieve) | Retrieve project status, live progress, generations, messages, and exports. |
| [`GET /projects/{id}/turns`](https://docs.motion.so/api/projects/list-turns) | List turns newest-first with status, `generation_id`, `export_ids`, and date filters. |
| [`GET /projects/{id}/messages`](https://docs.motion.so/api/projects/list-messages) | Read turn-scoped (`turn_id`) or incremental (`after_sequence`) messages. |
| [`POST /projects/{id}/messages`](https://docs.motion.so/api/projects/send-message) | Send a follow-up edit or steer an active API turn. |
| [`POST /projects/{id}/stop`](https://docs.motion.so/api/projects/stop) | Stop the active project turn without deleting saved generations. |


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