One social media API for posts, messages and bio pages
The OnlySocial social media API lets your own apps schedule posts to 16 networks, read and answer messages, and manage link in bio pages. Every API uses one workspace key with scoped permissions, and webhooks tell your systems the moment something happens.
What the OnlySocial social media API covers
Building directly on each network's API means separate apps, reviews, token refreshes and format rules for every platform. A social media API like OnlySocial puts one layer in front of all of them. You connect accounts once in the app, then your code talks to OnlySocial and OnlySocial talks to the networks.
There are three REST APIs, all on the same workspace key. The Publishing API creates, schedules and publishes posts. The Messaging API works with conversations and contacts from the unified inbox. The Link in Bio API manages bio pages and their blocks. Webhooks report events back to your systems, and an analytics API supports reporting. Full reference docs live at api.onlysocial.io.
Because the social media API sits on top of the same workspace your team uses every day, nothing you build runs in a hidden corner. Posts, messages and contacts created by your code show up in the app, with the same calendar, inbox, approvals and activity log as everything else.
- Publishing API for posts on 16 networks
- Messaging API for conversations and contacts
- Link in Bio API for pages and blocks
- Webhooks for posts, messages, contacts, bookings, payments and orders
- Analytics API for reports
Publishing API for 16 networks
The Publishing API lets your app create posts, schedule them and publish them to any connected account: Facebook, Instagram, Threads, X, LinkedIn, TikTok, YouTube, Google Business Profile, Pinterest, Bluesky, Mastodon, Reddit, Telegram, Tumblr, VK and Pixelfed. Each post can carry a version per network, so the same call can send a short X post and a longer LinkedIn update.
Posts created through the API appear on the same content calendar your team uses. If approvals are switched on, they wait for sign-off like any other post. That makes the publishing API a good fit for product feeds, content systems and internal tools that should suggest posts without bypassing your team.
Common publishing API uses
Post new products from a store catalogue, share new articles from a content system, schedule batches prepared in an internal tool, or let a client portal submit posts for approval. For simple feeds, RSS and CSV scheduling may need no code at all.
Messaging API for the unified inbox
The Messaging API connects your systems to conversations from WhatsApp, Instagram, Messenger, TikTok, Telegram, SMS and the live chat widget, along with comments that land in the same inbox. Read conversations, send replies, and work with contacts, tags and pipeline stages from your own code.
Use the messaging API to sync contacts with your CRM, send an order update to a customer on the channel they used, or add a note when something happens in another system. The same inbox stays in use by your team and the AI sales chatbot, so API actions, human replies and AI replies all live in one history per contact.
- Read and reply to conversations
- Create and update contacts
- Tag contacts and move pipeline stages
- Keep one history across channels
Link in Bio API for pages and blocks
The Link in Bio API lets you manage bio pages from code. Agencies can set up a standard page for each new client, shops can keep product blocks in step with their catalogue, and event organisers can update a page as the schedule changes. Pages keep their themes, custom domains, QR codes and tap analytics.
Forms on a bio page still send each submission to the inbox as a contact, so leads captured on pages you manage through the Link in Bio API flow into the same contact list your team and chatbot use. Read more about pages on the link in bio page.
Because bio pages carry pixels and tap analytics, pages you build through the API report clicks in the same way as pages built by hand, so your reports stay consistent.
Webhooks for every event that matters
Polling an API every few minutes is slow and wasteful. Webhooks reverse that: you give OnlySocial a URL, and it sends an event to that URL when something happens. Events cover posts, messages, contacts, bookings, payments and store orders, so your systems can react within moments.
A few examples. When a post is published, record it in your reporting sheet. When a new message arrives, alert the right person in Slack. When a booking is made, add it to your scheduling system. When a payment arrives through a chat payment link, mark the order as paid. If you do not want to write code, Zapier, Make and n8n can receive webhooks and pass them on.
Webhooks pair well with the rest of the social media API. A webhook tells you that something happened, and a call to the publishing or messaging API lets your system respond, for example by replying to a new message or scheduling a follow-up post.
Handle webhooks safely
Respond quickly with a success code, then do the heavy work in the background. Make your handler safe to run twice for the same event, and log what you receive so you can trace problems later.
One workspace key with scoped permissions
Every workspace can create API keys, and each key carries scopes that limit what it can do. A reporting tool might only need read access to posts and analytics. A store integration might need to send messages but not publish posts. Give each integration its own key with the smallest set of scopes it needs, and revoke it if the integration is retired.
Because keys belong to a workspace, an agency can give each client integration access only to that client's accounts. The Partner API goes further for agencies and resellers, letting you create customer accounts, sign them in with SSO and connect their channels. See the agencies page for how that fits together.
Treat keys like passwords. Store them in your server’s secret settings rather than in code or in a browser app, never paste them into chat threads, and rotate them when someone with access leaves the team. If a key leaks, revoke it in the workspace and create a new one with the same scopes.
- One key per integration
- Scopes for publishing, messaging and bio pages
- Keys tied to one workspace
- Revoke any key at any time
# Claude Code claude mcp add --transport http onlysocial https://app.onlysocial.io/mcp # Cursor: ~/.cursor/mcp.json { "mcpServers": { "onlysocial": { "url": "https://app.onlysocial.io/mcp" } } }
curl -X POST https://app.onlysocial.io/os/api/$WORKSPACE_UUID/posts \ -H "Authorization: Bearer osk_YOUR_SECRET" \ -H "Content-Type: application/json" \ -d '{ "accounts": [12, 18], "date": "2026-11-12", "time": "18:00", "timezone": "Europe/Lisbon", "schedule": true, "versions": [{ "account_id": 0, "is_original": true, "content": [{ "body": "The rust tote is back." }] }] }'
What teams build with the social media API
Online stores connect their catalogue so a new product creates a draft post with its photo and link, ready for the team to approve. When an order is placed through a chat payment link, a webhook updates the store, and the messaging API sends the customer a confirmation on WhatsApp. Shopify and WooCommerce stores can also use the built-in order and abandoned checkout triggers without code.
Agencies use the social media API to plug OnlySocial into their own client portals and reporting. A portal can submit posts for approval, and a nightly job can pull analytics into a client report. SaaS companies post release notes from their changelog, and media teams publish new articles from their content system to every network as soon as an editor presses publish.
- Product posts from a store catalogue
- Order and booking updates over WhatsApp
- Client portals that submit posts for approval
- Release notes and articles from a content system
- Nightly reports from the analytics API
Start small, then grow
Pick one job that takes your team time every week, automate it with a single key and one or two webhooks, and measure the time saved before you build the next one.
Social media API or MCP server: which do you need?
The REST APIs suit developers building integrations that run on their own, like a store sync or a reporting pipeline. If you want an AI assistant to do the work instead, the social media MCP server gives Claude, ChatGPT, Cursor and other MCP apps tools to read accounts, schedule posts, reply to conversations, tag contacts and book appointments. Actions you mark for approval wait for a person.
Many teams use both. Code handles the predictable jobs through the social media API, and an AI agent handles the ad hoc ones through MCP, such as drafting a week of posts from a brief or summarising the inbox each morning. Both run on the same workspace, so everything shows up in the same calendar and inbox.
Start with the social media API in four steps
- Step 1
Connect your accounts
Sign up, create a workspace and connect the networks and chat channels you want to reach through the API.
- Step 2
Create a scoped key
Create a workspace API key and choose its scopes, such as publishing, messaging or bio pages, for this integration only.
- Step 3
Call the publishing API
Follow the reference at api.onlysocial.io to create and schedule your first post, then check it on the calendar.
- Step 4
Subscribe to webhooks
Add a webhook URL for the events you care about, such as published posts, new messages or payments.
Building on each network versus one social media API
Direct integrations give full control but need ongoing work for every platform. Here is the trade-off.
| Feature | OnlySocial API | Each network directly |
|---|---|---|
| Networks per integration | 16 | One |
| App reviews per network | Handled for you | Yes |
| Token refresh | Handled for you | Your code |
| Messages and posts together | Yes | Separate APIs |
| Team calendar and approvals | Yes | No |
| Webhooks across channels | Yes | Partly |
What OnlySocial customers say
Rated 4.4 out of 5 from 61 reviews on Trustpilot. Read every review
The variety of available integrations is impressive, allowing the consolidation of many services, saving costs, and simplifying management.
Infinite accounts, API endpoint, all good.
I have agency tier. Onlysocial is the best all in one social media manager. … You can automate tasks, social media replies and comments as well as the option to post video, images, or even a selection of selected memes.
Social media API FAQ
Something else? The help and API docs cover every feature.
What is a social media API?
A social media API lets your software create posts, read messages and work with accounts on social networks. The OnlySocial social media API puts 16 networks and 14 inbox channels behind one set of REST APIs and one workspace key, so you build one integration instead of many.
What can the publishing API do?
The publishing API creates, schedules and publishes posts to any connected account, with a version per network. Posts appear on your team's calendar and respect approvals.
What does the messaging API cover?
The messaging API works with conversations from WhatsApp, Instagram, Messenger, TikTok, Telegram, SMS and live chat, plus contacts, tags and pipeline stages. Replies sent through it appear in the shared inbox history.
Which webhooks are available?
Webhooks cover posts, messages, contacts, bookings, payments and store orders. Give OnlySocial a URL and it sends each event as it happens. Zapier, Make and n8n can also receive them, as shown on the integrations page.
What is the Link in Bio API?
The Link in Bio API manages bio pages and their blocks from code, which helps agencies set up client pages and shops keep product blocks current. Form fills still arrive in the inbox as contacts.
Is the API included in every plan?
Yes. The Publishing API, Messaging API, Link in Bio API, webhooks and the MCP server are on every plan. Plans differ only in limits such as social profiles and team members, shown on the pricing page.
Where are the API docs?
Reference docs are at api.onlysocial.io. If you prefer to work through an AI assistant, start with the MCP server instead.
Build once, reach every network.
Create a workspace key, schedule your first post through the API and subscribe to the webhooks you need.
