Secure API access
Connect your app, workflow, or backend service to Postly with authenticated API requests.
Postly API gives developers a direct way to create posts, upload media, schedule content, publish across channels, and retrieve performance data. MCP is available as the AI-agent layer for assistants that need scoped access to Postly actions.
# Connect your product to Postly
POST /v1/posts
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"content": "Launching our new feature today!",
"platforms": ["linkedin", "x"],
"schedule_at": "2026-02-01T09:00:00Z"
}The Postly API gives builders direct access to Postly publishing infrastructure. Use it for programmatic publishing, media management, campaign workflows, analytics, status checks, and custom automations.
Connect your app, workflow, or backend service to Postly with authenticated API requests.
Build against the correct workspace, social accounts, media library, campaigns, drafts, and publishing context.
Create posts, upload media, schedule content, publish, retrieve analytics, and check status from your own systems.
Power CRMs, CMS tools, approval flows, internal dashboards, AI tools, and repeatable publishing automations.
Use the API when you want reliable server-to-server access to Postly from your own product, internal system, automation layer, or backend workflow.
Create content, select platforms, attach media, and publish immediately or schedule for later.
Upload images and videos from files or URLs, then reuse returned media IDs in publishing requests.
Attach multiple media assets to one post for platforms that support carousel or multi-image publishing.
Plan, draft, schedule, organize, and monitor posts as part of repeatable campaign operations.
Bring performance data, post status, and campaign reporting into your own product or dashboard.
Use the API behind copilots, content generators, internal AI tools, and structured publishing automations.
MCP gives AI clients a structured way to use Postly actions with permission-scoped tools. Developers can keep the REST API for direct integrations and send agent-focused users to the dedicated MCP page for setup, scopes, and examples.
Connect AI clients that can draft, schedule, publish, and retrieve status through Postly.
Use focused permissions for drafts, media, scheduling, publishing, campaigns, and analytics.
Let users manage publishing tasks from a conversational interface while Postly handles execution.
Supported AI clients and agents
# Use MCP when an AI client needs tools
User: Create a LinkedIn draft from this launch note.
Agent: Draft created in Postly and ready for review.
User: Schedule it for tomorrow at 9am.
Agent: Scheduled through Postly.MCP is best for AI-native workflows where the user works through an assistant, copilot, agent, CLI, or multi-model interface instead of calling REST endpoints directly.
Let an AI assistant help draft, schedule, publish, and check the status of social posts through Postly.
Plan campaigns, prepare variations, stage drafts, assign media, and organize publishing work from an AI client.
Answer performance questions with read-only analytics access while keeping publishing permissions separate.
Grant only the tools each agent needs, such as drafts, media upload, scheduling, analytics, or publishing.
Use the REST API for direct product integrations and backend workflows. Use MCP when an AI client needs tool-based access to Postly actions on behalf of a user.
10 guides available
Use this when a customer wants to publish several images under one post. Upload each image by file or URL first, then create the post with multiple file IDs.
// Option 1: Upload images from files
POST /v1/files
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-data
file=@image1.jpg
file=@image2.jpg
// Example response
{
"files": [
{ "id": "file_1" },
{ "id": "file_2" }
]
}
// Option 2: Upload an image from a public URL
POST /v1/files
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"url": "https://example.com/image1.jpg"
}
// Repeat for each URL and collect the returned file IDs.
// Create one post with multiple images
POST /v1/posts
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"content": "New collection from Asia Lifestyle Magazine",
"platforms": ["instagram", "linkedin"],
"media": [
{ "file_id": "file_1" },
{ "file_id": "file_2" }
]
}