Docs API reference

Files

Upload and manage images, video and documents.

Files are stored by the server under generated keys. Uploads are checked against an allow-list of content types, and SVG and HTML are refused on purpose. See Files.

5 endpoints · base path /api/v1

GET/api/v1/assets#

List files

AccessAdmin, or an API key with the read or write scope.

Lists up to 500 uploaded files, newest first.

Responses

200OK· list of AssetView
Example response
[
  {
    "contentType": "application/pdf",
    "createdAt": "2026-11-25T14:03:11Z",
    "fileName": "safety-guide.pdf",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "sha256": "e3b0c442…",
    "sizeBytes": 482113
  }
]

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.

Errors use RFC 9457 problem details.

curl -X GET "$LMS_URL/api/v1/assets" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/assets#

Upload a file

AccessAdmin, or an API key with the write scope.

Uploads one file as multipart/form-data under the field name file. The content type must be on the allow-list: PNG, JPEG, GIF, WebP, MP4, WebM, MP3, M4A, PDF, plain text, CSV, ZIP, and Word, Excel and PowerPoint documents. SVG and HTML are refused because they can carry script.

The stored name is sanitized and the storage key is generated by the server.

Request body multipart/form-data

Send the file as the form field file.

Responses

201Created· AssetView
Example response
{
  "contentType": "application/pdf",
  "createdAt": "2026-11-25T14:03:11Z",
  "fileName": "safety-guide.pdf",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "sha256": "e3b0c442…",
  "sizeBytes": 482113
}

Errors

StatusWhen
400The file is empty.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
415The content type isn't on the allow-list.

Errors use RFC 9457 problem details.

curl -X POST "$LMS_URL/api/v1/assets" \
  -H "X-API-Key: $LMS_KEY" \
  -F "file=@safety-guide.pdf"
GET/api/v1/assets/{id}#

Get a file's details

AccessAdmin, or an API key with the read or write scope.

Returns the file's name, type, size and SHA-256.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Responses

200OK· AssetView
Example response
{
  "contentType": "application/pdf",
  "createdAt": "2026-11-25T14:03:11Z",
  "fileName": "safety-guide.pdf",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "sha256": "e3b0c442…",
  "sizeBytes": 482113
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

ASSET_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/assets/$ASSET_ID" \
  -H "X-API-Key: $LMS_KEY"
DELETE/api/v1/assets/{id}#

Delete a file

AccessAdmin, or an API key with the write scope.

Deletes the file and its stored bytes.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Responses

204No Content

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409The file is still used by course content, a course cover, or a certificate design.

Errors use RFC 9457 problem details.

ASSET_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X DELETE "$LMS_URL/api/v1/assets/$ASSET_ID" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/assets/{id}/content#

Download a file

AccessAdmin, or an API key with the read or write scope.

Streams the file with its stored (allow-listed) content type, X-Content-Type-Options: nosniff and a download disposition.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Responses

200OK
Example response
"string"

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

ASSET_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/assets/$ASSET_ID/content" \
  -H "X-API-Key: $LMS_KEY"

Type to search guides and every endpoint.