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

# Social Posting

> Connect social accounts, generate social copy, publish clips instantly, or schedule them for later.

### Introduction

The social posting APIs let you take an Opus clip that already exists and distribute it to connected channels without leaving your workflow.

### Workflow

Use the following workflow when you want to turn completed clips into social posts.

**1. Step 1: Get Social Accounts**

Call [Get Social Accounts](https://help.opus.pro/api-reference/endpoints/social-posting/get-social-accounts.md) first so you know which connected destinations are available and which `postAccountId` and `subAccountId` values to use later.

```bash theme={"dark"}
curl --request GET \
--url 'https://api.opus.pro/api/social-accounts?q=mine' \
--header 'Authorization: Bearer <API_KEY>'
```

**2. Step 2: Create a Project**

Submit your source video with [Create a New Project](https://help.opus.pro/api-reference/endpoints/create-project.md). This starts the normal Opus clipping workflow and returns a `projectId`.

**3. Step 3: Wait for Project Completion**

Wait for the project-completed callback from OpusClip, or otherwise confirm the project has finished processing before you try to fetch exportable clips.

**4. Step 4: Fetch Clips**

After the project is complete, call [Get Clips](https://help.opus.pro/api-reference/endpoints/get-clips.md) to retrieve the clips created for that `projectId`.

```bash theme={"dark"}
curl --request GET \
--url 'https://api.opus.pro/api/exportable-clips?q=findByProjectId&projectId=<PROJECT_ID>' \
--header 'Authorization: Bearer <API_KEY>' \
--header 'x-opus-org-id: <ORG_ID>'
```

> [!WARNING]
>
> The `id` field in the response is a composite `{projectId}.{clipId}` (e.g. `P0000000demo.CUexample1`). The social-posting endpoints in the following steps expect the **bare** `clipId` (e.g. `CUexample1`) — strip everything up to and including the dot before passing it to `POST /api/social-copy-jobs`, `POST /api/post-tasks`, or `POST /api/publish-schedules`. Use the `curationId` field if you prefer not to parse the `id`.

**5. Step 5: Generate Social Copy**

For each clip and each selected social destination, call [Create a Social Copy Generation Job](https://help.opus.pro/api-reference/endpoints/social-posting/create-social-copy-job.md), then poll [Get Social Copy Generation Result](https://help.opus.pro/api-reference/endpoints/social-posting/get-social-copy-job.md) until the job status is `COMPLETED`.

**6. Step 6: Publish or Schedule**

If the post should go out immediately, call [Publish a Post Instantly](https://help.opus.pro/api-reference/endpoints/social-posting/publish-post.md). If it should go out later, call [Schedule a Post](https://help.opus.pro/api-reference/endpoints/social-posting/schedule-post.md) with a future UTC timestamp.

**7. Step 7: Cancel a Scheduled Post**

If a scheduled post needs to be withdrawn before publish time, call [Cancel a Scheduled Post](https://help.opus.pro/api-reference/endpoints/social-posting/cancel-scheduled-post.md) with the `scheduleId` returned by the scheduling call.

### Supported Platforms

Connected accounts may report one of these platform values:

* `YOUTUBE`: YouTube channel
* `TIKTOK_BUSINESS`: TikTok account
* `FACEBOOK_PAGE`: Facebook account
* `INSTAGRAM_BUSINESS`: Instagram account
* `LINKEDIN`: LinkedIn account
* `TWITTER`: X (formerly Twitter) account

### Rate Limits

* `GET /api/social-accounts`: `10 req/s`
* `POST /api/social-copy-jobs`: `1 req/s`
* `GET /api/social-copy-jobs/{jobId}`: `10 req/s`
* `POST /api/post-tasks`: `1 req/s`
* `POST /api/publish-schedules`: `1 req/s`
* `DELETE /api/publish-schedules/{scheduleId}`: `1 req/s`

### Credit Consumption for X

When posting clips to `X`, each post consumes `3` credits. Posting one clip to several X accounts is charged once per account.

This applies to:

* instant publishing with `POST /api/post-tasks`
* scheduled publishing with `POST /api/publish-schedules`

### Endpoints

> [card] [Get Social Accounts](https://help.opus.pro/api-reference/endpoints/social-posting/get-social-accounts.md)
>
> List the connected social destinations available for posting.

> [card] [Create Social Copy Job](https://help.opus.pro/api-reference/endpoints/social-posting/create-social-copy-job.md)
>
> Generate post copy for a clip with optional tone guidance.

> [card] [Get Social Copy Result](https://help.opus.pro/api-reference/endpoints/social-posting/get-social-copy-job.md)
>
> Poll a social copy job until the generated content is ready.

> [card] [Publish Instantly](https://help.opus.pro/api-reference/endpoints/social-posting/publish-post.md)
>
> Publish a clip immediately to a connected social account.

> [card] [Schedule a Post](https://help.opus.pro/api-reference/endpoints/social-posting/schedule-post.md)
>
> Queue a clip for future publishing with a UTC timestamp.

> [card] [Cancel a Scheduled Post](https://help.opus.pro/api-reference/endpoints/social-posting/cancel-scheduled-post.md)
>
> Cancel an existing scheduled publish task.


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