1

Generate an API key

Open the Developer API page, enter a descriptive key name, and select Generate key.Copy the key immediately. TrainerTwin only displays the full value once.
2

Store the key on your server

Save the key in your platform’s secret manager or server environment.
Do not put this value in frontend environment variables, source control, logs, or screenshots.
3

List your learners

Send the key in the x-api-key header.
A successful response returns organization learners, pending invitations, and pagination metadata.
4

Assign a published scenario

Use a learner ID returned by the users endpoint and a published scenario slug from your TrainerTwin dashboard.

Next steps

Authentication

Understand scopes, expiration, and revocation.

Assignments guide

Learn assignment behavior and email delivery semantics.