Skip to main content

Packages API

Lists packages with their courses. An organization client sees packages owned by its organization; a group client sees only packages linked to its group.

List packages​

GET /api/v1/packages

Required scope: training.read. See Authentication to obtain an access token.

curl --request GET \
--url "https://courses.e-learningcourses.com/api/v1/packages?page=1&pageSize=1000&includeArchived=false" \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Accept: application/json"

Query parameters​

ParameterTypeDefaultDescription
pageinteger1Page number, starting at 1.
pageSizeinteger1000Packages per page, from 1 through 5000.
includeArchivedbooleanfalseSet to true to include archived packages.

Response​

{
"data": [
{
"packageId": "46647b28-2785-4435-9fa9-715e8c461902",
"name": "Supplier Compliance",
"type": "standard",
"archived": false,
"courses": [
{
"courseId": "38f595b7-2ff4-4da6-bf24-91316399ec9a",
"name": "Supplier Code of Conduct"
}
]
}
],
"pagination": {
"page": 1,
"pageSize": 1000,
"totalRecords": 1,
"totalPages": 1
}
}
FieldTypeDescription
packageIdUUIDPackage identifier.
namestringPackage name.
typestringstandard or versioned. A versioned package contains successive versions of a course, so a learner may have training records for more than one of its courses.
archivedbooleanWhether the package is archived.
coursesarrayCourses currently linked to the package. May be empty.
courses[].courseIdUUIDCourse identifier. Matches courseId in training records and certificates.
courses[].namestringCourse name.

Packages are ordered by name, then packageId. The pagination object counts packages after applying includeArchived; it does not count the courses inside them. An empty result has data: [] and totalPages: 0.

Errors​

Invalid paging returns 400 in Problem Details format. A missing or expired token returns 401; insufficient scope or a client that has lost access returns 403. The shared API limit can return 429. See Authentication for rate limits and retry guidance.

OpenAPI​

https://courses.e-learningcourses.com/api/v1/openapi.json