Create a post
Creates a draft, scheduled post, immediate post, or queued post. This endpoint requires a read-write API key. Provide exactly one creation mode: publishNow, scheduledFor, isDraft, or queuedFromProfile (optionally with queueId), which claims the next free slot in that profile's queue and returns it as scheduledFor. The accounts in platforms can belong to different profiles; an API key limited to selected profiles must have access to the profile of every account.
Request
- Base URL: https://api.postzen.dev
- URL: https://api.postzen.dev/v1/posts
- Auth: HTTP bearer
Headers
Optional idempotency key. Repeating a value that already created a post returns 200 with the original post under existingPost (not post) and the message Post already exists for this request id, instead of creating a new one.
Request body
Response
Idempotency replay: the x-request-id already created a post, so that post is returned under existingPost rather than post, and no new post is created.
Changes
No recorded changes to this operation across all 1 revision of this API.