Developers
Build social publishing into your workflow.
Full programmatic access to posts, media, channels and scheduling with timezone-aware APIs, webhooks, MCP and CLI support.

JavaScript
import { PostZen } from '@postzen/sdk';
const client = new PostZen({ apiKey: 'pz_sk_...' });
const post = await client.posts.create({
content: 'Excited to share our latest feature!',
channels: ['linkedin', 'x', 'instagram'],
media: [{ url: 'https://example.com/image.png' }],
schedule_at: '2026-09-01T09:00:00Z',
timezone: 'America/Los_Angeles',
});
console.log(post.id);Python
from postzen import PostZen
client = PostZen(api_key='pz_sk_...')
post = client.posts.create(
content='Excited to share our latest feature!',
channels=['linkedin', 'x', 'instagram'],
media=[{'url': 'https://example.com/image.png'}],
schedule_at='2026-09-01T09:00:00Z',
timezone='America/Los_Angeles',
)
print(post.id)PHP
<?php
require 'vendor/autoload.php';
use PostZen\Client;
$client = new Client('pz_sk_...');
$post = $client->posts->create([
'content' => 'Excited to share our latest feature!',
'channels' => ['linkedin', 'x', 'instagram'],
'media' => [['url' => 'https://example.com/image.png']],
'schedule_at' => '2026-09-01T09:00:00Z',
'timezone' => 'America/Los_Angeles',
]);
echo $post->id;cURL
curl -X POST https://api.postzen.ai/v1/posts \
-H "Authorization: Bearer pz_sk_..." \
-H "Content-Type: application/json" \
-d '{
"content": "Excited to share our latest feature!",
"channels": ["linkedin", "x", "instagram"],
"media": [{"url": "https://example.com/image.png"}],
"schedule_at": "2026-09-01T09:00:00Z",
"timezone": "America/Los_Angeles"
}'Endpoint: https://api.postzen.ai/v1/posts
API capabilities
- REST API
- API-key authentication
- OAuth channel connection
- List connected integrations
- Retrieve platform settings
- Retrieve dynamic platform options
- Create a post
- Publish now
- Schedule a post
- Save a draft
- Upload media
- Upload media from a URL
- List scheduled posts
- Filter by date or customer
- Change draft/scheduled status
- Delete posts
- Webhooks
- Structured responses
- Timezone-aware scheduling
- Recurring posts
- MCP support
- CLI support
Start building with the PostZen API.
Get your API key and publish your first post programmatically in minutes.
Works in the browser. Human review before publish.