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

> ## Agent Instructions
> Postploy's MCP server for posting is https://api.postploy.com/mcp and signs in with OAuth. The REST API base URL is https://api.postploy.com/public/v1 and takes an API key as a Bearer token. The API calls channels accounts.

# Platform options

> What each platform needs, and the extra options you can set in platformFields.

Each platform has its own rules and its own extra options. Put a post's options in `platformFields`, under its platform's name:

```json theme={null}
{
  "socialAccountId": "5b0f4c3e-8a2d-4c51-9e7a-1d2f3a4b5c6d",
  "text": "Our spring blend is here.",
  "scheduledAt": "2030-01-15T09:00:00Z",
  "platformFields": {
    "linkedin": { "visibility": "PUBLIC", "firstComment": "Order online: https://example.com" }
  }
}
```

Only the options for the post's own platform are used. For every exact limit, such as file sizes and video lengths, call [Get platform rules](https://docs.postploy.com/api-reference/channels/get-platform-rules.md).

## At a glance

| Platform | Needs | Text up to | Media |
| - | - | - | - |
| LinkedIn | Text or media | 3,000 characters | Up to 20 images, or 1 video |
| X | Text or media | 280 characters, or 25,000 for accounts that allow long posts | Up to 4 images, or 1 GIF, or 1 video |
| Instagram | An image or video | 2,200 characters, 30 hashtags, 20 mentions | Up to 20 images and videos |
| Facebook | Text or media | 63,206 characters | Up to 10 images, or 1 video |
| TikTok | A video or photos, plus [TikTok options](#tiktok) | 2,200 characters with a video, 4,000 with photos | Up to 35 photos, or 1 video |
| YouTube | A video and a `title` | 5,000 bytes | 1 video |

## LinkedIn

| Option | Values | What it does |
| - | - | - |
| `visibility` | `PUBLIC`, `CONNECTIONS` | Who can see the post. |
| `firstComment` | Text | Posted as the first comment. |
| `link` | A URL | Added to the end of the post. |

## X

The platform name is `twitter`. X counts length its own way: every link counts as 23 characters.

| Option | Values | What it does |
| - | - | - |
| `replyRule` | `everyone` (default), `follow`, `mention` | Who can reply: everyone, people you follow, or people you mention. |
| `retweetConfig` | `{ "value": 2, "frequency": "hour" }` | Reposts the post this long after it goes out. `frequency` is `hour` or `day`. |

To post a thread, use the post's `thread` field, not an option. See [X threads](https://docs.postploy.com/api/posts.md#x-threads).

```json theme={null}
"platformFields": {
  "twitter": { "replyRule": "follow", "retweetConfig": { "value": 1, "frequency": "day" } }
}
```

## Instagram

| Option | Values | What it does |
| - | - | - |
| `postType` | `post` (default), `reel`, `story` | What kind of post to make. A story takes one image or video. |
| `reelGrid` | `reel_only` (default), `reel_and_main` | `reel_and_main` also shows a reel in your main feed. |
| `firstComment` | Text | Posted as the first comment. Not on stories. |
| `collaborators` | Up to 3 usernames | Instagram accounts to invite as collaborators. |

```json theme={null}
"platformFields": {
  "instagram": { "postType": "reel", "reelGrid": "reel_and_main", "firstComment": "#coffee #spring" }
}
```

## Facebook

Facebook posts have no extra options.

## TikTok

TikTok posts need all five of these options. There's no default for who can see a post. `GET /capabilities` and the `get_platform_rules` tool give TikTok's rules as data: which options apply to photos, the label TikTok shows on a disclosed post, and the terms to show before posting.

| Option | Values | What it does |
| - | - | - |
| `visibility` | `public`, `friends`, `followers`, `private` | Who can see the post. Some accounts don't offer every choice. |
| `allowUsersTo` | Any of `comment`, `duet`, `stitch` | What viewers may do. An empty list turns them all off. |
| `discloseContent` | `true`, `false` | Whether the post promotes a brand, product or service. |
| `promotion` | Any of `brand`, `branded_content` | Whose promotion it is, when `discloseContent` is true; it's ignored otherwise. `brand` is your own, and `branded_content` is a paid partnership. Pick at least one. Branded content can't be `private`. |
| `allowMusic` | `true`, `false` | Lets TikTok add music to photo posts. |

```json theme={null}
"platformFields": {
  "tiktok": {
    "visibility": "public",
    "allowUsersTo": ["comment", "duet", "stitch"],
    "discloseContent": false,
    "promotion": [],
    "allowMusic": true
  }
}
```

## YouTube

YouTube posts need one video and a `title` of up to 100 characters. Titles and descriptions can't contain `<` or `>`.

| Option | Values | What it does |
| - | - | - |
| `visibility` | `public`, `unlisted`, `private` | Who can watch the video. |
| `forKids` | `true`, `false` | Whether the video is made for kids. |

When you set `youtube`, give both options.

> [!WARNING]
>
> If you leave out the YouTube options, the video is uploaded as private.

```json theme={null}
{
  "socialAccountId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
  "title": "How we roast our spring blend",
  "text": "Two minutes less in the roaster made all the difference.",
  "mediaIds": ["8b9c0d1e-2f3a-4b4c-8d5e-6f7a8b9c0d1e"],
  "scheduledAt": "2030-01-15T09:00:00Z",
  "platformFields": {
    "youtube": { "visibility": "public", "forKids": false }
  }
}
```


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