Headless LMS

Get a short-lived presigned URL to serve an asset to the student

POST
/api/learn/assets/{id}/download-url

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/learn/assets/string/download-url" \  -H "Content-Type: application/json" \  -d '{}'
{  "url": "string",  "asset": {    "id": "string",    "key": "string",    "kind": "video",    "filename": "string",    "contentType": "string",    "size": -9007199254740991,    "status": "pending",    "uploadedBy": "string",    "createdAt": "string"  }}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}