---
title: "Social Media API for Developers: Schedule Posts | PostNext"
description: "Create and schedule social media posts from a script, a CI job or your own tool. PostNext has a REST API with one API key and an MCP server for AI agents."
url: "https://postnext.io/developers"
language: "en-GB"
---

# Social media API for developers

Create and schedule social media posts from a script, a CI job or your own tool. PostNext has a REST API with one API key and an MCP server for AI agents.

Human version: [https://postnext.io/developers](https://postnext.io/developers)

Schedule posts from a script, a CI job or your own tool with one API key. PostNext keeps the connection to each network and publishes at the time you set.

[Start your 7-day free trial](https://postnext.io/signup?plan=free&source=solution-developers)

## Posts from code on the team's calendar

A post your script creates sits next to the posts your team wrote. A person can open it, edit it and move it before it is published.

- Create a draft, schedule it or publish it now
- Cancel a scheduled post
- PostNext emails you when a post fails

## Media from a file or a URL

Upload an image or a video from a file, from a URL or through an upload link. Then use the asset in any post.

- List, fetch and delete assets
- PNG, JPG, WebP, MP4 and GIF
- Storage follows your plan

## A ready connection for AI clients

The PostNext [MCP server](https://postnext.io/mcp) works with any client that supports MCP over Streamable HTTP. Add one address and sign in with OAuth.

- 25 tools for drafts, schedules and analytics
- X, Instagram, LinkedIn, TikTok and Threads
- Setup pages for Claude, ChatGPT, Codex and Cursor

## Who PostNext is for

[All solutions](https://postnext.io/solutions)

- [**AI agents** Ask Claude, ChatGPT, Codex or Cursor for a week of posts. The drafts appear on your calendar.](https://postnext.io/ai-agents)
- [**Creators** Plan a week of Reels, TikToks and Shorts in one sitting, each with its own caption.](https://postnext.io/creators)
- [**Small businesses** Write the week's posts on Monday. They publish while you serve customers.](https://postnext.io/small-business)
- [**Startups** Paste your launch post and get a week of drafts. One person runs every channel.](https://postnext.io/startups)
- [**Agencies** All-in-one social media tool for agencies, with every client's posts, previews and reports in one place.](https://postnext.io/agencies)
- [**Marketing teams** One calendar for the team and an approval step before a post is published.](https://postnext.io/marketing-teams)

## Questions about the API

### Does PostNext have a public API?

Yes. The REST API covers accounts, connections, posts, assets and analytics, and it returns JSON. You send your API key in the x-api-key header. The [API reference](https://postnext.io/docs/api-reference) and an OpenAPI file are in the docs.

### Where is my API key?

Open Account settings and choose API keys. Each account has one key. When you make a new key, the old key stops working at once.

### Are there webhooks?

No. PostNext sends no webhooks today. PostNext emails you when a post fails or a channel connection expires. [PostNext vs Postiz](https://postnext.io/compare/postiz) shows a tool that has webhooks.

### Is there an SDK or a CLI?

No. The API is plain HTTPS and JSON, so any language that sends an HTTP request works. [AI coding agents](https://postnext.io/ai-agents) can use the PostNext MCP server.

### What does API access cost?

Requests act as your account, and your plan's limits apply as they do in the app. Every paid plan starts with a 7-day free trial, which asks for a card. The pricing page shows the plans.

### What does the API not do?

One API key acts as one PostNext account, so your customers cannot connect their own accounts through it. It has no endpoints for AI writing, templates, brand profiles or team members. It does not check each network's rules the way the composer does.

## Your first scheduled post from code

Connect a channel, copy your key and send the first request.

[Start your 7-day free trial](https://postnext.io/signup?plan=free&source=solution-developers)
