# Get post comments

Fetches post comments.

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

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

## Path parameters

- `postId` (string, required)

## Query parameters

- `accountId` (string, required)
- `subreddit` (string)
- `limit` (integer)
- `cursor` (string)
- `commentId` (string)

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/inbox/comments/6108a2cc742cb4e991051e0c?accountId=696e0b682d0a31188e7a2ba9&limit=25" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/inbox/comments/6108a2cc742cb4e991051e0c?accountId=696e0b682d0a31188e7a2ba9&limit=25", {
  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/6108a2cc742cb4e991051e0c",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    params={
        "accountId": "696e0b682d0a31188e7a2ba9",
        "limit": 25,
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `status`, string
- `comments`, array of object
  - `id`, string
  - `message`, string
  - `createdTime`, string (date-time)
  - `from`, object
    - `id`, string
    - `name`, string
    - `username`, string
    - `picture`, string: Can be null
    - `isOwner`, boolean
    - `verifiedType`, string: One of `blue`, `government`, `business`, `none`. Can be null
  - `likeCount`, integer
  - `replyCount`, integer
  - `platform`, string
  - `url`, string: Can be null
  - `replies`, array of object
  - `repliesHasMore`, boolean
  - `canReply`, boolean
  - `canDelete`, boolean
  - `canHide`, boolean
  - `canLike`, boolean
  - `isHidden`, boolean
  - `isLiked`, boolean
  - `likeUri`, string: Can be null
  - `cid`, string: Can be null
  - `parentId`, string: Can be null
  - `rootUri`, string: Can be null
  - `rootCid`, string: Can be null
- `post`, object
  - one of: Reddit post
    - `id`, string
    - `fullname`, string
    - `title`, string
    - `selftext`, string
    - `author`, string
    - `subreddit`, string
    - `permalink`, string
    - `url`, string
    - `score`, integer
    - `numComments`, integer
    - `createdUtc`, integer
    - `over18`, boolean
    - `stickied`, boolean
    - `flairText`, string: Can be null
    - `isGallery`, boolean
  - one of: Facebook or Instagram post
    - `id`, string, required
    - `permalink`, string (URL), required: Can be null
    - `text`, string, required: Can be null
    - `thumbnailUrl`, string (URL), required: Can be null
    - `mediaUrl`, string (URL), required: Can be null
    - `mediaType`, string, required: Can be null
    - `productType`, string, required: Can be null
    - `createdAt`, string, required: Can be null
- `comment`, object
- `pagination`, object
  - `hasMore`, boolean
  - `cursor`, string: Can be null
- `meta`, object
  - `platform`, string
  - `postId`, string
  - `accountId`, string
  - `subreddit`, string: Can be null
  - `postUrn`, string
  - `lastUpdated`, string (date-time)
  - `adComments`, object: Can be null
    - `adId`, string
    - `adCommentsUrl`, string

```json
{
  "status": "active",
  "comments": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "message": "Hello from Pozy",
      "createdTime": "2026-10-02T09:00:00.000Z",
      "from": {
        "id": "6bfebd43ddc270f6d2c56fc5",
        "name": "Acme",
        "username": "acme",
        "picture": "string",
        "isOwner": true,
        "verifiedType": "blue"
      },
      "likeCount": 42,
      "replyCount": 42,
      "platform": "instagram",
      "url": "https://pozy.ai/media/example-1.jpg",
      "replies": [
        {}
      ],
      "repliesHasMore": true,
      "canReply": true,
      "canDelete": true,
      "canHide": true,
      "canLike": true,
      "isHidden": true,
      "isLiked": true,
      "likeUri": "string",
      "cid": "60cc682239f4a5a15c99a784",
      "parentId": "6009d4193e17fdf7d162c048",
      "rootUri": "string",
      "rootCid": "683be26dab6414721254fc12"
    }
  ],
  "post": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "fullname": "Acme",
    "title": "Launch day",
    "selftext": "Hello from Pozy",
    "author": "string",
    "subreddit": "string",
    "permalink": "string",
    "url": "https://pozy.ai/media/example-1.jpg",
    "score": 1,
    "numComments": 1,
    "createdUtc": 1,
    "over18": true,
    "stickied": true,
    "flairText": "Hello from Pozy",
    "isGallery": true
  },
  "comment": {},
  "pagination": {
    "hasMore": true,
    "cursor": "string"
  },
  "meta": {
    "platform": "instagram",
    "postId": "6108a2cc742cb4e991051e0c",
    "accountId": "696e0b682d0a31188e7a2ba9",
    "subreddit": "string",
    "postUrn": "string",
    "lastUpdated": "2026-10-02T09:00:00.000Z",
    "adComments": {
      "adId": "6f40fa2fb0a7e728dd1a73b7",
      "adCommentsUrl": "https://pozy.ai/media/example-1.jpg"
    }
  }
}
```
