REST API
How to connect your HR or another system: syncing people and taking learning results back.
The REST API gives your HR system (or any other) access to Svitmo LMS: add, change and deactivate people, sync everyone in one request and take learning results back. Dynamic groups find new people on their own and give them their courses, just as when someone is added by hand.
Access key
An admin: Settings → API → Create a key. Give the key a name (for example, “HR system”) and copy it right away: Svitmo LMS shows the key only once and stores only its hash.
- A key acts for the organization with a training manager’s rights over learners. It doesn’t change admins, training managers or settings.
- Every change made through the API goes to the audit log with the key’s name.
- A key can be revoked at any time: systems that use it lose access right away. The list shows who created each key and when it was last used.
- Limit: 300 requests a minute per key.
Send the key in the header of every request:
Authorization: Bearer svk_...
API address: https://app.svitmo.com/api/v1/. The full description in OpenAPI format (for Postman and code generators): https://app.svitmo.com/api/v1/openapi.json.
People
A person is identified by external_id: their ID in your HR system, such as a personnel number. The department is sent by name and created if it doesn’t exist yet. The manager is sent as their external_id.
| Field | What it is |
|---|---|
email | work e-mail, required: the person signs in with it and gets the invitation and reminders |
full_name | name |
job_title | job title |
department | department name |
manager_external_id | the manager’s external_id |
start_date | first working day (2026-11-01): “newcomer” rules of dynamic groups count from it |
active | false deactivates the person |
Fields left out of a request stay as they are; null clears the department, manager or start date.
Add or change one person:
PUT /api/v1/people/T-001
{"email": "ivan@company.com", "full_name": "Ivan Petrenko", "department": "Sales",
"job_title": "Account manager", "manager_external_id": "T-010", "start_date": "2026-11-01"}
If nobody has this external_id yet, the person is created and invited (?send_invite=false skips the invitation). If they were already added by hand with the same e-mail, they simply get this external_id. The answer has result: created, updated or unchanged.
Deactivate: DELETE /api/v1/people/T-001. The person can no longer sign in; their history and certificates are kept. To bring them back: PUT with "active": true.
Read: GET /api/v1/people (filters external_id, email, status = active / invited / deactivated; pages with limit and offset), GET /api/v1/people/T-001.
Syncing everyone at once
The simplest connection: once a day the HR system sends the full list of employees.
POST /api/v1/people/sync
{"people": [
{"external_id": "T-001", "email": "ivan@company.com", "full_name": "Ivan Petrenko", "department": "Sales"},
{"external_id": "T-002", "email": "olga@company.com", "full_name": "Olga Koval", "department": "Warehouse", "manager_external_id": "T-001"}
],
"deactivate_missing": true,
"send_invites": true}
- New people are created, changed ones updated.
- With
"deactivate_missing": trueeveryone who has anexternal_idbut isn’t in the list is deactivated: people who left lose access on their own. - Up to 5000 people per request.
- Rows with an error are skipped and the rest are applied. The answer:
{"created": 1, "updated": 1, "unchanged": 0, "deactivated": 0,
"errors": [{"external_id": "T-007", "error": "email_taken"}]}
| Error | What it means |
|---|---|
email_taken | this e-mail belongs to another organization |
email_in_use | your organization already has someone with this e-mail and a different external_id |
protected_role | an admin or training manager: the API doesn’t change them |
manager_not_found | nobody has this manager_external_id |
manager_loop | the manager would end up reporting to their own report |
duplicate | the same external_id or e-mail twice in one request |
Learning results
GET /api/v1/progress — a row per person and course: status (not_started, in_progress, completed, overdue), how many parts are done, the dates of assignment, deadline and completion, the certificate code and whether it’s still valid. Filters: course_id, external_id, status; pages with limit and offset.
Also: GET /api/v1/courses (the organization’s courses) and GET /api/v1/departments (departments and how many active people they have).
Response codes
200/204— fine;401— no key, a wrong one or a revoked one;403— the organization’s access is suspended, or a protected role;404— nobody has thisexternal_id;409,422— a problem with the data (the text says which);429— too many requests, try again in a minute.