Posttar API

Your first call

List the posts in your workspace, which is where every other call starts.

Listing posts is the natural first call: every other post endpoint needs an id, and this is where ids come from.

curl -H "Authorization: Bearer ptr_live_..." \
  "https://api.posttar.com/v1/posts?limit=2"

A real response, trimmed to two posts:

{
  "posts": [
    {
      "id": "8c64bee5-f756-47b7-a64a-01f5db597202",
      "status": "draft",
      "scheduledFor": null,
      "textContent": "Seu nicho pode estar amplo demais sem você perceber...",
      "projectId": "c85848ba-2881-4a2e-9bdd-841b26d07359",
      "contentFormat": "animated_audio",
      "theme": "Tres sinais de que o seu nicho esta amplo demais"
    }
  ],
  "next": "eyJjaGF2ZSI6IjIwMjYtMDktMTNUMDU6MTg6MDYuOTE4Njcz..."
}

Narrowing the list

Query parameterWhat it does
statusComma-separated: draft,scheduled,published,failed,idea
from and toISO dates, filtering by scheduled date
projectIdOne project, when the workspace has more than one
limitDefault 25, max 100
cursorThe next value from the previous response

With from or to the list is ordered by scheduled date, ascending. Without them it is ordered by creation, newest first. It is the same rule the app's calendar uses.