# List questions for a product

`GET https://api.cademi.com.br/api/v3/products/{product_id}/questions`

Operation ID: `products.questions.list` · API v3

Returns the questions users have asked in the lessons of a product. Results are paginated with a cursor and can be filtered by lesson, user, answered state, and search text.

The `has_draft` field is included only when the credentials also have the `questions.read_private` permission.

Required permissions: `questions.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `limit` | query | integer | no |  |
| `cursor` | query | string | no |  |
| `sort` | query | string, one of `id`, `-id` | no |  |
| `lesson_id` | query | string | no |  |
| `user_id` | query | string | no |  |
| `answered` | query | string, one of `true`, `false` | no |  |
| `q` | query | string | no |  |

## Responses

### 200

Returns a page of questions.

Body: `data`: array of Question.

Fields of Question:

| Field | Type | Required | Description |
|---|---|---|---|
| `body` | object | yes |  |
| `created_at` | string (date-time) | yes |  |
| `has_draft` | boolean | no |  |
| `id` | string | yes |  |
| `lesson_id` | string | yes |  |
| `object` | string, one of `question` | yes |  |
| `pinned` | boolean | yes |  |
| `product_id` | string | yes |  |
| `replies_count` | integer | yes |  |
| `revision` | string | yes |  |
| `status` | string, one of `open`, `answered` | yes |  |
| `updated_at` | string (date-time) | yes |  |
| `user` | object | yes |  |

### 400

The cursor is invalid or the request contains an unsupported query parameter.

Body: Error.

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The product was not found or is not accessible with the current credentials.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
