PostDaily logoPostDaily
DEVELOPER DOCS · REST v1 + MCP

One API and MCP contract for 10 social networks.

Draft, validate, schedule, upload media and reply to comments from cURL, TypeScript, Python, n8n or any MCP agent — backed by workspace-scoped Bearer keys, 24-hour Idempotency-Key replay and Free-plan access.

REST API v1
https://api.postdaily.app/v1
MCP (OAuth)
https://mcp.postdaily.app/mcp
MCP (API key)
https://mcp.postdaily.app/key/mcp
201 Created
curl -X POST https://api.postdaily.app/v1/posts \
  -H "Authorization: Bearer $POSTDAILY_API_KEY" \
  -H "Idempotency-Key: release-v2-4-0" \
  -H "Content-Type: application/json" \
  -d '{
    "channels": ["linkedin", "bluesky"],
    "text": "v2.4 is live — zero-downtime retries across all 10 networks.",
    "mode": "scheduled",
    "scheduledAt": "2026-12-08T14:00:00Z"
  }'
15 REST routes · 22 MCP tools · Free on every plan

Short answer: PostDaily exposes 15 JSON REST endpoints at https://api.postdaily.app/v1 (Bearer API keys) and 22 remote Streamable HTTP MCP tools at https://mcp.postdaily.app/mcp (OAuth or API key). Both enforce the exact same workspace scopes, validation rules, client approval locks, audit log and 24-hour idempotency replay — included free on every plan.

AUTHENTICATION & SCOPES

Least-privilege keys pinned to specific workspaces.

Create API keys under Settings → AI agents → API key and pass Authorization: Bearer pd_live_... on every REST request. Keys covering a single workspace need no workspaceId parameter; multi-workspace keys pass a UUID from GET /v1/workspaces.

posts:read · Read only

Inspect without side effects

List workspaces, connected channels, limits, posts, live comments, media library items, queue slots, best posting times and analytics. Never mutates account state.

posts:write · Drafts only

Draft & upload safely

Create and edit drafts, import media from public URLs or upload local images, videos and PDFs via signed PUT URLs. Cannot schedule, queue, reply or publish live.

posts:publish · Full access

Schedule, queue, retry & reply

Schedule, queue, cancel, retry, bulk-create up to 50 posts, and reply to comments. Immediate publish (mode: now) and comment replies still enforce explicit confirmation flags.

REST API v1 · 15 ENDPOINTS

Every HTTP route maps 1:1 to PostDaily's gateway.

GET/v1/workspaces200
posts:readtool: list_workspaces

List every workspace covered by the API key, along with your role, timezone, channel count, plan usage and the key's access scope.

GET/v1/channels200
posts:readtool: list_channels

List connected social channels with live health status, per-network character/media limits, posting timezone and next free queue slot.

Query params:workspaceIdnetworkincludeDisconnected
GET/v1/posts200
posts:readtool: list_posts

Search and filter posts by status, channel, date range or text query with cursor pagination (default 20, max 50 per page).

Query params:workspaceIdstatuses (comma-separated)channels (comma-separated)searchfromtolimitcursor
POST/v1/posts201
posts:write / posts:publishtool: create_post

Create a post across 1–25 channels as a draft (`posts:write`), or queue, schedule or publish immediately (`posts:publish`). Supports per-channel text/options, threads, first comments, media attachments and approval requests.

Send `Idempotency-Key` header for safe retries. Immediate publish (`mode: "now"`) requires `confirmPublish: true`.

View example JSON body
{
  "channels": ["linkedin", "bluesky"],
  "text": "PostDaily REST v1 ships 15 endpoints with idempotency keys.",
  "mode": "scheduled",
  "scheduledAt": "2026-12-08T14:00:00Z",
  "firstComment": "Docs: https://www.postdaily.app/docs"
}
GET/v1/posts/{postId}200
posts:readtool: get_post

Fetch one post in full: base text, per-channel overrides, media, schedule, approval status, delivery errors, live URLs and synced metrics.

PATCH/v1/posts/{postId}200
posts:writetool: update_post

Edit a draft post's text, title, media, channels, tags or per-channel options. Scheduled posts must be moved back to drafts first.

DELETE/v1/posts/{postId}200
posts:publishtool: delete_post

Remove a post from PostDaily (canceling scheduled jobs first). Already-published posts remain live on the social network.

POST/v1/posts/{postId}/schedule200
posts:publishtool: schedule_post

Schedule, queue, reschedule, move back to draft (`mode: "draft"`), or publish an existing draft immediately.

View example JSON body
{
  "mode": "scheduled",
  "scheduledAt": "2026-12-09T09:30",
  "timezone": "America/New_York"
}
POST/v1/posts/{postId}/cancel200
posts:publishtool: cancel_post

Stop a scheduled post from publishing while keeping its record as canceled.

POST/v1/posts/{postId}/retry200
posts:publishtool: retry_post

Retry failed channel deliveries on a post once the underlying issue or reconnect is resolved.

GET/v1/posts/{postId}/comments200
posts:readtool: list_comments

Read live comments (or thread replies) on a published Facebook Page, Instagram feed/Reel, LinkedIn Page or YouTube video post directly from the network without storing them.

Query params:channelparentCommentIdcursor
POST/v1/posts/{postId}/replies200
posts:publishtool: reply_to_comment

Post a public reply to one comment on Facebook Pages, Instagram or YouTube. Returns a preview unless `confirmReply: true` is sent; refused when workspace approval mode is required.

View example JSON body
{
  "commentId": "17890123456789012",
  "text": "Thanks! Here is the setup link: https://www.postdaily.app/docs",
  "confirmReply": true
}
POST/v1/media/imports201
posts:writetool: import_media

Import an image, video or PDF from a public http(s) URL server-side (with SSRF protection) and return a reusable `mediaId`.

View example JSON body
{
  "url": "https://example.com/assets/launch-card.png",
  "altText": "PostDaily composer showing multi-network previews"
}
POST/v1/media/uploads201
posts:writetool: create_media_upload

Start a direct local upload: returns a one-time signed PUT `uploadUrl`, required headers and `mediaId`.

View example JSON body
{
  "filename": "release-demo.mp4",
  "contentType": "video/mp4",
  "sizeBytes": 8421000
}
POST/v1/media/uploads/{mediaId}/complete200
posts:writetool: complete_media_upload

Finalize a direct upload after PUT completes; verifies byte size and MIME type and returns the ready `mediaId`.

REMOTE MCP SERVER · 22 TOOLS

Task-shaped tools for Claude, ChatGPT, Cursor & Codex.

Tools your connection's scope does not permit are hidden automatically from tools/list. Every tool returns structured JSON validated against its output schema plus a human-readable summary.

ToolCategoryScopePurpose
list_workspaces
readOnly
Workspaces & Channelsposts:readWorkspaces this connection covers, role, timezone, plan usage and access scope.
list_channels
readOnly
Workspaces & Channelsposts:readConnected channels, health status, exact limits, timezone and next free queue slot.
get_channel_options
readOnly
Workspaces & Channelsposts:readPer-network JSON Schema options plus live account values (Pinterest boards, TikTok privacy, IG quota).
validate_post
readOnly
Posts & Schedulingposts:readDry-run validation returning blocking errors, confirmable warnings, notices and per-network counts.
create_post
destructive, openWorld
Posts & Schedulingposts:write / posts:publishCreate a draft, queued, scheduled or immediate post (with confirmPublish) across 1–25 channels.
list_posts
readOnly
Posts & Schedulingposts:readFilter posts by status, channel, search string and date range with cursor pagination.
get_post
readOnly
Posts & Schedulingposts:readFull post details, approval state, delivery errors, live URLs and synced metrics.
update_post
destructive, idempotent
Posts & Schedulingposts:writeMerge updates into an existing draft without affecting other fields.
schedule_post
destructive, openWorld
Posts & Schedulingposts:publishSchedule, queue, reschedule, move back to draft or publish an existing draft.
cancel_post
destructive
Posts & Schedulingposts:publishStop a scheduled post from publishing while retaining its record as canceled.
delete_post
destructive
Posts & Schedulingposts:publishDelete a post record from PostDaily (published posts stay live on the network).
retry_post
destructive, openWorld
Posts & Schedulingposts:publishRetry failed channel deliveries on a post once the cause is resolved.
bulk_create_posts
destructive, openWorld
Posts & Schedulingposts:publishSchedule or queue up to 50 posts in one call with per-item validation and results.
list_comments
readOnly, openWorld
Comments & Repliesposts:readRead live comments or replies on Facebook Pages, Instagram, LinkedIn Pages and YouTube.
reply_to_comment
destructive, openWorld
Comments & Repliesposts:publishPost a public comment reply on Facebook, Instagram or YouTube (requires confirmReply: true).
import_media
openWorld
Media Libraryposts:writeFetch an image, video or PDF from a public URL with SSRF protection.
create_media_upload
write
Media Libraryposts:writeGenerate a one-time signed PUT URL and curl command for local file uploads.
complete_media_upload
idempotent
Media Libraryposts:writeVerify size and MIME type after upload and activate the mediaId.
list_media
readOnly
Media Libraryposts:readSearch the media library and return a browser uploadUrl for chat-only AI clients.
get_queue
readOnly
Queues & Analyticsposts:readInspect upcoming queue slots (filled and free) and pause state per channel.
get_best_times
readOnly
Queues & Analyticsposts:readReturn best posting hours per channel from workspace engagement history.
get_analytics
readOnly
Queues & Analyticsposts:readTotals, per-channel breakdown and top posts for 7d/30d/90d (unreported metrics return null, never 0).
postdaily://guide/networks

Live Markdown reference of every network's character limits, media caps, threads, first comments and required options.

postdaily://posts/{postId}

Structured JSON representation returned by get_post.

postdaily://workspaces/{workspaceId}/channels

Structured JSON representation returned by list_channels.

ui://postdaily/post-preview

MCP App preview card rendered inside Claude, ChatGPT, VS Code and Goose showing per-channel text, media and limit counts.

DIRECT MEDIA UPLOADS

Upload images, videos and PDFs without base64 bloat.

Pass a public URL to POST /v1/media/imports for remote files, or use the three-step signed PUT flow for local build artifacts and screen recordings. Files follow your workspace's plan limit (25 MB on Free, up to 500 MB on Agency).

Check per-network image & video specs
3-step signed upload flow (cURL)
# 1. Request a one-time signed PUT URL
curl -sX POST https://api.postdaily.app/v1/media/uploads \
  -H "Authorization: Bearer $POSTDAILY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filename":"demo.mp4","contentType":"video/mp4","sizeBytes":4200000}'

# 2. Upload the binary file directly to the returned uploadUrl
curl -X PUT "<uploadUrl>" \
  -H "Content-Type: video/mp4" \
  --data-binary @./demo.mp4

# 3. Complete and activate the mediaId, then attach it in POST /v1/posts
curl -sX POST https://api.postdaily.app/v1/media/uploads/<mediaId>/complete \
  -H "Authorization: Bearer $POSTDAILY_API_KEY"
ERRORS, IDEMPOTENCY & HONEST LIMITS

Predictable JSON error envelopes and built-in publish guards.

Every error returns { "error": { "code", "message", "hint", "details" } }. Workspaces in required approval mode hold API-scheduled posts locked for client sign-off automatically.

HTTPCodeWhen it happensHow to handle
400VALIDATION / BAD_REQUESTMalformed JSON, invalid field value or a post violates a channel limit.Read `error.message` and `error.details`; fix the payload before retrying.
401UNAUTHORIZEDMissing Bearer header or invalid, expired or revoked API key.Send `Authorization: Bearer pd_live_...` from Settings -> AI agents -> API key.
402PLAN_LIMITMonthly scheduled posts, channel count or file size exceeds the workspace tier.Check plan limits on /pricing or reduce batch size/file size.
403FORBIDDENThe API key's scope (`posts:read` or `posts:write`) or workspace list does not permit this action.Issue a key with the required scope or target an authorized `workspaceId`.
404NOT_FOUNDUnknown endpoint path or post/media ID not found in the workspace.Verify the path under `/v1` and resource ID.
405METHOD_NOT_ALLOWEDHTTP verb is not supported for that `/v1` route.Inspect the response `Allow` header.
409NEEDS_CONFIRMATION / CHANNEL_NEEDS_RECONNECT / CONFLICTPublish-now/reply/cross-workspace guard triggered, a channel token expired, or state changed.Show confirmation details to the user (or reconnect the channel) before resubmitting.
429RATE_LIMITEDPer-IP, per-credential or per-connection rate window exceeded.Back off exponentially and reuse the same `Idempotency-Key` on writes.
500INTERNALUnexpected server failure.Retry with the same `Idempotency-Key` so writes never duplicate.
What the API does not expose today: Outbound webhooks are not yet emitted (poll GET /v1/posts/{postId} for live delivery statuses and published URLs), and raw social network OAuth tokens are never returned to API keys or MCP clients.
DEVELOPER FAQS

Questions about the REST API & MCP server

Create a free API key
What is the difference between PostDaily's REST API and the MCP server?
Both hit the exact same agent gateway, validation rules, idempotency cache, audit log, and plan limits. Use the REST API at https://api.postdaily.app/v1 with a Bearer API key for scripts, CI pipelines, cron jobs, and n8n workflows; use the Streamable HTTP MCP server at https://mcp.postdaily.app/mcp (OAuth) or /key/mcp (API key) for AI apps like Claude, ChatGPT, Claude Code, Cursor, and Codex.
Are the REST API and MCP server included on the Free plan?
Yes. Neither the REST API nor the MCP server is gated behind an enterprise tier or billed as an add-on. They work on Free, Starter, Pro, and Agency within your plan's normal channel, post, and file-size limits, and never consume PostDaily AI assistant credits.
How do API key scopes and safety confirmations protect live accounts?
Every API key or OAuth grant is pinned to specific workspaces and one of three scopes: posts:read (Read only), posts:write (Drafts only — can create drafts and upload media, never schedule or publish), or posts:publish (Full access). Even with full access, immediate publishing (mode: now) requires confirmPublish: true, public comment replies require confirmReply: true, and multi-workspace keys enforce a 30-minute cross-workspace confirmation guard.
How does Idempotency-Key work on retries?
Send an Idempotency-Key HTTP header (or idempotencyKey JSON field, 8–200 characters) on any write request. Replaying the same key within 24 hours returns the original response instead of creating duplicate posts or double-sending replies.
How do I upload local images, videos, or PDFs through the REST API?
Use the three-step upload flow: POST /v1/media/uploads to obtain a one-time signed PUT URL and mediaId, PUT the raw binary file to that URL with the returned headers, then call POST /v1/media/uploads/{mediaId}/complete to verify size and MIME type before attaching mediaId to POST /v1/posts. For public files, POST /v1/media/imports fetches the URL server-side with SSRF protection.
Does PostDaily expose outbound webhooks or raw social network OAuth tokens?
No. PostDaily does not currently emit outbound webhooks (poll GET /v1/posts/{postId} to inspect per-channel publish status and live post URLs), and it never exposes underlying social network access tokens to API keys or AI agents.

Ship social posts from your own stack.

Create a free workspace, generate a scoped API key or connect via MCP, and publish across 10 networks in minutes.

Free plan to startCancel anytimeSet up in 5 minutes