Library
Authenticated by the __Host-sorai_library cookie. Published lessons
only, in order, with the caller's resume position and completion state
merged in. Text lessons carry their content here; video and file
lessons hand out bytes through the lesson media endpoint.
productId*stringuuidThe course.
application/jsonA purchased course as its owner sees it, progress included.
product_id*stringuuidproduct_name*stringentitlement_id*stringuuidsections*array<>curl -X GET 'https://api.sorai.ai/v1/public/library/courses/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1", "product_name": "string", "entitlement_id": "5d403832-720f-4924-9542-f160bdee9e96", "sections": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "title": "string", "lessons": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "section_id": "f5e5c4dc-7d2e-40f1-a895-9bb2f8703fd8", "kind": "video", "source": "file", "title": "string", "body": "string", "embed_url": "http://example.com", "duration_seconds": 0, "preview": true, "available": true, "filename": "string", "position_seconds": 0, "completed_at": "2019-08-24T14:15:22Z" } ] } ]}