Skip to main content
POST
Create a draft post

Authorizations

Authorization
string
header
required

An API key from Settings > API & MCP.

Headers

Idempotency-Key
string

Any unique string (e.g. a UUID). A retry with the same key and request returns the first answer (Idempotent-Replayed: true, ids only) instead of doing it twice. Kept 24 hours.

Maximum string length: 255

Query Parameters

workspace_id
string<uuid>

The workspace to act in. Optional when the key has a default or a lock, or you belong to one workspace.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
as_user
string<uuid>

API keys of owners and admins only (not OAuth apps): act as this member of the workspace (like View As). Every use is audited.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
content
string
required
Required string length: 1 - 3000
title
string
Maximum string length: 200
first_comment
string
Maximum string length: 1250
platform_variations
object

Other platforms' texts by platform id, e.g. { "instagram": { "text": "...", "hashtags": ["a"], "format": "feed" }, "twitter": { "thread": ["...", "..."] } }. On an update, null removes a platform.

Response

Created

object
string
required
Allowed value: "post"
id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
status
string
required
title
string | null
required
content_type
string | null
required
app_url
string
required