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.
https://api.postdaily.app/v1https://mcp.postdaily.app/mcphttps://mcp.postdaily.app/key/mcpcurl -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"
}'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.
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.
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.
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.
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.
Every HTTP route maps 1:1 to PostDaily's gateway.
/v1/workspaces200List every workspace covered by the API key, along with your role, timezone, channel count, plan usage and the key's access scope.
/v1/channels200List connected social channels with live health status, per-network character/media limits, posting timezone and next free queue slot.
workspaceIdnetworkincludeDisconnected/v1/posts200Search and filter posts by status, channel, date range or text query with cursor pagination (default 20, max 50 per page).
workspaceIdstatuses (comma-separated)channels (comma-separated)searchfromtolimitcursor/v1/posts201Create 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"
}/v1/posts/{postId}200Fetch one post in full: base text, per-channel overrides, media, schedule, approval status, delivery errors, live URLs and synced metrics.
/v1/posts/{postId}200Edit a draft post's text, title, media, channels, tags or per-channel options. Scheduled posts must be moved back to drafts first.
/v1/posts/{postId}200Remove a post from PostDaily (canceling scheduled jobs first). Already-published posts remain live on the social network.
/v1/posts/{postId}/schedule200Schedule, 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"
}/v1/posts/{postId}/cancel200Stop a scheduled post from publishing while keeping its record as canceled.
/v1/posts/{postId}/retry200Retry failed channel deliveries on a post once the underlying issue or reconnect is resolved.
/v1/posts/{postId}/comments200Read 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.
channelparentCommentIdcursor/v1/posts/{postId}/replies200Post 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
}/v1/media/imports201Import 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"
}/v1/media/uploads201Start 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
}/v1/media/uploads/{mediaId}/complete200Finalize a direct upload after PUT completes; verifies byte size and MIME type and returns the ready `mediaId`.
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.
| Tool | Category | Scope | Purpose |
|---|---|---|---|
list_workspaces readOnly | Workspaces & Channels | posts:read | Workspaces this connection covers, role, timezone, plan usage and access scope. |
list_channels readOnly | Workspaces & Channels | posts:read | Connected channels, health status, exact limits, timezone and next free queue slot. |
get_channel_options readOnly | Workspaces & Channels | posts:read | Per-network JSON Schema options plus live account values (Pinterest boards, TikTok privacy, IG quota). |
validate_post readOnly | Posts & Scheduling | posts:read | Dry-run validation returning blocking errors, confirmable warnings, notices and per-network counts. |
create_post destructive, openWorld | Posts & Scheduling | posts:write / posts:publish | Create a draft, queued, scheduled or immediate post (with confirmPublish) across 1–25 channels. |
list_posts readOnly | Posts & Scheduling | posts:read | Filter posts by status, channel, search string and date range with cursor pagination. |
get_post readOnly | Posts & Scheduling | posts:read | Full post details, approval state, delivery errors, live URLs and synced metrics. |
update_post destructive, idempotent | Posts & Scheduling | posts:write | Merge updates into an existing draft without affecting other fields. |
schedule_post destructive, openWorld | Posts & Scheduling | posts:publish | Schedule, queue, reschedule, move back to draft or publish an existing draft. |
cancel_post destructive | Posts & Scheduling | posts:publish | Stop a scheduled post from publishing while retaining its record as canceled. |
delete_post destructive | Posts & Scheduling | posts:publish | Delete a post record from PostDaily (published posts stay live on the network). |
retry_post destructive, openWorld | Posts & Scheduling | posts:publish | Retry failed channel deliveries on a post once the cause is resolved. |
bulk_create_posts destructive, openWorld | Posts & Scheduling | posts:publish | Schedule or queue up to 50 posts in one call with per-item validation and results. |
list_comments readOnly, openWorld | Comments & Replies | posts:read | Read live comments or replies on Facebook Pages, Instagram, LinkedIn Pages and YouTube. |
reply_to_comment destructive, openWorld | Comments & Replies | posts:publish | Post a public comment reply on Facebook, Instagram or YouTube (requires confirmReply: true). |
import_media openWorld | Media Library | posts:write | Fetch an image, video or PDF from a public URL with SSRF protection. |
create_media_upload write | Media Library | posts:write | Generate a one-time signed PUT URL and curl command for local file uploads. |
complete_media_upload idempotent | Media Library | posts:write | Verify size and MIME type after upload and activate the mediaId. |
list_media readOnly | Media Library | posts:read | Search the media library and return a browser uploadUrl for chat-only AI clients. |
get_queue readOnly | Queues & Analytics | posts:read | Inspect upcoming queue slots (filled and free) and pause state per channel. |
get_best_times readOnly | Queues & Analytics | posts:read | Return best posting hours per channel from workspace engagement history. |
get_analytics readOnly | Queues & Analytics | posts:read | Totals, per-channel breakdown and top posts for 7d/30d/90d (unreported metrics return null, never 0). |
postdaily://guide/networksLive 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}/channelsStructured JSON representation returned by list_channels.
ui://postdaily/post-previewMCP App preview card rendered inside Claude, ChatGPT, VS Code and Goose showing per-channel text, media and limit counts.
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).
# 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"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.
| HTTP | Code | When it happens | How to handle |
|---|---|---|---|
| 400 | VALIDATION / BAD_REQUEST | Malformed JSON, invalid field value or a post violates a channel limit. | Read `error.message` and `error.details`; fix the payload before retrying. |
| 401 | UNAUTHORIZED | Missing Bearer header or invalid, expired or revoked API key. | Send `Authorization: Bearer pd_live_...` from Settings -> AI agents -> API key. |
| 402 | PLAN_LIMIT | Monthly scheduled posts, channel count or file size exceeds the workspace tier. | Check plan limits on /pricing or reduce batch size/file size. |
| 403 | FORBIDDEN | The 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`. |
| 404 | NOT_FOUND | Unknown endpoint path or post/media ID not found in the workspace. | Verify the path under `/v1` and resource ID. |
| 405 | METHOD_NOT_ALLOWED | HTTP verb is not supported for that `/v1` route. | Inspect the response `Allow` header. |
| 409 | NEEDS_CONFIRMATION / CHANNEL_NEEDS_RECONNECT / CONFLICT | Publish-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. |
| 429 | RATE_LIMITED | Per-IP, per-credential or per-connection rate window exceeded. | Back off exponentially and reuse the same `Idempotency-Key` on writes. |
| 500 | INTERNAL | Unexpected server failure. | Retry with the same `Idempotency-Key` so writes never duplicate. |
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.Skip boilerplate with a first-party connector.
- 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.
Related developer guides & tools
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.