Docs
Developers

Get started with the API

Create an API key and make your first request to the Enlytning API.

The Enlytning API lets your other systems read your organisation’s people and training records, such as members, groups, materials, assignments, attempts, and reports. It can also assign and unassign materials and learning paths.

Plan availability

The API is available on Free Trial, Professional, and Expert plans.

Create an API key

Admins and Owners create keys from Settings > API Keys.

Open API Keys

Go to Settings > API Keys and select Create API key.

Name the key and choose its access

Give the key a name that says what uses it, such as HR sync. Then choose read access for each resource the integration needs. See Authenticate and choose scopes for what each scope allows.

Choose when it expires

Choose when the key expires. A key that expires limits the damage if it leaks.

Copy the key

Select Create key, then copy the key and store it in your secret manager. Enlytning shows the key only once.

Make your first request

Send the key as a bearer token. The /organisation endpoint needs no scope, so use it to check the key works:

curl https://app.enlytning.com/api/v1/organisation \
  -H "Authorization: Bearer $ENLYTNING_API_KEY"

The response names your organisation and the key:

{
  "id": "3f7b1d9e-5a2c-4e8b-a6d4-0c9e7f3b1a58",
  "name": "Acme Ltd",
  "slug": "acme",
  "api_key": {
    "id": "8c2e4a61-0d3f-4b9a-9e7c-5f1a2b3c4d5e",
    "name": "HR sync",
    "scopes": ["members:read"]
  }
}

List your members

With members:read, list the organisation’s active members:

curl "https://app.enlytning.com/api/v1/members?limit=2" \
  -H "Authorization: Bearer $ENLYTNING_API_KEY"

List endpoints return a page of records in data and a next_cursor for the next page. See Paginate and sync records.

Next steps

On this page