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

# Posting and scheduling

> A post is a caption, library items and the accounts it goes to, sent now or scheduled, and checked against each platform's rules.

`manage_social_posts` makes, schedules, reads and changes posts on the connected social accounts. Calls are free.

## A post

`create` takes:

* `caption`, the text of the post.
* `media`, library item ids or refs in the order they are shown: pictures or videos stored in the cloud, or one PDF as a LinkedIn document.
* `targets`, the accounts. Each has an `account_id`, optionally its own `caption`, and its `options`.
* `scheduled_for` as `YYYY-MM-DDTHH:mm` in the user's time zone. Left out, the post goes now.
* `card_id`, the calendar card the post is made from. Left out, a card is made, so every post is on the calendar.

A post is checked against each platform's rules before it goes, and against what the platform received after. `check` takes what `create` takes and returns whether the post would pass, making and sending nothing.

## Options per platform

`choices` with an `account_id` returns every option a post to that account takes, with its kind, limits and values, and what the account itself offers for them: privacy levels, boards, playlists, Pages, company pages, music. With `lookup` and `query` it searches `locations` (a place for a TikTok video) or `audio` (a track for an Instagram reel). An option the platform does not have is refused by name.

| Platform | Options include |
| - | - |
| Instagram | `format` (post or story), `trial_reel`, `share_to_feed`, `first_comment`, `collaborators`, `user_tags`, `cover_at_ms`, `audio_id`, `comments_off`, `paid_partnership`, `ai_label` |
| Facebook | `format` (post, reel or story), `page_id`, `reel_title`, `first_comment`, `link_cards`, `draft`, `countries`, `ai_label` |
| TikTok | `privacy` (required), `allow_comment`, `allow_duet`, `allow_stitch`, `branded`, `draft`, `cover_at_ms`, `music_id`, `location_id`, `ads_only`, `ai_label` |
| YouTube | `title`, `visibility`, `tags`, `category`, `playlist_id`, `made_for_kids`, `notify_subscribers`, `language`, `audio_language`, `first_comment`, `ai_label` |
| X | `thread`, `poll`, `article`, `quote`, `reply_to`, `who_can_reply`, `tagged_users`, `sensitive`, `paid_partnership`, `countries`, `ai_label` |
| LinkedIn | `organization`, `document_title`, `poll`, `reshare`, `first_comment`, `no_link_preview`, `countries` |
| Threads | `thread`, `topic`, `first_comment` |
| Pinterest | `board_id` (required), `board_section_id`, `title`, `link`, `cover_at_seconds`, `ai_label` |

## Covers and alt text

`cover` is a library picture shown as the cover of the post's one video: the YouTube thumbnail, and the cover on an Instagram reel, Facebook, LinkedIn and Pinterest. TikTok takes a frame of the video, set with `cover_at_ms`. `alt_text` gives a picture's description for people who cannot see it, keyed by the picture's id or ref as given in `media`, up to 1,000 characters.

## What each platform takes

| Platform | Caption | Items |
| - | - | - |
| Instagram | 2,200 characters | 1 to 20 pictures or videos |
| Facebook | | one video, or up to 10 pictures |
| TikTok | 2,200 | one video, or up to 35 pictures |
| YouTube | 5,000 | one video |
| X | 280, a link counted as 23 | up to 20 pictures, or one video |
| LinkedIn | 3,000 | one video, one PDF, or up to 20 pictures |
| Threads | 500 | up to 20 pictures, or 10 items with a video |
| Pinterest | 800 | one picture or one video |

Each paid X slot includes 100 posts a month, 3 of them with a link, counted across all of the owner's workspaces. Each post of a thread counts, and an X Article counts as 2.

## Statuses

`get` reads a post with each account's result, and `list` returns the newest posts or, with `card_id`, a card's. `list` with `status` returns up to 100 posts in that state.

| Status | Meaning |
| - | - |
| `held` | Kept for a person to approve in the app. Nothing was sent. |
| `sending` | Being sent to the platforms. |
| `scheduled` | Waiting for its time. |
| `publishing` | Going out. |
| `published` | Out on every account. |
| `partial` | Out on some accounts and failed on others. |
| `failed` | Did not go out. |
| `cancelled` | Cancelled before it went out. |

`hold: true` on `create` keeps a post as `held`. A workspace can require this of every post an agent makes; see [Approval and what agents can do](https://docs.eversince.ai/publish/approval.md).

## Changing a post

| Action | What it does |
| - | - |
| `update` | Replaces a scheduled post that has not gone out, or a `held` post, which stays held. |
| `delete` | Cancels a scheduled or held post, or drops a published one from the workspace. A published post stays on the platform. |
| `retry` | Resends a `failed` or `partial` post to the accounts it missed. A `failed` post that turns out to have gone out is returned with its real state, and nothing is sent. |
| `edit` | Changes a published post on one account: its text on Facebook, LinkedIn, Pinterest and YouTube. With `details` it changes a YouTube video's title, tags, category, visibility, playlist and language fields, and with `cover` a YouTube thumbnail or a Facebook video's cover. |
| `remove` | Takes a published post off one account. Not available on Instagram or TikTok. On YouTube the video is deleted for good. |


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