PostifyPostify Docs

List posts

Lists the organization's posts, newest first, with cursor pagination. Each post carries its per-channel variants and latest delivery outcomes.

GET
/v1/posts

Lists the organization's posts, newest first, with cursor pagination. Each post carries its per-channel variants and latest delivery outcomes.

Authorization

AuthorizationBearer <token>

Organization API key as a Bearer token (postify_live_…).

In: header

Query Parameters

limit?integer

Page size (1–100).

Range1 <= value <= 100
Default25
after?string

Opaque cursor from a previous page's next_cursor.

status?string

Filter by lifecycle state.

Value in

  • "draft"
  • "scheduled"
  • "publishing"
  • "published"
  • "failed"
  • "needs_approval"

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/posts"
{  "data": [    {      "id": "string",      "status": "draft",      "type": "single",      "title": "string",      "body": "string",      "scheduled_at": "2019-08-24T14:15:22Z",      "published_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "variants": [        {          "id": "string",          "channel_id": "string",          "body": "string",          "media": [            {              "url": "http://example.com",              "type": "image",              "alt": "string"            }          ],          "instagram_trial_reel": "manual",          "settings": {            "property1": "string",            "property2": "string"          }        }      ],      "deliveries": [        {          "channel_id": "string",          "stage": "queued",          "external_id": "string",          "error": "string"        }      ]    }  ],  "has_more": true,  "next_cursor": "string"}

Complete a media upload POST

Finalizes an uploaded asset after the PUT succeeds: checks the stored object's size and type against your plan and the type you declared, probes it, extracts a poster frame for videos, and marks it `ready`. An image is `ready` in the response. A video or audio file is probed after the response, which can take a few minutes: the response then carries the asset with `status` `pending`, and it turns `ready`, or `failed` with a `failure_reason`, on its own. Poll by calling this endpoint again (it is idempotent and returns the current asset) or with GET /v1/media, and attach the asset to a post only once it is `ready`: scheduling or publishing a post that holds a `failed` or still-processing file answers `validation_failed`, so completing a video and scheduling it at once can be refused until processing ends. A file over your plan's limit, or stored as a different type than you declared, is refused in the response itself (`validation_failed`) and the asset is `failed`. If the file is not in storage yet, answers 409 `resource_conflict` and leaves the asset `pending`: PUT it to `upload_url`, then complete again. Safe to retry — completing an asset that is already ready or failed returns it as it is, and one still processing returns it `pending` (a process restart during processing can restart the job, so do not rely on a retry to run it only once). A ready asset serves the bytes that were checked: a body PUT to `upload_url` after completion does not change it. Returns 404 if the upload was never completed within 24 hours and has been swept.

Create a post POST

Creates a post with one variant per target channel. Exactly one mode is required: `draft: true` (save only), `scheduled_at` (future publish; a time less than 60 seconds ahead is sent by the next publish sweep, so it also requires the `posts:publish` scope), or `publish_now: true` (immediate — also requires the `posts:publish` scope). Send an `Idempotency-Key` header to make retries safe.