# Retrieve a lesson connection

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

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

Returns whether the lesson is connected to a source lesson and, if so, identifies the source lesson, its product, and its module. Lessons without a connection return `connected` set to `false`.

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 connection.

Body: `data`: LessonConnection.

Fields of LessonConnection:

| Field | Type | Required | Description |
|---|---|---|---|
| `connected` | boolean | yes |  |
| `connected_at` | string or null (date-time) | no |  |
| `object` | string, one of `lesson_connection` | yes |  |
| `source` | 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
