Skip to main content
GET
/
posts
curl -X GET https://app.trypost.it/api/posts \
  -H "Authorization: Bearer tp_your_api_key"
{
  "data": [
    {
      "id": "9f1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
      "status": "scheduled",
      "synced": true,
      "scheduled_at": "2025-01-15 10:00:00",
      "published_at": null,
      "platforms": [
        {
          "id": "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d",
          "platform": "linkedin",
          "content": "Excited to announce our new feature!",
          "content_type": "linkedin_post",
          "status": "pending",
          "enabled": true,
          "social_account": {
            "id": "b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e",
            "platform": "linkedin",
            "display_name": "John Doe",
            "username": "johndoe",
            "is_active": true,
            "status": "connected"
          }
        }
      ],
      "labels": [],
      "created_at": "2025-01-14 09:00:00",
      "updated_at": "2025-01-14 09:00:00"
    }
  ],
  "links": { "first": "...", "last": "...", "prev": null, "next": null },
  "meta": { "current_page": 1, "last_page": 1, "per_page": 15, "total": 1 }
}

Request

page
integer
The page number for pagination. Defaults to 1.

Response

Returns a paginated list of posts with their platforms, labels, and scheduling information.
data
array
curl -X GET https://app.trypost.it/api/posts \
  -H "Authorization: Bearer tp_your_api_key"
{
  "data": [
    {
      "id": "9f1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
      "status": "scheduled",
      "synced": true,
      "scheduled_at": "2025-01-15 10:00:00",
      "published_at": null,
      "platforms": [
        {
          "id": "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d",
          "platform": "linkedin",
          "content": "Excited to announce our new feature!",
          "content_type": "linkedin_post",
          "status": "pending",
          "enabled": true,
          "social_account": {
            "id": "b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e",
            "platform": "linkedin",
            "display_name": "John Doe",
            "username": "johndoe",
            "is_active": true,
            "status": "connected"
          }
        }
      ],
      "labels": [],
      "created_at": "2025-01-14 09:00:00",
      "updated_at": "2025-01-14 09:00:00"
    }
  ],
  "links": { "first": "...", "last": "...", "prev": null, "next": null },
  "meta": { "current_page": 1, "last_page": 1, "per_page": 15, "total": 1 }
}