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

# Posting

> Create, schedule and publish posts through the API: destinations, per-network settings, scheduling modes, thread replies and content limits.

This guide walks through a post from start to finish: find the channel, check what its network needs, create the post, then schedule it, queue it or publish it now. Every example runs against `https://app.trypost.it/api` with a [workspace API key](https://docs.trypost.it/api-reference/introduction.md#authentication).

**1. List the social accounts**

Find the channel to post to and read its limits.

**2. Check the content types**

Pick a format and fill the settings the network requires.

**3. Create the post**

One post per channel, or one call for several channels.

**4. Schedule, queue or publish**

At a set time, in the channel's queue, or right now.

## 1. List the social accounts

[List social accounts](https://docs.trypost.it/api-reference/social-accounts/list-social-accounts.md) returns the channels connected to the workspace. Channels are connected and removed in the app; the API only reads them.

```bash theme={null}
curl https://app.trypost.it/api/social-accounts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
```

```json theme={null}
{
  "data": [
    {
      "id": "9c8b7a65-4d3e-4f2a-8b1c-0d9e8f7a6b54",
      "platform": "x",
      "display_name": "TryPost",
      "username": "trypostit",
      "status": "connected",
      "has_posting_schedule": true,
      "timezone": "America/Sao_Paulo",
      "posting_goal": 5,
      "max_content_length": 280,
      "long_posts": false,
      "verified_badge": null
    }
  ],
  "links": { "...": "..." },
  "meta": { "...": "..." }
}
```

The fields you need for posting:

| Field | Use |
| - | - |
| `id` | The post's `social_account_id` |
| `platform` | The network, which decides the content types and settings below |
| `status` | Only `connected` accounts publish. `disconnected` and `token_expired` accounts need to be reconnected in the app |
| `max_content_length` | The text limit of this account. X accounts with long posts (`long_posts: true`) get 25000 instead of 280 |
| `has_posting_schedule` | Whether the channel has posting times, which the queue needs |
| `timezone` | The channel's time zone. Queue slots and recurrences follow it |

## 2. Check the content types

[List content types](https://docs.trypost.it/api-reference/platform/list-content-types.md) describes every network: its content types, text and hashtag limits, the settings it requires and the media each format takes.

```bash theme={null}
curl https://app.trypost.it/api/content-types \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
```

Read these fields before you build a post:

| Field | Meaning |
| - | - |
| `default_content_type` | The format used when you omit `content_type` |
| `content_types[].value` | The value to send as `content_type`, for example `instagram_reel` |
| `required_meta` | Settings that must be in `meta` before the post can be scheduled or published |
| `max_content_length` | The network's text limit. The account's own limit (`max_content_length` on the social account) is what counts |
| `max_hashtags` | Hashtag cap, `5` on Instagram, `null` elsewhere |
| `content_types[].captionless` | `true` when the format sends no text (Instagram and Facebook Stories) |
| `content_types[].supports_thread_replies` | `true` when the format takes thread replies (X, Bluesky, Mastodon, and LinkedIn for its comment), with `max_thread_replies` (24, or 1 on LinkedIn) |
| `content_types[].requires_media`, `min_media_count`, `max_media_count` | Media the format needs |

When you omit `content_type`, it is picked like the app does: on Pinterest a video makes `pinterest_video_pin` and several images `pinterest_carousel`, on TikTok images only make `tiktok_photo`, and every other network takes its default format.

### Required settings

A post carries its network's settings in `meta`. A draft can be saved without them; scheduling or publishing needs them:

| Network | Required in `meta` | Where to get the value |
| - | - | - |
| TikTok | `privacy_level`: `PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR` or `SELF_ONLY` | [Get TikTok creator info](https://docs.trypost.it/api-reference/social-accounts/get-tiktok-creator-info.md) lists the levels the account allows |
| Pinterest | `board_id` | [List Pinterest boards](https://docs.trypost.it/api-reference/social-accounts/list-pinterest-boards.md) or [Create Pinterest board](https://docs.trypost.it/api-reference/social-accounts/create-pinterest-board.md) |
| Discord | `channel_id` | [List Discord channels](https://docs.trypost.it/api-reference/social-accounts/list-discord-channels.md) |
| YouTube | A title: `title`, or the first line of the text | Up to 100 characters, without `<` or `>` |
| Instagram (`instagram_reel`) | With music, `audio.id` and an `instagram-facebook` account. A trial reel (`trial_graduation`) cannot have `collaborators` | [Search Instagram audio](https://docs.trypost.it/api-reference/social-accounts/search-instagram-audio.md) |
| Google Business | `event` with `title`, `start_date` and `end_date` when `topic_type` is `EVENT` or `OFFER`; a `call_to_action` needs a `url` unless its `action_type` is `NONE` or `CALL` | — |

Every other setting is optional: link previews, AI labels, Instagram collaborators and trial reels, YouTube privacy and category, Mastodon content warnings, Threads topics, and more. The full list per network is under `meta` on [Create post](https://docs.trypost.it/api-reference/posts/create-post.md). Keys TryPost does not know are dropped; settings of another network are accepted but not used.

## 3. Create the post

[Create post](https://docs.trypost.it/api-reference/posts/create-post.md) creates one post on **one** channel: send its `social_account_id`, and its `content_type` and `meta` next to it at the top level. Without `status`, the post is saved as a draft. A `platforms` field is refused with `422`.

```bash theme={null}
curl -X POST https://app.trypost.it/api/posts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Our autumn collection is live.",
    "media": [
      { "url": "https://example.com/autumn.jpg", "alt": "Three jackets on a rail" }
    ],
    "social_account_id": "2b7e4c19-8f3a-4d6b-9c1e-5a0f7d2b8e63",
    "content_type": "pinterest_pin",
    "meta": {
      "board_id": "1084231546543210987",
      "link": "https://example.com/autumn"
    }
  }'
```

The response is the post (`201`), with `status: "draft"`, `publish_status: "pending"` and its channel at the top level: `platform`, `content_type`, `meta` and `social_account`. Media can come from a URL, an earlier upload or another post; see [Media uploads](https://docs.trypost.it/api-reference/guides/media-uploads.md).

### Several channels at once

To send the same post to several channels, use [Create posts in batch](https://docs.trypost.it/api-reference/posts/create-posts-in-batch.md). It creates one independent post per destination, all sharing a `post_group_id`, the same as selecting several channels in the app. Each destination can override the shared `content`, `media`, `content_type` and `meta`. `status` is required here.

```bash theme={null}
curl -X POST https://app.trypost.it/api/posts/batch \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "scheduled",
    "scheduled_at": "2026-10-12T14:00:00Z",
    "content": "Our autumn collection is live.",
    "media": [{ "url": "https://example.com/autumn.jpg" }],
    "destinations": [
      { "social_account_id": "9c8b7a65-4d3e-4f2a-8b1c-0d9e8f7a6b54" },
      {
        "social_account_id": "5d1f8a27-3c6e-4b9d-a2f0-7e4c1b8d6a35",
        "content_type": "tiktok_photo",
        "meta": { "privacy_level": "PUBLIC_TO_EVERYONE" }
      }
    ]
  }'
```

The response is `{ "posts": [...] }`, one post per destination. A validation error stops the whole call; errors name the destination, for example `destinations.1.meta.privacy_level`.

## 4. Schedule, queue or publish

`status` decides what happens to a post. Send it on create, or later with [Update post](https://docs.trypost.it/api-reference/posts/update-post.md):

| `status` | Result |
| - | - |
| `draft` | Saved and editable. On an update, unschedules a scheduled post (its last `scheduled_at` stays on the draft) |
| `scheduled` | Published at `scheduled_at`, or in the channel's queue with `queue` / `queue_slot` |
| `publishing` | Published now |

### At a set time

Send `status: scheduled` with `scheduled_at`, an instant in the future and before `2038-01-19`. Give it in UTC (`Z`) or with an offset.

```json theme={null}
{
  "status": "scheduled",
  "scheduled_at": "2026-10-12T14:00:00Z"
}
```

### In the channel's queue

When the channel has posting times (`has_posting_schedule: true`), send `queue` instead of `scheduled_at`:

* `next` takes the channel's first free slot.
* `top` takes the first slot not held by a post with a set time, and moves the queued posts behind it to the next free slot.

```json theme={null}
{
  "status": "scheduled",
  "queue": "next"
}
```

To take one exact slot, send `queue_slot` with an instant from [List free queue slots](https://docs.trypost.it/api-reference/channels/list-free-queue-slots.md). It works on [Create post](https://docs.trypost.it/api-reference/posts/create-post.md) only, and fails with `422` when the slot has been taken in the meantime. `queue` cannot be combined with `scheduled_at` or `queue_slot`. When you send `queue_slot`, it sets the time; do not send `scheduled_at` with it.

A queued post keeps its slot. To change the order, use [Reorder queue](https://docs.trypost.it/api-reference/channels/reorder-queue.md) or [Move post to queue slot](https://docs.trypost.it/api-reference/channels/move-post-to-queue-slot.md); to change the times, [Update posting schedule](https://docs.trypost.it/api-reference/channels/update-posting-schedule.md) (it replaces the whole schedule: send the `timezone` (required) and the current `posting_goal` and `posting_schedule` to keep them, since omitted values are cleared). To repeat a scheduled post, see [Set post recurrence](https://docs.trypost.it/api-reference/recurrence/set-post-recurrence.md).

> [!NOTE]
>
> Another change to the same channel queue can be running when you call. The API then answers `409`; retry the request.

### Now

Send `status: publishing`, on create or on an existing draft or scheduled post:

```bash theme={null}
curl -X PUT https://app.trypost.it/api/posts/9d3c1f2a-6b4e-4c8a-9f1e-2a7b5c8d0e41 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{ "status": "publishing" }'
```

The response comes back with `status: "publishing"` while the network receives the post. It then becomes `published` or `failed`. The network's side is in `publish_status` (`pending`, `publishing`, `retrying`, `pending_review`, `published`, `failed` or `rejected`); `platform_url` links to the live post and `error_message` says what went wrong. Poll [Get post](https://docs.trypost.it/api-reference/posts/get-post.md), or subscribe a [webhook](https://docs.trypost.it/api-reference/webhooks/create-webhook.md) to `post.published` and `post.failed`.

Posts created through the API publish directly: API keys belong to workspace admins, so no approval step applies (see [Approvals](https://docs.trypost.it/api-reference/introduction.md#approvals)).

## Thread replies

X, Bluesky and Mastodon posts can carry up to **24** replies, published one under the other below the first post. Send them in `meta.thread_replies`, each as `{ "text", "media" }`:

```json theme={null}
{
  "content": "1/ We rebuilt scheduling from scratch. Here is what changed.",
  "status": "scheduled",
  "queue": "next",
  "social_account_id": "9c8b7a65-4d3e-4f2a-8b1c-0d9e8f7a6b54",
  "content_type": "x_post",
  "meta": {
    "thread_replies": [
      { "text": "2/ Every channel now has its own posting times." },
      {
        "text": "3/ Full changelog below.",
        "media": [{ "url": "https://example.com/changelog.png" }]
      }
    ]
  }
}
```

* A reply needs text or media. A poll reply needs text and carries no media.
* Each reply's text must fit the account limit: 280 on X (25000 with long posts), 300 on Bluesky, 500 on Mastodon. On Mastodon the content warning (`spoiler_text`) is repeated on every reply and counts toward it.
* A reply's media belongs to that reply only: up to 4 items, given by `url`, `id` or `upload_token`, following that network's media rules.
* On [Update post](https://docs.trypost.it/api-reference/posts/update-post.md), `thread_replies` replaces the whole list.
* On X, a reply can be a poll instead: `{ "text", "poll" }`, with no media. See [X polls](#x-polls).

If publishing stops halfway, replies already live are kept, and a retry continues from the next one instead of posting them again.

### LinkedIn comment

A LinkedIn post (`linkedin_post` or `linkedin_page_post`) takes **one** reply in `meta.thread_replies`, published as a comment from the same profile or page right after the post:

```json theme={null}
{
  "content": "We just shipped scheduled threads.",
  "status": "scheduled",
  "queue": "next",
  "social_account_id": "9c8b7a65-4d3e-4f2a-8b1c-0d9e8f7a6b54",
  "content_type": "linkedin_post",
  "meta": {
    "thread_replies": [
      { "text": "Read more: https://trypost.it/blog/threads" }
    ]
  }
}
```

* The comment has no `content_type` of its own: it is a reply of a `linkedin_post` or `linkedin_page_post`. `linkedin_comment` is not accepted as a post's `content_type`.
* The comment is text only, up to 3000 characters. HTML is handled as in the post (bold and underline converted, other tags stripped). A link in it gets no preview card.
* A draft accepts up to 24 replies, with media, like any thread. Scheduling or publishing refuses a second reply ("Only one comment can follow this post."), media on the comment, an empty comment ("Your comment is empty.") and one over 3000 characters.
* If LinkedIn is not ready for the comment right after the post, `publish_status` is `retrying` for up to about five minutes. Those retries only add the comment, never the post again. If LinkedIn refuses the comment, or is still not ready after that, the post is `failed` with "Published 1 of 2 posts in the thread: …", and the post stays live.

## X polls

An X poll is its own content type, `x_poll`. The post `content` is the question and `meta.poll` holds the choices and how long voting stays open:

```json theme={null}
{
  "content": "Which feature should we ship next?",
  "status": "scheduled",
  "queue": "next",
  "social_account_id": "9c8b7a65-4d3e-4f2a-8b1c-0d9e8f7a6b54",
  "content_type": "x_poll",
  "meta": {
    "poll": {
      "options": ["Calendar sync", "Bulk upload", "Dark mode"],
      "duration_minutes": 1440
    }
  }
}
```

* `options`: 2 to 4 choices of 1 to 25 characters, no two the same (compared without case). Blank choices are dropped. X counts an emoji outside the basic plane, such as 🐧, as two characters.
* Repeated choices, more than 4 choices, a choice over 25 characters, a `duration_minutes` outside 5–10080 and media are refused on every save, drafts included, on the post's poll and on reply polls.
* `duration_minutes`: from 5 to 10080 (7 days).
* The question is at most **280 characters**, even on an account with long posts.
* A poll carries no media. Media on a poll, or an attach to one through [Upload media](https://docs.trypost.it/api-reference/media-and-uploads/upload-media.md), [Attach media from upload](https://docs.trypost.it/api-reference/media-and-uploads/attach-media-from-upload.md) or [Attach media from URL](https://docs.trypost.it/api-reference/media-and-uploads/attach-media-from-url.md), is refused with "This post type can't include media. Change the post type to add media."
* A draft can lack the question, the choices or the length. Scheduling or publishing needs a question, at least 2 choices and `duration_minutes`; there is no default length through the API.
* On [Update post](https://docs.trypost.it/api-reference/posts/update-post.md), `meta.poll` is merged key by key: send only `duration_minutes` and the stored choices are kept. `options` replaces the whole list. `meta.poll` is kept only on `x_poll`: change `content_type` back to `x_post`, or send a poll with any other type, and it is dropped.

Any reply of an X thread can be a poll too, under the same rules, with the reply `text` as its question:

```json theme={null}
{
  "content": "1/ We rebuilt scheduling from scratch.",
  "content_type": "x_post",
  "meta": {
    "thread_replies": [
      { "text": "2/ Every channel now has its own posting times." },
      {
        "text": "3/ Which part should we cover next?",
        "poll": { "options": ["Queues", "Approvals"], "duration_minutes": 4320 }
      }
    ]
  }
}
```

On other networks a reply's `poll` is dropped. A poll can't be a [repurpose](https://docs.trypost.it/api-reference/repurposes/create-repurpose.md) destination.

[Get post preview](https://docs.trypost.it/api-reference/posts/get-post-preview.md) returns the poll of the post and of each reply. After publishing, [Get post metrics](https://docs.trypost.it/api-reference/posts/get-post-metrics.md) returns the votes in `metrics.publication.poll`, and each reply poll in `metrics.publication.thread_polls` (`reply` is the reply's position, from 0). Votes are read with the post's other X metrics, about an hour after publishing and then 2, 3, 7, 14 and 28 days later. `voting_status` is `closed` only once a read after the poll ended has seen it closed.

## Content limits

Network limits are checked when a post is scheduled or published; drafts can go over them. The 25000-character ceiling applies to every post, drafts included.

* **Text per account.** The text must fit the account's `max_content_length`, measured on the text the network receives. An X account with long posts takes 25000 characters; other X accounts take 280. An X poll's question takes 280 on every account. An emoji counts as one character.
* **Instagram hashtags.** Instagram takes at most **5** hashtags per post.
* **Stories are captionless.** `instagram_story` and `facebook_story` send no text, so their text is neither published nor measured, and the hashtag cap does not apply.
* **Media.** Each content type has its own media count, size, duration and aspect ratio rules, listed by [List content types](https://docs.trypost.it/api-reference/platform/list-content-types.md) and on each network's page, for example [Instagram](https://docs.trypost.it/platforms/instagram.md), [X](https://docs.trypost.it/platforms/x-twitter.md) or [TikTok](https://docs.trypost.it/platforms/tiktok.md).

> [!TIP]
>
> [Get post preview](https://docs.trypost.it/api-reference/posts/get-post-preview.md) returns the text the post's channel will receive (`sanitized_content`), its length and the account's limit. On X, TryPost Cloud writes links as `example(.)com` to keep the post out of X's link pricing (see [Links in posts](https://docs.trypost.it/platforms/x-twitter.md#links-in-posts)), and the preview shows that text.

## Editing, deleting and errors

* [Update post](https://docs.trypost.it/api-reference/posts/update-post.md) changes only the fields you send. The channel is fixed; to post elsewhere, create a new post. Send the settings as top-level `content_type` and `meta` (`platforms` is refused). `meta` is merged with the stored settings; send `null` for a key to clear it. Boolean settings cannot be cleared: send `true` or `false`.
* Posts that are `publishing`, `published` or `failed` cannot be edited or deleted: the API answers `422`.
* [Delete post](https://docs.trypost.it/api-reference/posts/delete-post.md) removes the post from TryPost only. It never deletes anything already published on a network.
* Validation errors are keyed by field: `meta.board_id`, `content_type`, `content`, `media` on [Create post](https://docs.trypost.it/api-reference/posts/create-post.md) and [Update post](https://docs.trypost.it/api-reference/posts/update-post.md); `destinations.N.…` on [Create posts in batch](https://docs.trypost.it/api-reference/posts/create-posts-in-batch.md).


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