# List commented posts

Returns commented posts, one page at a time.

```http
GET https://api.pozy.ai/v1/inbox/comments
```

- Area: Inbox / Comments
- Auth: Authorization: Bearer pz_live_...

## Query parameters

- `profileId` (string)
- `platform` (string): one of facebook, instagram, twitter, bluesky, threads, youtube, linkedin, reddit, tiktok, metaads
- `minComments` (integer)
- `since` (string (date-time))
- `sortBy` (string): one of date, comments
- `sortOrder` (string): one of asc, desc
- `limit` (integer)
- `cursor` (string)
- `accountId` (string)

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/inbox/comments?limit=50" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/inbox/comments?limit=50", {
  headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.get(
    "https://api.pozy.ai/v1/inbox/comments",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    params={
        "limit": 50,
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `data`, array of object
  - `id`, string
  - `platform`, string
  - `accountId`, string
  - `accountUsername`, string
  - `content`, string
  - `picture`, string: Can be null
  - `permalink`, string: Can be null
  - `createdTime`, string (date-time)
  - `commentCount`, integer
  - `likeCount`, integer
  - `cid`, string: Can be null
  - `subreddit`, string: Can be null
  - `isAd`, boolean
  - `adId`, string
  - `placement`, string: One of `facebook`, `instagram`
- `pagination`, object
  - `hasMore`, boolean
  - `nextCursor`, string: Can be null
- `meta`, object
  - `accountsQueried`, integer
  - `accountsFailed`, integer
  - `failedAccounts`, array of object
    - `accountId`, string
    - `accountUsername`, string: Can be null
    - `platform`, string
    - `error`, string
    - `code`, string: Can be null
    - `retryAfter`, integer: Can be null
  - `lastUpdated`, string (date-time)
  - `accountsSkipped`, array of object
    - `accountId`, string
    - `platform`, string

```json
{
  "data": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "platform": "instagram",
      "accountId": "696e0b682d0a31188e7a2ba9",
      "accountUsername": "acme",
      "content": "Hello from Pozy",
      "picture": "string",
      "permalink": "string",
      "createdTime": "2026-10-02T09:00:00.000Z",
      "commentCount": 42,
      "likeCount": 42,
      "cid": "60cc682239f4a5a15c99a784",
      "subreddit": "string",
      "isAd": true,
      "adId": "6f40fa2fb0a7e728dd1a73b7",
      "placement": "facebook"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "string"
  },
  "meta": {
    "accountsQueried": 42,
    "accountsFailed": 42,
    "failedAccounts": [
      {
        "accountId": "696e0b682d0a31188e7a2ba9",
        "accountUsername": "acme",
        "platform": "instagram",
        "error": "string",
        "code": "string",
        "retryAfter": 1
      }
    ],
    "lastUpdated": "2026-10-02T09:00:00.000Z",
    "accountsSkipped": [
      {
        "accountId": "696e0b682d0a31188e7a2ba9",
        "platform": "instagram"
      }
    ]
  }
}
```
