Retrieve lesson content

GET/products/{product_id}/lessons/{lesson_id}/content

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.

AuthorizationBearer <token>

Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.

In: header

Path Parameters

product_id*string
lesson_id*string

Header Parameters

X-Client-Request-Id?string

Optional client-generated identifier of the request, up to 64 characters from [A-Za-z0-9._-]. Echoed back in the response and recorded in the request log; it never replaces the server-generated X-Request-Id.

Lengthlength <= 64

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/products/string/lessons/string/content"
{  "data": {    "body": {      "blocks": [        {}      ],      "inherited": true    },    "embed": {      "url": "string"    },    "format": "standard",    "lesson_id": "string",    "live": {      "url": "string"    },    "object": "lesson_content",    "revision": "string",    "video": {      "provider": "string",      "url": "string"    }  }}