Skip to main content

Konstantly API

Welcome to the Konstantly API documentation. This API allows you to programmatically manage users, courses, groups, certificates, and more in your Konstantly learning management platform.
This is a beta version of the API documentation. Report any errors to support@konstantly.com

Base URL

All API requests should be made to:
Replace YOURSITE with your Konstantly subdomain. If your site uses a custom domain (for example learn.example.com), use https://learn.example.com/api/v1.

Authentication

The Konstantly API uses API keys to authenticate requests. Include your API key in the X-API-KEY header:
To get your API key:
  1. Go to your Konstantly site
  2. Navigate to Settings > API
  3. Copy your API key
A request with a missing or invalid key returns 401:
Keep your API keys secure. Never share them in publicly accessible areas such as GitHub or client-side code.

Request Format

The API accepts JSON-encoded request bodies and returns JSON-encoded responses. Include these headers:

Pagination

Many endpoints return paginated results. By default, endpoints return 20 items per page. Use the offset and limit parameters to paginate:

User IDs

Endpoints that take a user ID, in the path or in a userId or users body field, accept either the Konstantly user ID (the numeric id returned by Get Users) or your own user ID (the id you set when creating the user). The value is resolved like this:
  1. A plain number (digits only, no leading zero, at most 2147483647) is the Konstantly user ID when a user with that ID exists.
  2. Any other value, or a number with no such user, is your own user ID: an exact match first, then a case-insensitive match when exactly one user matches.
For this reason, Create User refuses an id that reads as a Konstantly user ID.

Errors

Errors use standard HTTP status codes and a JSON body with the status and a message:

Support

If you have questions or need help with API integration, contact us at support@konstantly.com.