Post to social media from Codex
- Two lines in your Codex config
- Draft, schedule and publish posts by asking
- 13 networks: Instagram, LinkedIn, X, TikTok and more
Start with a 7-day trial for $0. API for Social Media is the social posting service that Codex drives through the MCP server. Keep a human in the loop for anything that matters.

Add API for Social Media to Codex and let it write the post about what it just built, then schedule it on 13 networks.
Add API for Social Media to your Codex config
Add these two lines to the Codex config file at ~/.codex/config.toml and restart Codex.
[mcp_servers.apiforsocialmedia] url = "https://api.apiforsocialmedia.com/mcp"
Ask Codex to post
One connection powers every channel you run
Connect your social accounts in API for Social Media once. Codex can then reach all of them.
Just ask in plain English
Tell Codex what to post and where. It writes the text, picks the channels and schedules it.
13 networks
One connection reaches Instagram, Facebook, TikTok, LinkedIn, X and eight more.
Connect once
Add API for Social Media one time. Every channel you connected in API for Social Media is ready to use straight away.
Plan and schedule ahead
Ask for one post or a whole month. Every post gets its own date and time.
Image, video and carousel
Attach a photo, a video or several slides. API for Social Media sends the format each network expects.
Stays in your account
Posts go only to the channels you connected, and you can move or delete any post before it goes out.
See what works before you post
Both plans include the Social Media Data API. Codex can pull what people say about your brand and which competitor posts win, so it knows what works before it posts.
How Codex uses API for Social Media
Example chats. Your agent's wording will differ.
Announce what you built
Recreate a post that works
Batch a campaign
Check the result
How much does it cost?
Start with a 7-day trial for $0. After that the API and the MCP server are part of both plans, from $19 a month. The CLI is available on request.
See pricing »How is access secured?
You sign in to API for Social Media or use an API key that you can revoke at any time. API for Social Media never shows your social passwords to an agent.
Which plan do I need?
Starter covers publishing on all 13 networks and 50 Data API credits a month. Pro doubles the channels, gives you 150 credits and adds post recreation.
Compare the plans »Frequently asked questions
How do I connect API for Social Media to Codex?
Add these two lines to the Codex config file at ~/.codex/config.toml and restart Codex.
What can Codex do with API for Social Media?
It can list your channels, create and schedule posts with text, images and video, move or delete a post that has not gone out and check how a post did.
Does this work in the Codex CLI and the Codex app?
API for Social Media is added in the Codex config, so it is available wherever Codex reads that config.
Why is Codex mentioned next to post recreation?
Post recreation on Pro is done by your own agent. Codex or Claude writes your version of a post that worked, and API for Social Media publishes it.
Which networks can Codex post to?
Instagram, Facebook, TikTok, Reddit, LinkedIn, X, Snapchat, YouTube, Threads, Bluesky, Telegram, Pinterest and Google Business Profile.
Does Codex write the posts or does API for Social Media?
Codex writes them and API for Social Media publishes them. You stay in charge: ask to see each post before it is scheduled if you want to approve it first.
Can posts go out while I am away?
Yes. Give a date and a time and API for Social Media sends the post then, even when your computer is off.
Is it included in my plan?
Yes. The API and the MCP server are part of both plans. The CLI is available on request. Both start with a 7-day trial for $0, then cost from $19 a month. See pricing.
Let Codex run your social media
API for Social Media opens soon. Leave your email and we will let you know when you can connect your channels.
We will email you when API for Social Media opens. No spam. Privacy Policy