Catalog
Only a published lesson marked as a free preview, on an active course, answers here. The URL expires on its own: video previews live for about an hour (seeking re-requests the source), file previews for a few minutes. Request a fresh URL when playback hits a 403.
publishableKeyX-Sorai-Key<token>A store's publishable key, spk_….
slug*stringlessonId*stringuuidA short-lived media URL.
application/jsonurl*stringuriexpires_at*stringdate-timecurl -X GET 'https://api.sorai.ai/v1/public/products/string/lessons/497f6eca-6276-4993-bfeb-53cbbbba6f08/media'{ "url": "http://example.com", "expires_at": "2019-08-24T14:15:22Z"}