Social media API for automating posts
The SocialPatra API lets your own code create, schedule and read posts in a workspace, using an API key sent in the X-API-Key header.
Updated by SocialPatra Team
Plan: Professional and up
Which social media scheduler has a developer API for automating posts?
SocialPatra has a REST API on every paid plan. Create a key in Workspace, Settings, API keys, choose its scopes, and send it in the X-API-Key header to https://api.socialpatra.com/api/v1/socialpatra. A key belongs to one workspace, can expire and has its own rate limits; with posts:write and media:upload, scripts can create and schedule posts.
Use the API when a script, a backend job or an automation tool should post for you: publish a release note, schedule a batch from your own system or pull numbers into a report.
If you would rather ask an AI assistant than write code, the MCP server does the same work through a chat, with sign-in instead of a key.
Make your first API call
- Create a key. As a workspace owner or admin, open Workspace, Settings, API keys and create a key. Give it only the scopes it needs. The key is shown once, so store it in your secret manager.
- Send it in the X-API-Key header. Every request carries the key in the X-API-Key header. The key is not accepted in the Authorization header.
- Check who you are. This call confirms the key works before you build anything on it.
curl https://api.socialpatra.com/api/v1/socialpatra/auth/whoami \ -H "X-API-Key: <your key>"
What each API key controls
- Scopes: pick from the catalog, for example reading posts, creating and editing posts, uploading media and reading analytics. A key can do only what its scopes allow.
- Workspace: a key belongs to one workspace and sees only that workspace's accounts and data.
- Expiry: never, 30 days, 90 days or 1 year.
- Rate limits: each key has its own requests-per-minute and requests-per-day limits.
- Regenerate and revoke: regenerate a key to get a new secret with the same scopes, or revoke it to stop it at once.
API key or MCP server
| What | API key | MCP server |
|---|---|---|
| Who uses it | Your code | An AI assistant, such as Claude or ChatGPT |
| How it signs in | X-API-Key header | OAuth sign-in and a consent page |
| Scope | One workspace, chosen scopes | One workspace, approved scopes |
| Set up | Workspace, Settings, API keys | MCP server setup |
Swipe the table sideways to see every column.
Plans
API access is part of every paid plan and is not on the Free plan. The plan line at the top of this page is read from our current plan settings, and the pricing page lists every plan.
Frequently asked questions
Which social media scheduler has a developer API for automating posts?
SocialPatra does. Its REST API takes an API key in the X-API-Key header. A key with posts:write and media:upload can create and schedule posts in its workspace, and posts:read lets it read them. Owners and admins create keys in Workspace, Settings, API keys on any paid plan.
Is the SocialPatra API free?
API access needs a paid plan; the Free plan cannot create API keys. Every paid plan includes it.
How do I authenticate with the SocialPatra API?
Send your API key in the X-API-Key header on every request. Keys sent in the Authorization header are not accepted.
Can one API key reach all my workspaces?
No. A key belongs to one workspace and sees only its accounts and data. Create a key in each workspace you want to automate.
Try it on your own accounts
No card needed to start.