# List user comments

> List user comments for a given resource

`GET https://api.light.inc/v1/user-comments`

## Note

resourceId is required. Comments come back newest first by default; createdAt is the only sortable field.

## Authorization

- API key
- Bearer token

See https://light.inc/docs/getting-started/authentication.

## Query parameters

- `resourceId` (string, uuid) — ID of the resource this comment is attached to (e.g. vendor, customer, etc.).
- `sort` (string) — Sort string in the format field:direction . To provide multiple sort fields, separate them with commas. Available directions: asc , desc . Available fields: createdAt .
- `filter` (string) — Filter string in the format field:operator:value . To provide multiple filters, separate them with commas. Available operators: eq , ne , in , not_in , gt , gte , lt , lte . - For in and not_in operators, provide multiple values separated by the pipe character ( ). Available fields: createdBy , createdAt .
- `limit` (integer, int32) — Maximum number of items to return. Default is 50, maximum is 200.
- `offset` (integer, int64) — Number of items to skip before starting to collect the result set. Deprecated, use 'cursor' instead.
- `cursor` (string) — The cursor position to start returning results from. To opt-in into cursor-based pagination, provide 0 for the initial request. For subsequent requests, use nextCursor and prevCursor from the previous response to navigate. Cursor values are opaque and should not be constructed manually.


## Response


```json
{
  "records": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "content": "string",
      "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdAt": "2026-01-15T09:30:00Z",
      "updatedAt": "2026-01-15T09:30:00Z"
    }
  ],
  "hasMore": true,
  "total": 100000,
  "nextCursor": "string",
  "prevCursor": "string"
}
```

Values above are generated from the schema: the shapes and types are real, the values are placeholders.

## Code

```bash
curl -X GET "https://api.light.inc/v1/user-comments" \
  -H "Authorization: Basic YOUR_API_KEY"
```

---

Full page: https://light.inc/docs/api-reference/v1--user-comments/list-user-comments · Index: https://light.inc/docs/llms.txt
