Human approval
A prompt that says 'always create a draft' is guidance, not a security boundary. PostLake lets the owner enforce approval on each OAuth agent. Once enabled, publish requests enter awaiting_approval at the API boundary and the same agent cannot approve them. Existing agents keep direct publishing until the owner turns the policy on.
Free tier. No card · one API for every network · full MCP access
draft: true for an ordinary personal draft.You want an agent to draft social posts, and a person to approve them, without a second approval product.
Same setup the docs quickstart uses. Do this once:
my-brand) and connect at least one account. Bluesky is the fastest first channel: no app review. Instagram/TikTok/Facebook need each platform's review before API posting.sk_live_…). It shows once; treat it like a password.The owner sets the rule once. The agent writes, PostLake saves a draft, and only the owner or an account-level workflow can send it.
# 1. Agent writes. Nothing goes live. Nothing is charged.
curl -X POST https://api.postlake.dev/v1/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: recap-draft-001" \
-d '{
"text": "Friday recap from the changelog",
"profile": "my-brand",
"scheduledAt": "2026-09-04T09:00:00",
"timezone": "Europe/London",
"draft": true
}'
# A guarded agent receives state "awaiting_approval" automatically.
# 2. After you read it: publish. Keeps the scheduled time unless you override.
curl -X POST https://api.postlake.dev/v1/posts/post_a1b2c3/publish \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
# MCP OAuth: turn on Require publishing approval under Agents. create_post
# then saves an approval request automatically, and the owner decides in PostLake.Tool-specific glue on top of the shared setup above:
GET /v1/posts?state=awaiting_approval or open Posts → Awaiting approval.publish_draft or POST /v1/posts/{id}/publish to approve itself. A failed approval attempt moves into normal failed-post handling rather than back into the queue.You get one Post with an overall state and a targets[] array. One entry per account. Always check each target; partial success is normal.
{
"id": "post_a1b2c3",
"state": "partial",
"targets": [
{ "platform": "bluesky", "state": "published", "url": "https://bsky.app/…" },
{ "platform": "linkedin", "state": "failed",
"error": { "type": "invalid_request", "message": "…", "retryable": false } }
]
}published: every target succeeded. partial: some published, some failed. failed: none published. processing: still going (async networks like TikTok).Idempotency-Key header on writes so a retry never double-posts.Same rules as the docs. Pick one addressing style:
"profile": "my-brand" posts to every account under that profile (the name on Channels)."platforms": ["bluesky", "linkedin"] narrows that set. It is a filter, not a selector: if you have two Pinterest boards, both match pinterest."accounts": ["acc_…"] for exact channels (copy an id on Channels, or GET /v1/social-accounts).profile? PostLake uses that profile. Multiple profiles and you omit it? You'll get an error that names them.See Publishing: where to post.
scheduledAt as UTC (trailing Z), or a naive local time plus timezone (IANA, e.g. Europe/London). Credits charge when it fires. Scheduling docs · scheduling guide.POST /v1/media, then pass the med_… id in media. Media docs.textOverrides (e.g. shorter text for X). Per-network options: platformOptions (Pinterest boardId, TikTok privacy, …). Live option lists: GET /v1/platforms/{platform}.POST /v1/posts/validate runs the same checks without publishing (free).Want zero wrapper code? Connect the hosted MCP server (https://api.postlake.dev/mcp) over OAuth. Same accounts and responses as this API path. Agents overview.
Turn on Require my approval for the agent under Agents. PostLake then saves every publish request from that OAuth connection as a draft, even if the agent omits draft: true, and prevents it from self-approving. Publish from PostLake after review.
Same job (fail-closed approval), different shape. Those are local-first apps. PostLake is a hosted API: the draft lives next to scheduling, analytics and MCP, so the agent does not need a second vendor for the gate.
Yes. Save it with scheduledAt. publish_draft keeps that time unless you send a new one, or clear it to publish immediately.
These guides stay short on purpose. Canonical behaviour lives here:
Also: Media · Errors · MCP · Analytics
All guides · Full docs · llms.txt · Markdown
Stuck? The docs are the source of truth, start at Publishing.
Open the dashboard →