Codex + API for Social Media

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.

1

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"
2

Ask Codex to post

Write a post about the feature we just merged and schedule it on LinkedIn and X for tomorrow morning.
Scheduled for tomorrow at 9:00 on both. I based the text on the pull request description.

One connection powers every channel you run

Connect your social accounts in API for Social Media once. Codex can then reach all of them.

1

Just ask in plain English

Tell Codex what to post and where. It writes the text, picks the channels and schedules it.

2

13 networks

One connection reaches Instagram, Facebook, TikTok, LinkedIn, X and eight more.

3

Connect once

Add API for Social Media one time. Every channel you connected in API for Social Media is ready to use straight away.

4

Plan and schedule ahead

Ask for one post or a whole month. Every post gets its own date and time.

5

Image, video and carousel

Attach a photo, a video or several slides. API for Social Media sends the format each network expects.

6

Stays in your account

Posts go only to the channels you connected, and you can move or delete any post before it goes out.

Social Media Data API

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 the Data API works »

How Codex uses API for Social Media

Example chats. Your agent's wording will differ.

Announce what you built

Write the announcement for the import feature and schedule it for Monday on LinkedIn.
Scheduled for Monday at 9:00, with the two screenshots from the pull request.

Recreate a post that works

Here is a competitor post that did well. Write our own version for LinkedIn and Threads.
Both versions are written in your voice and scheduled for Wednesday at 10:00.

Batch a campaign

Create one post per item in launch-plan.md and schedule them over the next two weeks.
Eight posts are scheduled, one every weekday at 11:00.

Check the result

How did yesterday's posts do?
LinkedIn: 96 likes and 12 comments. X: 41 likes and 9 reposts. Example reply.

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