# Retrieve lesson content

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

Operation ID: `lessons.content.get` · API v3

Returns the lesson body in Editor.js block format, along with its video and embed settings. For connected lessons, the content comes from the source lesson and `inherited` is `true`.

The response includes an `ETag` representing the current revision of the lesson. Send this value in the `If-Match` header when changing the lesson to avoid overwriting a newer version.

Required permissions: `lessons.read`.

## Parameters

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

## Responses

### 200

Returns the lesson content.

Body: `data`: LessonContent.

Fields of LessonContent:

| Field | Type | Required | Description |
|---|---|---|---|
| `body` | object | yes |  |
| `embed` | object or null | yes |  |
| `format` | string, one of `standard`, `quiz`, `live_youtube`, `live_vimeo` | yes |  |
| `lesson_id` | string | yes | Public ID, with the les_ prefix. |
| `live` | object or null | yes |  |
| `object` | string, one of `lesson_content` | yes |  |
| `revision` | string | yes |  |
| `video` | object or null | 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
