# One API for 12 social networks

One REST API to schedule posts, add media, make connect links and read analytics on 12 social networks, with keys you limit to exactly what they need.

Schedule and publish posts, add photos and videos, make links for clients to connect their accounts, and read the numbers, on every network PostSyncer supports. One request reaches Instagram, LinkedIn, X and the rest at once, each with its own text and settings.

**REST API:** https://postsyncer.com/api/v1

**MCP server:** https://postsyncer.com/mcp

## Pick a request and send it

Every request below was sent to PostSyncer’s API, and the answer under it is the one that came back, cut down to the fields that matter. The IDs are a test workspace’s. Swap in yours from the first two requests.

### Schedule a post

Status SCHEDULED. platforms lists the four networks, each PENDING until then, and X’s row carries its own text. The photo comes from the media library, and no account was skipped.

```bash
curl -X POST "https://postsyncer.com/api/v1/posts" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": 76,
    "schedule_type": "schedule",
    "schedule_for": {
      "date": "2026-12-08",
      "time": "09:00",
      "timezone": "America/Los_Angeles"
    },
    "content": [
      {
        "text": "Our Ethiopia Guji harvest lot lands Tuesday. Stone fruit, jasmine, wildflower honey. 140 bags, roasted in Portland this week.",
        "media": [2104]
      }
    ],
    "accounts": [
      {
        "id": 321
      },
      {
        "id": 322
      },
      {
        "id": 324
      },
      {
        "id": 323,
        "settings": {
          "text": "Guji harvest lot lands Tuesday. Stone fruit, jasmine, wildflower honey. 140 bags."
        }
      }
    ]
  }'
```

Answer (201 Created):

```json
{
  "id": 80925,
  "status": "SCHEDULED",
  "content": [
    {
      "text": "Our Ethiopia Guji harvest lot lands Tuesday. Stone fruit, jasmine, wildflower honey. 140 bags, roasted in Portland this week.",
      "media": [
        {
          "id": 2104,
          "name": "beans-pan.jpg",
          "type": "image"
        }
      ]
    }
  ],
  "platforms": [
    {
      "platform": "instagram",
      "status": "PENDING"
    },
    {
      "platform": "facebook",
      "status": "PENDING"
    },
    {
      "platform": "linkedin",
      "status": "PENDING"
    },
    {
      "platform": "twitter",
      "status": "PENDING",
      "settings": {
        "text": "Guji harvest lot lands Tuesday. Stone fruit, jasmine, wildflower honey. 140 bags."
      }
    }
  ],
  "skipped_accounts": []
}
```

What changed in PostSyncer: A scheduled post on the PostSyncer calendar for 9:00 Pacific time, going to Instagram, Facebook, LinkedIn and X, with its own shorter text on X. The timezone is for this post only: the workspace keeps its own.

### List accounts

Every connected account, 12 in all (4 shown), and whether any needs a reconnect.

```bash
curl "https://postsyncer.com/api/v1/accounts" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY"
```

Answer (200 OK):

```json
[
  {
    "id": 321,
    "workspace_id": 76,
    "platform": "instagram",
    "username": "alderandash.coffee",
    "needs_reconnect": false
  },
  {
    "id": 322,
    "workspace_id": 76,
    "platform": "facebook",
    "username": "alderandashcoffee",
    "needs_reconnect": false
  },
  {
    "id": 323,
    "workspace_id": 76,
    "platform": "twitter",
    "username": "alderashcoffee",
    "needs_reconnect": false
  },
  {
    "id": 324,
    "workspace_id": 76,
    "platform": "linkedin",
    "username": "alder-and-ash-coffee",
    "needs_reconnect": false
  }
]
```

What changed in PostSyncer: Nothing. A read: the IDs here are what a post’s accounts[].id takes.

### List workspaces

One workspace, Alder & Ash Coffee, with its 12 connected accounts (3 shown).

```bash
curl "https://postsyncer.com/api/v1/workspaces" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY"
```

Answer (200 OK):

```json
[
  {
    "id": 76,
    "name": "Alder & Ash Coffee",
    "type": "BRAND",
    "timezone": "Europe/London",
    "accounts": [
      {
        "id": 321,
        "platform": "instagram",
        "username": "alderandash.coffee"
      },
      {
        "id": 322,
        "platform": "facebook",
        "username": "alderandashcoffee"
      },
      {
        "id": 323,
        "platform": "twitter",
        "username": "alderashcoffee"
      }
    ]
  }
]
```

What changed in PostSyncer: Nothing. A read: it lists the workspaces your key can reach, each with its connected accounts.

### Save a draft

Status DRAFT, no time. Sent with a drafts-only key: posts:create is enough for a draft.

```bash
curl -X POST "https://postsyncer.com/api/v1/posts" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": 76,
    "schedule_type": "draft",
    "content": [
      {
        "text": "Notes from our Guji cupping this week: sweetness first, then clarity, then a long jasmine finish.",
        "media": []
      }
    ],
    "accounts": [
      {
        "id": 324
      }
    ]
  }'
```

Answer (201 Created):

```json
{
  "id": 80927,
  "status": "DRAFT",
  "scheduled_at": null,
  "content": [
    {
      "text": "Notes from our Guji cupping this week: sweetness first, then clarity, then a long jasmine finish."
    }
  ]
}
```

What changed in PostSyncer: A draft in PostSyncer, on nobody’s calendar. Someone opens it in the app, reads it and schedules it.

### A key without permission

A 403 that names the missing permission and where to grant it. Over MCP the tool answers with an error saying the same.

```bash
curl -X POST "https://postsyncer.com/api/v1/posts" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": 76,
    "schedule_type": "schedule",
    "schedule_for": {
      "date": "2026-12-08",
      "time": "09:00",
      "timezone": "America/Los_Angeles"
    },
    "content": [
      {
        "text": "Our Ethiopia Guji harvest lot lands Tuesday. Stone fruit, jasmine, wildflower honey. 140 bags, roasted in Portland this week.",
        "media": [2104]
      }
    ],
    "accounts": [
      {
        "id": 321
      },
      {
        "id": 322
      },
      {
        "id": 324
      },
      {
        "id": 323,
        "settings": {
          "text": "Guji harvest lot lands Tuesday. Stone fruit, jasmine, wildflower honey. 140 bags."
        }
      }
    ]
  }'
```

Answer (403 Forbidden):

```json
{
  "message": "This API key does not have the \"posts:schedule\" permission. Edit the key in PostSyncer under Settings → API to grant it."
}
```

What changed in PostSyncer: Nothing. The same scheduled post as above, sent with a drafts-only key, is refused before anything is saved.

### List media

Three photos on the first page of two. Each id goes straight into a post.

```bash
curl "https://postsyncer.com/api/v1/media?workspace_id=76&per_page=3" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY"
```

Answer (200 OK):

```json
{
  "data": [
    {
      "id": 2105,
      "name": "espresso-pour.jpg",
      "type": "image",
      "mime_type": "image/jpeg",
      "is_processing": false
    },
    {
      "id": 2104,
      "name": "beans-pan.jpg",
      "type": "image",
      "mime_type": "image/jpeg",
      "is_processing": false
    },
    {
      "id": 2103,
      "name": "heart-latte.jpg",
      "type": "image",
      "mime_type": "image/jpeg",
      "is_processing": false
    }
  ],
  "meta": {
    "current_page": 1,
    "last_page": 2,
    "per_page": 3,
    "total": 4
  }
}
```

What changed in PostSyncer: Nothing. A read: one page of the media library. Put an id in content[].media to use it in a post.

### Make a connect link

The link to send, the network, the workspace and when it stops working.

```bash
curl -X POST "https://postsyncer.com/api/v1/accounts/connect-links" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": 76,
    "provider": "tiktok"
  }'
```

Answer (201 Created):

```json
{
  "url": "https://app.postsyncer.com/connect/invite?token=CONNECT_TOKEN&provider=tiktok",
  "provider": "tiktok",
  "workspace_id": 76,
  "mastodon_instance": null,
  "expires_at": "2026-12-05T01:51:51+00:00"
}
```

What changed in PostSyncer: A connect link for TikTok, good for 7 days. Whoever opens it signs in on TikTok’s own page, with no PostSyncer login, and the account joins this workspace.

### Read a post’s numbers

Totals for the post, then each network’s own numbers. A null means PostSyncer has no such number for that network.

```bash
curl "https://postsyncer.com/api/v1/analytics/posts/80903" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY"
```

Answer (200 OK):

```json
{
  "post_id": 80903,
  "total": {
    "views": 4165,
    "likes": 416,
    "comments": 22,
    "shares": 0
  },
  "accounts": [
    {
      "platform": "instagram",
      "status": "PUBLISHED",
      "analytics": {
        "views": null,
        "likes": 94,
        "comments": 5
      }
    },
    {
      "platform": "facebook",
      "status": "PUBLISHED",
      "analytics": {
        "views": null,
        "likes": 173,
        "comments": 10
      }
    },
    {
      "platform": "linkedin",
      "status": "PUBLISHED",
      "analytics": {
        "views": 4165,
        "likes": 149,
        "comments": 7
      }
    }
  ]
}
```

What changed in PostSyncer: Nothing. A read of the numbers PostSyncer last collected for each network the post went to.

## Quick start

1. **Make a key.** In Settings → API, name the key, tick what it may do and, if you like, give it an end date. The key is shown once, so copy it into your secrets store.

2. **Find your IDs.** Posts go to a workspace and to connected accounts in it. GET /workspaces and GET /accounts give you both, with each account’s network and handle.

3. **Send the post.** Put the account IDs, the text and the time in one POST /posts. It lands on the PostSyncer calendar like a post made in the app, and goes out at that time.

## What the API covers

The base URL is https://postsyncer.com/api/v1. Everything the PostSyncer app does with posts, you can do from code: write a post once, schedule it, change it, publish it now, send it for approval, or delete it. Around the posts sit the parts a real publishing tool needs. The media library takes uploads and imports from links. Folders, labels and campaigns keep a busy calendar sorted. Comments can be read, answered and hidden. Google Business Profile reviews can be answered. Analytics read back how each post and account did.

Every request acts as the person who made the key, inside the workspaces they belong to and with their role in each. A key can never do more than its owner could do in the app, and it can be told to do much less.

- Posts: list, get by ID, by public link or by the network’s own post ID; create, update, approve and delete

- Accounts: list, get, disconnect, and make connect links for other people

- Media: list, get, upload a file, import from a link, delete; folders to sort them

- Comments and Google reviews: read, reply, hide and delete

- Analytics: totals across workspaces, a workspace, an account or one post

- Brand: read and update a workspace’s voice and rules before you write

- Labels, campaigns, saved snippets and signed webhooks for your own automations

## One request, every network

A post is a list of content items and a list of accounts. The first item is the post itself; more items make a thread where the network has threads, like X. Each account can carry settings of its own: a shorter text for X, a Reel instead of a feed post on Instagram, a board on Pinterest, a button on Google Business Profile. Accounts without settings get the shared text.

schedule_type says what happens next. draft saves it and nothing goes out. schedule takes schedule_for, a date, a time and an IANA timezone for that post, so “9:00 in Los Angeles” means the same thing whoever sends it; leave schedule_for out and the post takes the workspace’s next free queue slot, or is refused when none is free. Answers write times in the workspace’s own time zone, which a post’s timezone never changes. publish_now sends it straight away. A first comment is a content item with is_first_comment set. Instagram, Facebook, LinkedIn and YouTube post it under the post; X, Threads, Bluesky and Mastodon post it as a reply in the thread.

## Photos and videos: an ID or a link

content[].media takes media IDs from your library or public links. A link is copied into your media library when the post is saved, so the post keeps working if the original moves; if it can’t be fetched, the request fails with the reason instead of saving a broken post. To prepare files ahead, import them with POST /media/upload/url or send the file to POST /media/upload/file, then use the IDs.

Each network’s rules still apply: file types, sizes, video length and how many files a post can hold. The API checks them before it saves, so a post that would fail at 9:00 fails now, with a message that says which network refused what.

## Keys that can only do their job

Permissions are resource:action pairs. A reporting script needs analytics:read and nothing else. A tool that writes posts for a person to check can have posts:create without posts:schedule or posts:publish: everything it sends is saved as a draft, and a request to schedule is refused with a 403 that names the permission it lacks. Approving a post waiting for approval is its own permission too, posts:approve.

Make one key per tool, so you can see which one did what and turn one off without breaking the others. A key with an end date stops working on that day by itself.

## Errors you can act on

Errors come back as JSON with a message a person can read. 401 means the key is missing, wrong or past its end date. 403 names the permission the key lacks, or says your plan’s limit was reached. 422 lists the fields that failed and why, including a network refusing a file or a text that’s too long. 429 means a limit was reached; the limits section says which ones.

## OpenAPI, generated clients and agents

The whole API is described in openapi.json, the file the API reference is built from. Point a client generator at it for typed calls in your language, or give it to a coding agent so it writes requests against the real field names. The same operations are tools on the MCP server, so an AI client can do over MCP what your code does over REST, with the same key and the same permissions.

## Keys and sign-in

Code sends an API key. AI clients that support connectors can sign in with OAuth instead, so nobody pastes a key into a chat.

## Limits

Two limits apply: requests a minute, the same on every plan, and your plan’s posts. Posts are unlimited on paid plans; on Free, posts from the API count toward its monthly posts.

| Plan | Social accounts | Posts | API posts a day, per network |
| --- | --- | --- | --- |
| Free | 2 | 20 a month | Within the 20 |
| Starter ($29 a month) | 10 | Unlimited | Unlimited |
| Pro ($49 a month) | 30 | Unlimited | Unlimited |
| Agency ($99 a month) | 100, then $1/mo each | Unlimited | Unlimited |

Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.

Plans and prices: https://postsyncer.com/pricing

## Docs

- [Quickstart](https://postsyncer.com/docs/quickstart): A key, your IDs and your first post

- [API reference](https://postsyncer.com/docs/api-reference/introduction): Every endpoint, with examples

- [Create a post](https://postsyncer.com/docs/api-reference/posts/create): Every field of POST /posts

- [Keys and permissions](https://postsyncer.com/docs/essentials/authentication): Bearer keys and resource:action

- [Errors](https://postsyncer.com/docs/essentials/error-handling): Status codes and what to do

- [Limits](https://postsyncer.com/docs/rate-limits): Requests a minute and posts by plan

- [OpenAPI](https://postsyncer.com/docs/api-reference/openapi.json): openapi.json for generators and agents

## FAQ

### Which networks can the API post to?

All 12 that PostSyncer supports: Instagram, TikTok, Facebook, X, LinkedIn, YouTube, Threads, Pinterest, Bluesky, Google Business Profile, Mastodon and Telegram. One request can go to any mix of them, with its own text and settings for each.

### How do I authenticate?

Send your key in the Authorization header as Bearer and the key. Make keys in Settings → API. Each key has resource:action permissions, like brand:read, posts:create or analytics:read, and can have an end date.

### Is the API on the free plan?

Yes. The REST API and API keys are on every plan, Free included. On Free, posts from the API count toward the plan’s monthly posts, the same allowance the app and MCP use, and analytics totals cover the last 7 days. The limits table shows each plan’s numbers. X post analysis with AI (POST /posts/analyze-twitter), watching a video with AI (POST /media/analyze-video), analytics for other dates and comment moderation need a paid plan.

### How do I add photos and videos?

Put media IDs from your library, or public links, in content[].media. A link is copied into your media library when the post is saved. You can also import first with POST /media/upload/url or send a file to POST /media/upload/file.

### Can a client connect their own accounts?

Yes. POST /accounts/connect-links makes a link for one network. Whoever opens it signs in on that network’s own page, with no PostSyncer login, and the account joins your workspace. The link works for 7 days.

### What happens past a limit?

Past the per-minute limit you get a 429: wait for the minute to pass. A plan limit, like the Free plan’s monthly posts, answers 403 with plan_limit_reached and names the limit.

### Is there an OpenAPI file?

Yes, openapi.json, linked from the API reference. Use it to generate a client or to give a coding agent the real field names.

---

Page: https://postsyncer.com/social-media-api · Updated 2026-11-17
