Every /api/v1 request requires an API key generated by an organization owner or admin.

Send the key

Use the x-api-key header for every request.
TrainerTwin also accepts a bearer token for platforms that cannot configure a custom header.
Prefer x-api-key. Send only one authentication header per request.

Key behavior

The organization is derived from the key. Requests cannot supply or override an organization ID.

Rotate a key

1

Generate a replacement

Create a new key in Dashboard → Profile.
2

Update your platform

Replace the stored secret and confirm a request succeeds with the new key.
3

Revoke the old key

Return to the Developer API page and revoke the previous key.
Revocation takes effect immediately.

Authentication errors

  • 401 — the key is missing, invalid, expired, or revoked.
  • 429 — the key exceeded its rate limit.
See Errors for the complete error model.