Docs API reference

Customers, licenses & members

Organizations, seats, invitations and who belongs where.

A customer is an organization. A license gives it a product with a number of seats. Managers invite people, and a role decides which courses they get. See Selling & onboarding.

13 endpoints · base path /api/v1

POST/api/v1/invitations/accept#

Accept an invitation

AccessPublic. The invitation token is the credential.

The invitee opens the emailed link and posts the token here. The token is the credential, so this endpoint is public.

  • A new person must send givenName, familyName and a password of at least 10 characters.
  • If that email already has an account in the tenant, the password and names are ignored and the person simply joins.

On success the person is a member, their role's courses are enrolled, and a login token is returned. If seats are short the whole acceptance is rolled back and the invitation stays pending.

Request body application/json · AcceptRequest

FieldTypeNotes
familyNamestring—
givenNamestring—
passwordstring—
tokenrequiredstringmin length 1
Example request body
{
  "familyName": "Chen",
  "givenName": "Maya",
  "password": "a long, unique passphrase",
  "token": "tok_3q2…"
}

Responses

200OK· Accepted
Example response
{
  "organizationId": "44b78147-d73b-4117-ab62-4292d9ca20db",
  "token": {
    "accessToken": "eyJhbGciOiJIUzI1NiJ9…",
    "expiresInSeconds": 3600
  },
  "userId": "11f967df-4272-482f-ac0b-7bea76dd8093"
}

Errors

StatusWhen
400The request was malformed or failed validation. errors lists each field.
404The token isn't recognised.
409There are no free seats right now. The invitation stays pending.
410The invitation was already used, revoked or has expired.

Errors use RFC 9457 problem details.

curl -X POST "$LMS_URL/api/v1/invitations/accept" \
  -H "Content-Type: application/json" \
  -d '{
  "familyName": "Chen",
  "givenName": "Maya",
  "password": "a long, unique passphrase",
  "token": "tok_3q2…"
}'
GET/api/v1/organizations#

List customers

AccessAdmin, or an API key with the read or write scope.

Lists the tenant's organizations (the businesses or individuals who buy from you).

Responses

200OK· list of OrganizationView
Example response
[
  {
    "createdAt": "2026-11-25T14:03:11Z",
    "externalRef": "order-5001",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "kind": "BUSINESS",
    "name": "Acme Company",
    "status": "ACTIVE"
  }
]

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.

Errors use RFC 9457 problem details.

curl -X GET "$LMS_URL/api/v1/organizations" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/organizations#

Create a customer

AccessAdmin, or an API key with the write scope.

Creates an organization. kind is BUSINESS (default) or INDIVIDUAL (a person buying for themselves). externalRef is your customer id and is unique per tenant.

Request body application/json · CreateOrganization

FieldTypeNotes
externalRefstring—
kindstringmatches BUSINESS|INDIVIDUAL
namerequiredstringmin length 1
Example request body
{
  "externalRef": "order-5001",
  "kind": "BUSINESS",
  "name": "Acme Company"
}

Responses

201Created· OrganizationView
Example response
{
  "createdAt": "2026-11-25T14:03:11Z",
  "externalRef": "order-5001",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "kind": "BUSINESS",
  "name": "Acme Company",
  "status": "ACTIVE"
}

Errors

StatusWhen
400The request was malformed or failed validation. errors lists each field.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
409The externalRef is already used by another customer.

Errors use RFC 9457 problem details.

curl -X POST "$LMS_URL/api/v1/organizations" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "externalRef": "order-5001",
  "kind": "BUSINESS",
  "name": "Acme Company"
}'
GET/api/v1/organizations/{orgId}#

Get a customer

AccessAdmin, an API key with read or write, or a manager of that organization.

Returns the organization. A manager of the organization may read it; so may admins and keys.

Parameters

NameInTypeNotes
orgIdrequiredpathstring (uuid)The id from a previous response.

Responses

Example response
{
  "createdAt": "2026-11-25T14:03:11Z",
  "externalRef": "order-5001",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "kind": "BUSINESS",
  "name": "Acme Company",
  "status": "ACTIVE"
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

ORG_ID=b0cf4f3c-49ad-447c-a8f9-cc936c447f0c
curl -X GET "$LMS_URL/api/v1/organizations/$ORG_ID" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/organizations/{orgId}/enrollments#

A customer's learner progress

AccessAdmin, an API key with read or write, or a manager of that organization.

A page of enrollments for one organization, with progress. This is what a customer's manager sees.

Parameters

NameInTypeNotes
orgIdrequiredpathstring (uuid)The id from a previous response.
courseIdquerystring (uuid)—
userIdquerystring (uuid)—
statusquerystringmatches ACTIVE|COMPLETED|EXPIRED|WITHDRAWN
limitqueryinteger (int32)—
offsetqueryinteger (int32)—

Responses

200OK· Page
Example response
{
  "items": [
    {
      "completedAt": "2026-11-25T14:03:11Z",
      "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
      "courseSlug": "string",
      "courseTitle": "Workplace Safety Essentials",
      "dueAt": "2026-11-25T14:03:11Z",
      "enrolledAt": "2026-11-25T14:03:11Z",
      "expiresAt": "2026-11-25T14:03:11Z",
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "lastActivityAt": "2026-11-25T14:03:11Z",
      "learnerEmail": "maya.chen@example.com",
      "learnerExternalRef": "string",
      "learnerName": "Maya Chen",
      "organizationId": "44b78147-d73b-4117-ab62-4292d9ca20db",
      "progressPercent": 40,
      "source": "ROLE",
      "status": "ACTIVE",
      "userId": "11f967df-4272-482f-ac0b-7bea76dd8093"
    }
  ],
  "total": 1
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

ORG_ID=b0cf4f3c-49ad-447c-a8f9-cc936c447f0c
curl -X GET "$LMS_URL/api/v1/organizations/$ORG_ID/enrollments?courseId=ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561&userId=11f967df-4272-482f-ac0b-7bea76dd8093" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/organizations/{orgId}/invitations#

List invitations

AccessAdmin, an API key with read or write, or a manager of that organization.

Lists invitations with status PENDING, ACCEPTED, REVOKED or EXPIRED. The token is never shown; it exists only in the email.

Parameters

NameInTypeNotes
orgIdrequiredpathstring (uuid)The id from a previous response.

Responses

200OK· list of InvitationView
Example response
[
  {
    "access": "MEMBER",
    "createdAt": "2026-11-25T14:03:11Z",
    "email": "maya.chen@example.com",
    "expiresAt": "2026-11-25T14:03:11Z",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "roleId": "164531fc-5f9b-4b3c-a928-1cd38aeed2cc",
    "status": "ACTIVE"
  }
]

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

ORG_ID=b0cf4f3c-49ad-447c-a8f9-cc936c447f0c
curl -X GET "$LMS_URL/api/v1/organizations/$ORG_ID/invitations" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/organizations/{orgId}/invitations#

Invite someone

AccessAdmin, an API key with write, or a manager of that organization.

Emails an invitation. The inviter chooses the person's access and role up front. No account exists until they accept, so there are no placeholder users.

Invitations expire after 7 days. Only a hash of the token is stored.

Email delivery is a stand-in today: the message is logged (and written to the dev outbox if one is configured). Connect your provider behind the Mailer interface before going live.

Parameters

NameInTypeNotes
orgIdrequiredpathstring (uuid)The id from a previous response.

Request body application/json · InviteRequest

FieldTypeNotes
accessrequiredstringmatches MANAGER|MEMBER
emailrequiredstring (email)min length 1
roleIdstring (uuid)—
Example request body
{
  "email": "tom@acme.example",
  "access": "MEMBER",
  "roleId": "5c7d1a93-0e48-4b26-9f3a-2b8e6d4a1c07"
}

Responses

201Created· InvitationView
Example response
{
  "access": "MEMBER",
  "createdAt": "2026-11-25T14:03:11Z",
  "email": "maya.chen@example.com",
  "expiresAt": "2026-11-25T14:03:11Z",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "roleId": "164531fc-5f9b-4b3c-a928-1cd38aeed2cc",
  "status": "ACTIVE"
}

Errors

StatusWhen
400The request was malformed or failed validation. errors lists each field.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409They're already a member, or there is already a pending invitation for that email.

Errors use RFC 9457 problem details.

ORG_ID=b0cf4f3c-49ad-447c-a8f9-cc936c447f0c
curl -X POST "$LMS_URL/api/v1/organizations/$ORG_ID/invitations" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "tom@acme.example",
  "access": "MEMBER",
  "roleId": "5c7d1a93-0e48-4b26-9f3a-2b8e6d4a1c07"
}'
DELETE/api/v1/organizations/{orgId}/invitations/{id}#

Revoke an invitation

AccessAdmin, an API key with write, or a manager of that organization.

Cancels a pending invitation. The link stops working.

Parameters

NameInTypeNotes
orgIdrequiredpathstring (uuid)The id from a previous response.
idrequiredpathstring (uuid)The id from a previous response.

Responses

204No Content

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

ORG_ID=b0cf4f3c-49ad-447c-a8f9-cc936c447f0c
INVITATION_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X DELETE "$LMS_URL/api/v1/organizations/$ORG_ID/invitations/$INVITATION_ID" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/organizations/{orgId}/licenses#

List a customer's licenses

AccessAdmin, an API key with read or write, or a manager of that organization.

Lists licenses with their product, seats and seats in use, validity window and your externalRef (order id).

Parameters

NameInTypeNotes
orgIdrequiredpathstring (uuid)The id from a previous response.

Responses

200OK· list of LicenseView
Example response
[
  {
    "endsAt": "2026-11-25T14:03:11Z",
    "externalRef": "order-5001",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "productId": "96965701-7c48-40b1-a576-99888fcfb8cd",
    "productName": "Complete Pack",
    "seats": 25,
    "seatsUsed": 3,
    "startsAt": "2026-11-25T14:03:11Z",
    "status": "ACTIVE"
  }
]

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

ORG_ID=b0cf4f3c-49ad-447c-a8f9-cc936c447f0c
curl -X GET "$LMS_URL/api/v1/organizations/$ORG_ID/licenses" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/organizations/{orgId}/licenses#

Grant a license

AccessAdmin, or an API key with the write scope.

Gives the customer a product with a number of seats. This is the call your store makes after a purchase.

  • seats is yours to set: omit it for unlimited, or use any number. One seat is used per person with an active enrollment under the license.
  • It is idempotent on externalRef: replaying the same order returns the existing license with 200 instead of creating a second one (201 means it was created).
  • Members who were waiting on a purchase are enrolled straight away.

Managers can't grant licenses, or they could give themselves seats.

Parameters

NameInTypeNotes
orgIdrequiredpathstring (uuid)The id from a previous response.

Request body application/json · CreateLicense

FieldTypeNotes
endsAtstring (date-time)—
externalRefstring—
productIdrequiredstring (uuid)—
seatsinteger (int32)min 1
startsAtstring (date-time)—
Example request body
{
  "productId": "8e5a2d17-3f60-4b94-b1c8-6a0d9e4f2713",
  "seats": 25,
  "endsAt": "2027-11-25T00:00:00Z",
  "externalRef": "order-5001"
}

Responses

200OK· LicenseView
Example response
{
  "endsAt": "2026-11-25T14:03:11Z",
  "externalRef": "order-5001",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "productId": "96965701-7c48-40b1-a576-99888fcfb8cd",
  "productName": "Complete Pack",
  "seats": 25,
  "seatsUsed": 3,
  "startsAt": "2026-11-25T14:03:11Z",
  "status": "ACTIVE"
}

Errors

StatusWhen
400Unknown or archived product, or endsAt isn't after startsAt.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409That externalRef is already used by a different license.

Errors use RFC 9457 problem details.

ORG_ID=b0cf4f3c-49ad-447c-a8f9-cc936c447f0c
curl -X POST "$LMS_URL/api/v1/organizations/$ORG_ID/licenses" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "productId": "8e5a2d17-3f60-4b94-b1c8-6a0d9e4f2713",
  "seats": 25,
  "endsAt": "2027-11-25T00:00:00Z",
  "externalRef": "order-5001"
}'
GET/api/v1/organizations/{orgId}/members#

List a customer's people

AccessAdmin, an API key with read or write, or a manager of that organization.

Lists members with their access level (MANAGER or MEMBER), role and status.

Parameters

NameInTypeNotes
orgIdrequiredpathstring (uuid)The id from a previous response.

Responses

200OK· list of MemberView
Example response
[
  {
    "access": "MEMBER",
    "email": "maya.chen@example.com",
    "familyName": "Chen",
    "givenName": "Maya",
    "joinedAt": "2026-11-25T14:03:11Z",
    "roleId": "164531fc-5f9b-4b3c-a928-1cd38aeed2cc",
    "roleKey": "team_lead",
    "status": "ACTIVE",
    "userId": "11f967df-4272-482f-ac0b-7bea76dd8093"
  }
]

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

ORG_ID=b0cf4f3c-49ad-447c-a8f9-cc936c447f0c
curl -X GET "$LMS_URL/api/v1/organizations/$ORG_ID/members" \
  -H "X-API-Key: $LMS_KEY"
PUT/api/v1/organizations/{orgId}/members/{userId}#

Change a member's access or role

AccessAdmin, an API key with write, or a manager of that organization.

Sets the member's access and roleId (omit roleId for no role), then recalculates their enrollments from the new role. If the new role's courses can't all be given because seats are short, nothing changes and you get 409.

Parameters

NameInTypeNotes
orgIdrequiredpathstring (uuid)The id from a previous response.
userIdrequiredpathstring (uuid)The id from a previous response.

Request body application/json · UpdateMember

FieldTypeNotes
accessrequiredstringmatches MANAGER|MEMBER
roleIdstring (uuid)—
Example request body
{
  "access": "MEMBER",
  "roleId": "164531fc-5f9b-4b3c-a928-1cd38aeed2cc"
}

Responses

Example response
{
  "courseIdsWithoutSeat": [
    "1adbf417-2b63-42e7-ae43-d462a19ea16b"
  ],
  "enrolled": 1,
  "withdrawn": 1
}

Errors

StatusWhen
400The request was malformed or failed validation. errors lists each field.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409The change would leave the organization with no manager, or there aren't enough seats.

Errors use RFC 9457 problem details.

ORG_ID=b0cf4f3c-49ad-447c-a8f9-cc936c447f0c
USER_ID=11f967df-4272-482f-ac0b-7bea76dd8093
curl -X PUT "$LMS_URL/api/v1/organizations/$ORG_ID/members/$USER_ID" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "access": "MEMBER",
  "roleId": "164531fc-5f9b-4b3c-a928-1cd38aeed2cc"
}'
DELETE/api/v1/organizations/{orgId}/members/{userId}#

Remove a member

AccessAdmin, an API key with write, or a manager of that organization.

Marks the member as removed and withdraws the enrollments they got through this organization. Their account, history and certificates are kept.

Parameters

NameInTypeNotes
orgIdrequiredpathstring (uuid)The id from a previous response.
userIdrequiredpathstring (uuid)The id from a previous response.

Responses

Example response
{
  "courseIdsWithoutSeat": [
    "1adbf417-2b63-42e7-ae43-d462a19ea16b"
  ],
  "enrolled": 1,
  "withdrawn": 1
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409They are the organization's last manager.

Errors use RFC 9457 problem details.

ORG_ID=b0cf4f3c-49ad-447c-a8f9-cc936c447f0c
USER_ID=11f967df-4272-482f-ac0b-7bea76dd8093
curl -X DELETE "$LMS_URL/api/v1/organizations/$ORG_ID/members/$USER_ID" \
  -H "X-API-Key: $LMS_KEY"

Type to search guides and every endpoint.