This API is currently in Beta and in active development. It does not provide all Postiz features yet.
SDKs & Integrations
Authentication
All API requests require an API key. Get your API key from Postiz Settings.
Include the API key in the Authorization header:
curl -H "Authorization: your-api-key" https://api.postiz.com/public/v1/integrations
Base URL
Environment Base URL Postiz Cloud https://api.postiz.com/public/v1Self-hosted https://{NEXT_PUBLIC_BACKEND_URL}/public/v1
Rate Limits
30 requests per hour limit applies to all endpoints.This doesn’t mean you can only post 30 times per hour—each API call counts as one request. Schedule multiple posts in a single request to maximize throughput.
Terminology
The Postiz UI uses the term channel , while the API uses integration . They refer to the same thing—a connected social media account.
When creating posts, each social media platform has its own settings schema. The settings object must include a __type field matching the provider.
Social
Video
Design
Blogging
Business
Platform __typeKey settings X (Twitter) xwho_can_reply_post, communityLinkedIn linkedinpost_as_images_carouselLinkedIn Page linkedin-pagepost_as_images_carouselFacebook facebookurl (optional)Instagram (FB-linked) instagrampost_type, collaboratorsInstagram Standalone instagram-standalonepost_type, collaboratorsWarpcast (Farcaster) warpcastsubreddit[] (channels)
These platforms only require { "__type": "platform-name" }:
Platform __typeThreads threadsMastodon mastodonBluesky blueskyTelegram telegramNostr nostrVK vk
View Provider Settings Reference See detailed settings schemas with examples for each platform
Quick Examples
{
"type" : "schedule" ,
"date" : "2024-12-14T10:00:00.000Z" ,
"shortLink" : false ,
"tags" : [],
"posts" : [
{
"integration" : { "id" : "your-integration-id" },
"value" : [
{
"content" : "Hello from the Postiz API! 🚀" ,
"image" : []
}
],
"settings" : {
"__type" : "x" ,
"who_can_reply_post" : "everyone"
}
}
]
}
Post immediately to LinkedIn
{
"type" : "now" ,
"date" : "2024-12-14T10:00:00.000Z" ,
"shortLink" : false ,
"tags" : [],
"posts" : [
{
"integration" : { "id" : "your-linkedin-id" },
"value" : [
{
"content" : "Exciting announcement! 🎉" ,
"image" : []
}
],
"settings" : {
"__type" : "linkedin"
}
}
]
}
Upload an image and post to Instagram
# Step 1: Upload the image
curl -X POST "https://api.postiz.com/public/v1/upload" \
-H "Authorization: your-api-key" \
-F "file=@photo.jpg"
# Response: { "id": "img-123", "path": "https://uploads.postiz.com/photo.jpg", ... }
# Step 2: Create the post with the uploaded image
curl -X POST "https://api.postiz.com/public/v1/posts" \
-H "Authorization: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"type": "schedule",
"date": "2024-12-14T10:00:00.000Z",
"shortLink": false,
"tags": [],
"posts": [{
"integration": { "id": "your-instagram-id" },
"value": [{
"content": "Beautiful sunset 🌅 #photography",
"image": [{ "id": "img-123", "path": "https://uploads.postiz.com/photo.jpg" }]
}],
"settings": {
"__type": "instagram",
"post_type": "post"
}
}]
}'
Publish a Medium article
{
"type" : "now" ,
"date" : "2024-12-14T10:00:00.000Z" ,
"shortLink" : false ,
"tags" : [],
"posts" : [
{
"integration" : { "id" : "your-medium-id" },
"value" : [
{
"content" : "# Introduction \n\n This is my article in markdown..." ,
"image" : []
}
],
"settings" : {
"__type" : "medium" ,
"title" : "My Amazing Article" ,
"subtitle" : "A deep dive into something interesting" ,
"tags" : [
{ "value" : "programming" , "label" : "Programming" }
]
}
}
]
}
Create a Google My Business offer
{
"type" : "schedule" ,
"date" : "2024-12-14T10:00:00.000Z" ,
"shortLink" : false ,
"tags" : [],
"posts" : [
{
"integration" : { "id" : "your-gmb-id" },
"value" : [
{
"content" : "🎉 Holiday Sale! 20% off everything!" ,
"image" : []
}
],
"settings" : {
"__type" : "gmb" ,
"topicType" : "OFFER" ,
"callToActionType" : "GET_OFFER" ,
"callToActionUrl" : "https://example.com/sale" ,
"offerCouponCode" : "HOLIDAY20"
}
}
]
}
__typexwho_can_reply_post,communitylinkedinpost_as_images_carousellinkedin-pagepost_as_images_carouselfacebookurl(optional)instagrampost_type,collaboratorsinstagram-standalonepost_type,collaboratorswarpcastsubreddit[](channels)