Retrieve a Course
Testing
GET
/courses/{id}
version
: optionally inform a specific version by a mongo string id or the keyword latest
and latest published
(for latest published courses). When not informed, the published version is returned (if available)Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.aladia.io/v2/courses/?version=latest' \
--header 'apikey: '
Response Response Example
200 - Success
{
"id": "6655e194ab227ee398cbc122",
"owner": {
"id": "66542ff93a712c2dfba90931",
"type": "profile"
},
"title": "Svelte",
"description": "Svelte course description",
"categories": [],
"subCategories": [],
"spaceId": "2541860fe27847fa57ffb16f",
"chapters": [],
"certificateTemplate": {
"name": "Certificate of Completion",
"logo": "https://storage.googleapis.com/93f06186-0d7c-4bf0-9ed3-596a7d4aa7af/6759b5897374586ad113053d",
"brandColor": "#0000ff",
"accentColor": "#ff0000",
"signatureName": "John Doe",
"signatoryRole": "CEO",
"signatureFont": "Helvetica"
},
"requirements": [],
"objectives": [],
"skills": [],
"numberOf": {},
"type": "onDemand",
"status": "draft",
"version": {
"id": "c9b9a94e8b8f2dd723f3c90b",
"profileId": "3d52afbba3d6cb8ae08821ac",
"title": "Version_2024_09_19_12:32:06",
"version": "2031-10-20T14:46:19.332Z",
"description": "",
"status": "draft",
"course": {
"id": "c7add9798b1ec50be13ebcf0",
"revision": true
},
"chapters": [
{
"id": "3befc6baf522abcbae63e556",
"revision": true,
"lectures": [
{
"id": "d6c6dedab54898c2ea4f0417",
"revision": false
}
]
}
],
"createdAt": "2059-12-31T17:48:05.783Z",
"updatedAt": "2007-02-10T09:19:25.460Z"
},
"review": {
"totalReviews": 0,
"globalRating": 0,
"ratings": [
{
"star": 1,
"count": 0,
"percentage": 0
},
{
"star": 2,
"count": 0,
"percentage": 0
},
{
"star": 3,
"count": 0,
"percentage": 0
},
{
"star": 4,
"count": 0,
"percentage": 0
},
{
"star": 5,
"count": 0,
"percentage": 0
}
]
},
"completion": 0,
"role": "course-teacher",
"suspend": true,
"createdBy": "66542ff93a712c2dfba90931",
"updatedBy": "66542ff93a712c2dfba90931",
"createdAt": "2024-05-28T13:52:20.335Z",
"updatedAt": "2024-05-28T13:52:20.335Z"
}
Request
Path Params
id
stringย
required
Query Params
version
stringย
optional
The value is either
latest
or latest_published
(for latest published courses) or version id ( which is a valid mongoId)Example:
latest
Header Params
apikey
stringย
optional
Example:
{{apikey}}
Responses
Modified atย 2025-04-21 12:54:04