PostHero API

v1 Reference

GET/posts

List All Posts

List all posts across all your connected accounts. Use query parameters to filter by status, platform, or source. To list posts for a specific account, use the List Account Posts endpoint instead.

Query Parameters

NameTypeDescription
pagenumberPage number (default: 1)
limitnumberItems per page (default: 20, max: 100)
statusstringFilter by status: draft, scheduled, published
platformstringFilter by platform: linkedin, twitter, instagram, etc.
sourcestringFilter by source: ui, api

Response

200
{
  "success": true,
  "data": {
    "posts": [
      {
        "id": "post_abc123",
        "text": "My post content...",
        "status": "published",
        "source": "api",
        "platforms": [
          {
            "platform": "linkedin",
            "accountId": "abc123",
            "status": "published",
            "postId": "urn:li:share:123456"
          }
        ],
        "schedule": null,
        "publishedAt": "2025-03-15T14:00:00Z",
        "createdAt": "2025-03-10T10:00:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 45,
      "hasMore": true
    }
  }
}