> ## 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.

# How Postploy works

> Teams, channels, posts, statuses and approvals. These ideas are behind every tool and endpoint.

## Teams

Everything in Postploy belongs to a team: its channels, posts, media and members. An AI connection or an API key works in one team. That's the team you picked when you connected the app or created the key.

## Channels

A channel is a social account connected to your team, like a LinkedIn profile or an Instagram account. The API calls channels accounts, so a post names its channel with `socialAccountId`.

| Platform | Name in the API |
| - | - |
| X | `twitter` |
| LinkedIn | `linkedin` |
| Instagram | `instagram` |
| Facebook | `facebook` |
| TikTok | `tiktok` |
| YouTube | `youtube` |

Sometimes a platform takes back Postploy's access to a channel. When that happens, the channel shows `needsReconnect: true`. Someone who can manage channels reconnects it in the app, and its posts wait until then.

Channel sets are named groups of channels your team posts to together, like "Launch channels". Your AI can use them to post to a whole set at once.

## Posts

A post is one message to one channel. To say the same thing on three channels, make three posts. Each post has text, optional images or videos, a time and a status.

* `scheduledAt` is when the post goes out, to the minute, written as ISO 8601 with an offset (`2030-01-15T09:00:00Z`). Postploy always returns it in UTC.
* `timezone` only sets how the app shows that time to your team. It doesn't change when the post goes out.

## Statuses

Every post has a status. Lists and counts group them into five status groups.

| Status | Group | What it means |
| - | - | - |
| `draft` | `draft` | Saved. It doesn't go out. |
| `pending_approval` | `approval` | Waiting for someone to approve it. |
| `scheduled` | `scheduled` | Goes out at `scheduledAt`. |
| `queued` | `scheduled` | About to go out. |
| `publishing` | `scheduled` | Going out right now. It can't be changed or deleted until it's done. |
| `published` | `published` | Live. `link` points to it. |
| `failed` | `failed` | Couldn't be published. `failureReason` says why. |
| `cancelled` | `failed` | Stopped before it went out. |

A post is also blocked, with `blockedReason: "account_disconnected"`, while its channel needs reconnecting.

## Roles and approvals

Your AI and your API keys can do what your role allows.

| Role | Can |
| - | - |
| Owner, Admin | Everything, including webhooks |
| Editor | Write, schedule and approve posts |
| Contributor | Write posts, which wait for approval, and change their own |
| Viewer | See channels, posts and media |

Owners and admins can use every channel. Other members use the channels they've been given.

When someone who can't publish makes a post, it waits for approval in the Inbox. An owner, admin or editor approves it or sends it back with a reason. A post that's sent back becomes a draft, and its `sentBack` field holds the reason and note.

## Failed posts

When a post fails, `failureReason` says why in plain words, and `failureKind` says what to do:

| `failureKind` | What to do |
| - | - |
| `transient` | Something went wrong on the way. Retrying may work. |
| `permanent` | The platform rejected the post. Change it, then schedule it again. |
| `account` | The channel needs reconnecting in Postploy. |

You can [retry a failed post](https://docs.postploy.com/api-reference/posts/retry-a-failed-post.md), or ask your AI to do it.

## Media

Images and videos live in your team's media library, and posts point to them by id in `mediaIds`. Bring files in from a URL with [Import media](https://docs.postploy.com/api-reference/media/import-media.md).


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