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

# Social posting

> Draft, schedule, submit for approval, and publish finalized project generations to connected social accounts.

The **Social posting** API publishes finished videos and images straight to connected workspace social accounts—**YouTube, Instagram, TikTok, Facebook, X, Threads, LinkedIn, Reddit, Mastodon, Bluesky, and Snapchat**—with built-in review and approval controls.

Pass a saved **[Generation](https://docs.motion.so/api/projects#the-generation-object)** (`generation_id`, plus optional `composition_id` for multi-output generations and `thumbnail_generation_id` for custom thumbnails) directly to `POST /social/posts`; Motion automatically prepares and encodes the media for the destination platform (`media_status: preparing → ready`).

> [!NOTE]
>
> **Required scopes:** `motion:social:read` to list social accounts and read posts; `motion:social:write` to create uploads, draft, edit, submit, approve, or cancel posts. Creating or updating a post from a project generation (`generation_id` or `thumbnail_generation_id`) also requires `motion:projects:read`. Approving posts requires **Workspace Manager** permissions.

## Publishing workflow

1. **Pick a destination account:** Call `GET /social/accounts` for the `connection_id` (connect accounts via [Connectors](https://docs.motion.so/api/connectors)).
2. **Draft (`POST /social/posts`):** Supply `connection_id`, `generation_id` (or `POST /social/uploads` media), copy (`title` + `description` for YouTube/Reddit; `caption` for all other platforms), optional `scheduled_at`, and an `Idempotency-Key` header.
3. **Submit for review (`POST /social/posts/{post_id}/submit`):** Transitions from `draft` to `in_review`.
4. **Approve & publish (`POST /social/posts/{post_id}/approve`):** A Workspace Manager approves the post to schedule it (`scheduled`) or publish immediately (`processing` → `posted`, returning `post_url`).
5. **Edit or cancel:** Edit drafts with `PUT /social/posts/{post_id}` or cancel prior to publication with `POST /social/posts/{post_id}/cancel`.

## The Social Post object

```json theme={null}
{
  "post": {
    "id": "d4f2a8c1-9012-4345-8678-90abcdef1234",
    "connection_id": "6f1c0c1e-2b8a-4c55-9a51-0b6c1f0f7d10",
    "generation_id": "c72e9f10-4b3a-4d8e-a123-567890abcdef",
    "composition_id": "c72e9f10-4b3a-4d8e-a123-567890abcdef:launch-film",
    "thumbnail_generation_id": null,
    "status": "scheduled",
    "media_status": "ready",
    "caption": "",
    "title": "Spring release launch film",
    "description": "See what is new in our latest release.",
    "scheduled_at": "2026-12-01T17:00:00.000Z",
    "created_at": "2026-11-23T09:25:00.000Z",
    "approved_by": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
    "post_url": null,
    "error": null,
    "has_media": true,
    "has_thumbnail": false,
    "publication_locked": false
  }
}
```

**id** `string`

Unique UUID for the social post.

**connection\_id** `string`

UUID of the connected destination social account from `GET /social/accounts`.

**generation\_id** `string | null`

UUID of the immutable saved [Generation](https://docs.motion.so/api/projects#the-generation-object) supplying the video or image for this post.

**composition\_id** `string | null`

Specific composition ID selected when the generation contains multiple outputs.

**thumbnail\_generation\_id** `string | null`

Optional saved image generation UUID used as a video thumbnail on supported platforms.

**status** `enum`

Workflow status: `draft`, `in_review`, `scheduled`, `processing`, `posted`, `failed`, or `cancelled`.

**media\_status** `enum`

Preparation state of the attached media: `preparing`, `ready`, or `failed`.

**post\_url** `string | null`

Public URL of the published post once `status` reaches `posted`.

**publication\_locked** `boolean`

`true` once publication has started and the post can no longer be edited or cancelled.

## Endpoints

| Method & Path | Description |
| - | - |
| [`GET /social/accounts`](https://docs.motion.so/api/social-posting/list-accounts) | List connected social accounts and their `agent_enabled` permissions. |
| [`POST /social/uploads`](https://docs.motion.so/api/social-posting/create-upload) | Request a direct upload URL for media outside a project generation. |
| [`GET /social/posts`](https://docs.motion.so/api/social-posting/list) | List social posts in the workspace. |
| [`POST /social/posts`](https://docs.motion.so/api/social-posting/create) | Draft or schedule a post from a saved `generation_id` or social upload. |
| [`GET /social/posts/{post_id}`](https://docs.motion.so/api/social-posting/retrieve) | Retrieve a post's approval `status`, `media_status`, `post_url`, or `error`. |
| [`PUT /social/posts/{post_id}`](https://docs.motion.so/api/social-posting/update) | Edit a draft post's copy, media, or schedule before publication locks. |
| [`POST /social/posts/{post_id}/submit`](https://docs.motion.so/api/social-posting/submit) | Submit a draft post for Workspace Manager review (`in_review`). |
| [`POST /social/posts/{post_id}/approve`](https://docs.motion.so/api/social-posting/approve) | Approve a submitted post to schedule or publish it (Workspace Manager). |
| [`POST /social/posts/{post_id}/cancel`](https://docs.motion.so/api/social-posting/cancel) | Cancel a draft, pending, or scheduled post before publication starts. |


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