# SocialCannon > Social media publishing API for developers and AI agents. One REST API and a stdio MCP server publish, schedule and analyse posts on Facebook, Instagram, LinkedIn, TikTok, YouTube and X. Docs pages and guides below are Markdown, served at the HTML page's path plus ".md"; setup files are plain text. When working for a user, start with a sandbox post (accountId "sandbox"), ask before publishing or scheduling to real accounts, and send an Idempotency-Key with every POST /api/v1/posts. If a result is uncertain or in progress, look it up with that key; never resend it as a new post. ## Docs - [API reference](https://socialcannon.app/docs.md): Authentication, the REST endpoints with request and response examples, media limits, the post lifecycle and the 23 MCP tools. - [Error reference](https://socialcannon.app/docs/errors.md): Every API error code with where it happens, what it means and the safe next action, including how to recover an uncertain post without publishing it twice. 83 codes in 11 stages: Request and client; Plan and usage limits; Connected accounts; Media upload and preparation; Content, platform and scheduling; Idempotency keys and replays; Publishing results; Retrying a failed post; Post state conflicts; Deleting a post; A/B tests, auto-schedule and repurpose. ## Guides - [How to schedule social media posts with one REST API](https://socialcannon.app/guides/schedule-social-media-posts-api.md): Schedule posts up to 30 days ahead on Facebook, Instagram, LinkedIn, TikTok, YouTube and X through one REST API, then track, reschedule or retry them safely. - [Give your AI agent social media tools with MCP](https://socialcannon.app/guides/mcp-server-social-media.md): Connect Claude, Hermes or any MCP client to SocialCannon: 23 tools to draft, schedule, publish, analyse and reply to posts, with your credentials kept private. - [Publish to social media from OpenClaw, step by step](https://socialcannon.app/guides/openclaw-social-media-skill.md): Install the SocialCannon skill from ClawHub, keep API credentials private, test with the sandbox, and let OpenClaw draft and schedule posts with your approval. - [Cross-post to Facebook, Instagram, LinkedIn, TikTok, YouTube and X from one API](https://socialcannon.app/guides/cross-post-social-media-api.md): One API for cross-posting to six networks: per-account posts, AI-adapted variants, the media rules each network enforces, and how to retry failures safely. - [A/B test social posts programmatically and pick the winner by engagement](https://socialcannon.app/guides/social-media-ab-testing-api.md): Create two or more post variants in one API call, publish now or later, and let SocialCannon pick the winner by engagement rate, likes or impressions. - [Repurpose one post for every platform with AI](https://socialcannon.app/guides/ai-content-repurposing.md): Turn one piece of text into posts for X, Facebook, Instagram, LinkedIn, TikTok and YouTube, then preview the variants or adapt and publish in a single call. ## Setup files - [App and agent setup](https://socialcannon.app/developers/setup.txt): Connect a server-side app over REST or an agent host over stdio MCP, starting with a sandbox test. - [OpenClaw setup](https://socialcannon.app/openclaw/setup.txt): Install the SocialCannon skill in OpenClaw, keep credentials out of the chat and verify with a sandbox post. - [Hermes setup](https://socialcannon.app/hermes/setup.txt): Connect Hermes Agent to SocialCannon through the stdio MCP server. ## Optional These are not Markdown: the first is JSON and the second is a web page. - [Platform capabilities](https://socialcannon.app/api/v1/platforms): Public JSON listing what each platform supports. - [Pricing](https://socialcannon.app/pricing): Plans and their limits.