Skip to main content
POST
Create a post

Authorizations

Authorization
string
header
required

A workspace API key (pst_live_…).

Headers

Idempotency-Key
string

Send the same key again to retry without doing it twice: the first answer comes back. Up to 255 characters, kept for 24 hours.

Maximum string length: 255

Body

content
null | string
required

The text, for every target without its own.

targets
null | object[]
required

Where it goes: one entry per account.

schedule
null | object
required

When it goes out. Missing: a draft.

mediaIds
null | string<uuid>[]

Ready media from the library, in order. At most 10.

version
null | integer<uint32>

PUT only: the version you read. A post changed since answers 409 instead of being overwritten. Missing: last write wins.

Response

201 - application/json

Created

id
string<uuid>
required
status
enum<string>
required
Available options:
draft,
scheduled,
publishing,
published,
partial,
failed
content
string
required
scheduledAt
null | string<date-time>
required
scheduledAtLocal
null | string
required

scheduledAt on the workspace's clock.

timeZone
string
required
publishedAt
null | string<date-time>
required
editable
boolean
required

Whether it can still be changed: not once published.

version
integer<uint32>
required

Send it back with PUT or retry to detect changes made since.

author
null | object
required
apiKey
null | object
required
targets
object[]
required
media
object[]
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required