> ## 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 videos from Motion projects to connected social accounts.

Publish finished project generations straight to YouTube, Instagram, TikTok, Facebook, X, Threads, LinkedIn, Reddit, Mastodon, Bluesky, and Snapchat through the Social Posting API (`motion:social:read` and `motion:social:write`).

## 1. List connected social accounts

```bash theme={null}
curl https://api.motion.so/api/motion/social/accounts \
  -H "Authorization: Bearer $MOTION_API_KEY"
```

Pick the `id` of the destination account (`connection_id`) you want to publish to. To connect a new social account, see [Connectors](https://docs.motion.so/guides/connector-config.md).

## 2. Draft a post from a generation

Call `POST /social/posts` with `connection_id`, a saved `generation_id` from a project, and your post copy. Motion exports the video automatically; include a UUID `Idempotency-Key` header for safe retries:

```bash theme={null}
curl -X POST https://api.motion.so/api/motion/social/posts \
  -H "Authorization: Bearer $MOTION_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "connection_id": "SOCIAL_CONNECTION_UUID",
    "generation_id": "GENERATION_UUID",
    "title": "Spring release launch film",
    "description": "See what is new in our latest release.",
    "scheduled_at": "2026-12-01T17:00:00Z"
  }'
```

* **YouTube & Reddit:** Supply `title` and `description`.
* **All other platforms:** Supply `caption`.
* **Multiple compositions:** If a generation contains multiple videos or images, pass `composition_id` to pick which one to post.
* **Scheduling:** Include an ISO 8601 `scheduled_at` timestamp, or omit it to publish as soon as the post is approved.
* **Thumbnails:** On video platforms that support custom thumbnails, pass a saved image generation in `thumbnail_generation_id`.

## 3. Submit, approve, or cancel

Workspace social accounts follow a review workflow:

1. **Submit for review:** `POST /social/posts/{post_id}/submit`
2. **Approve & publish** *(Workspace Manager)*: `POST /social/posts/{post_id}/approve`
3. **Update or cancel:** Edit drafts with `PUT /social/posts/{post_id}`, or cancel before publication with `POST /social/posts/{post_id}/cancel`.

Poll `GET /social/posts/{post_id}` (or list posts with `GET /social/posts`) to track post status (`draft`, `in_review`, `scheduled`, `processing`, `posted`, `failed`, or `cancelled`). See the [Social posting API reference](https://docs.motion.so/api/social-posting) for all fields.


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