GET
/
courses
curl --request GET \
--url 'https://YOURSITE.konstant.ly/openapi/v1/courses?offset=0' \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
    "courses": [
{
    "id": 123,
    "name": "Course name",
    "annotation": "Course annotation",
    "isDraft": false,
    "createdAt": 1507807711,
    "updatedAt": 1507808372,
    "publishedAt": 1508225229,
    "image": {
    "id": 1234,
    "original": "http://example.com/images/original/1234.jpg",
    "mini": "http://example.com/images/mini/1234.jpg",
    "small": "http://example.com/images/small/1234.jpg"
}
}
    ],
    "totalCount": 1
}

Retrieve a paginated list of all courses on your platform.

Request Headers

X-API-KEY
string
required

API Key. Go to your Konstantly site > Settings > API and copy the value from there.

Query Parameters

offset
integer

Entry number to start listing from. Use this for pagination.

Example: 20 to get the second page of results

Response

courses
array
required

Array of course objects

totalCount
integer
required

The total number of courses

curl --request GET \
--url 'https://YOURSITE.konstant.ly/openapi/v1/courses?offset=0' \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
    "courses": [
{
    "id": 123,
    "name": "Course name",
    "annotation": "Course annotation",
    "isDraft": false,
    "createdAt": 1507807711,
    "updatedAt": 1507808372,
    "publishedAt": 1508225229,
    "image": {
    "id": 1234,
    "original": "http://example.com/images/original/1234.jpg",
    "mini": "http://example.com/images/mini/1234.jpg",
    "small": "http://example.com/images/small/1234.jpg"
}
}
    ],
    "totalCount": 1
}