# List lesson attachments

`GET https://api.cademi.com.br/api/v3/products/{product_id}/lessons/{lesson_id}/attachments`

Operation ID: `lessons.attachments.list` · API v3

Returns the files and images attached to the lesson. Attachments are the file and image blocks of the lesson body, so they also appear in the lesson content.

Required permissions: `lessons.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `lesson_id` | path | string | yes |  |

## Responses

### 200

Returns the collection of lesson attachments.

Body: `data`: array of LessonAttachment.

Fields of LessonAttachment:

| Field | Type | Required | Description |
|---|---|---|---|
| `file_id` | string or null | yes | Public ID of the attached file, or null for legacy attachments that are not linked to a file. |
| `kind` | string, one of `file`, `image` | yes |  |
| `object` | string, one of `lesson_attachment` | yes |  |
| `position` | integer | yes | Index of the attachment block within the lesson body. |
| `title` | string | yes |  |
| `url` | string | yes |  |

### 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 lesson was not found in the product or is not accessible with the current credentials.

Body: Error.

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