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

# Approve posts

> How posts come to wait as PENDING_APPROVAL, who can approve them, and how to approve one through the API or MCP.

In a workspace with a team, some people write posts and others decide what goes out. A post written by someone who can't publish waits as `PENDING_APPROVAL` until someone approves it.

## How a post comes to wait

A key acts as its person, with their role in the workspace. When that person can't publish and saves a post with `schedule` or `publish_now`, nothing goes out. The post's `status` is `PENDING_APPROVAL` instead.

| Role | Writes posts | Publishes | Approves |
| - | - | - | - |
| Owner, manager, content manager | Yes | Yes | Yes, any pending post |
| Content creator | Yes, and they wait for approval | No | No |
| Client | No | No | Yes, the posts sent to them |

A post sent for approval through the API or MCP goes to every member whose role can approve. On the Free plan it counts toward the 20 posts a month when it's sent, not again when it's approved.

To find what's waiting, subscribe a [webhook](https://docs.postsyncer.com/api-reference/webhooks/create.md) to `approval.requested`. It carries the `post` and the `actor` who sent it. You can also [list posts](https://docs.postsyncer.com/api-reference/posts/list.md) and look for `PENDING_APPROVAL`.

## Approve a post

[Approve a post](https://docs.postsyncer.com/api-reference/posts/approve.md) with `POST /posts/{id}/approve`. The key needs `posts:approve`, and its person must be allowed to approve that post.

`type` says what happens next:

| `type` | The post becomes | Notes |
| - | - | - |
| `publish` | `IN_QUEUE`, and goes out right away | It can't be undone. |
| `schedule` | `SCHEDULED` | Goes out at `schedule_for`, or at the post's own time when you leave it out. The time must be in the future. |
| `draft` | `DRAFT` | Keeps its time, so it can be scheduled later. |

```bash theme={null}
curl -X POST "https://postsyncer.com/api/v1/posts/92731/approve" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "schedule",
    "schedule_for": { "date": "2030-03-15", "time": "09:00" }
  }'
```

It answers with the post, now `SCHEDULED`. `schedule_for` is read in the workspace's timezone, unless you add `timezone` inside it (`"schedule_for": { "date": "2030-03-15", "time": "09:00", "timezone": "Europe/London" }`). Rows that had failed go back to `PENDING`, so they go out with the rest.

When the post is approved, PostSyncer sends `approval.approved`. Rejecting a post is done in the app, with a reason for its writer. That sends `approval.rejected`, with the `reason`. [Webhook events](https://docs.postsyncer.com/webhooks/events.md) shows what each one carries.

> [!WARNING]
>
> `posts:approve` lets a key publish a waiting post, even without `posts:publish`. Give it only to keys you'd trust to publish.

## When approving is refused

| Status | Message | Why |
| - | - | - |
| `422` | `Only posts with status PENDING_APPROVAL can be approved; this post is SCHEDULED.` | The post isn't waiting (the status is the post's own). |
| `409` | `Someone else answered this approval request just now. Reload the post to see where it stands.` | Two people answered at once. Read the post again. |
| `403` | `Your role in the workspace "<workspace name>" does not allow you to approve posts. Ask the workspace owner or a manager to do it, or to change your role.` | Their role can't approve. |
| `403` | `This post was not sent to you for approval.` | The person can approve but can't publish, and the post wasn't sent to them. |
| `403` | The key lacks `posts:approve`. | Grant it in **Settings → API**. |
| `422` | On `accounts`: `Select at least one account to post to, or save the post as a draft.` | `publish` or `schedule` for a post with no account to send to. `draft` still works. |
| `422` | On `schedule_for`: `Pick a date and time to schedule this post.` or `That time has already passed. Pick a time in the future.` | `schedule` with no time at all, or with a time that has passed. |

## Edit a waiting post

Leave `schedule_type` out of an [update](https://docs.postsyncer.com/api-reference/posts/update.md) and the post stays `PENDING_APPROVAL`, at its time while that time is ahead. Otherwise it takes the next free queue time, or keeps its time (or none) when none is free. That needs `posts:schedule`. With `"schedule_type": "draft"`, it leaves the approval queue and becomes a draft.

## Change an approved, scheduled post

Once a post is `SCHEDULED`, someone who can't publish can't edit it with an [update](https://docs.postsyncer.com/api-reference/posts/update.md) on their own. Their update with `schedule_type` left out, or with `draft`, answers `403`, and nothing is saved:

```json theme={null}
{
  "message": "This post is already approved and scheduled. Changing it needs a new approval: make your changes and use Request approval. Here, send the change with schedule_type: schedule to ask for a new approval."
}
```

To ask for a new approval, send the same change with `"schedule_type": "schedule"`. The post goes back to `PENDING_APPROVAL`, its approvers are asked again, and PostSyncer sends `approval.requested`. Leave `schedule_for` out to keep the post's time while it's ahead.

```bash theme={null}
curl -X PUT "https://postsyncer.com/api/v1/posts/92731" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": 4815,
    "schedule_type": "schedule",
    "content": [
      {
        "text": "Latte art Fridays are back at Halden Coffee. Now with oat milk.",
        "media": ["https://cdn.postsyncer.com/examples/latte-art.jpg"]
      }
    ]
  }'
```

A post that repeats after it went out (`PUBLISHED`, `PARTIALLY_FAILED` or `FAILED`, with repeats ahead) can't be changed by them with `schedule_type` left out or `draft` either. That answers `403` with `This post repeats, and its next repeats send what was approved. Ask someone who can publish to change it, or duplicate it and send the copy for approval.`

## With MCP

`approve-post` takes the post's id, `type` and `schedule_for`, and needs `posts:approve`. `get-post-history` shows who sent and answered it. An agent should ask the user before it approves: approving with `publish` sends the post. See the [MCP tools reference](https://docs.postsyncer.com/mcp/tools-reference.md).

## Related

> [card] [Core concepts](https://docs.postsyncer.com/concepts.md#post-statuses)
>
> Every post status and how they connect.

> [card] [Publish a post](https://docs.postsyncer.com/guides/publish-a-post.md)
>
> Drafts, schedules and sending posts.

> [card] [Authentication](https://docs.postsyncer.com/essentials/authentication.md#permissions)
>
> Which permission each action needs.


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