# List comments on a post

### List comments on a post

`GET /api/v1/linkedin/posts/{postId}/comments`

Operation ID: `listLinkedinPostComments`

Top-level comments on a post, or replies to one comment when commentId is given.

**Path parameters**

- `postId` (string, required): Post id as returned by a post listing or search. An id copied from a post URL often does not resolve.

**Query parameters**

- `connectedAccountId` (string · uuid, required): Connected account to act as
- `commentId` (string, optional): Read replies to this comment instead of top-level comments.
- `sortBy` ("MOST_RECENT" | "MOST_RELEVANT", optional)
- `cursor` (string, optional)
- `limit` (integer, optional)

**200**: Comments and an optional cursor.

- `comments` (object[], required)
- `cursor` (string | null, required)

**Errors**

- `400`: Bad request
- `401`: Unauthorized: missing or invalid API key
- `403`: Forbidden
- `404`: Not found
- `422`: Invalid request payload
