Simple access. Careful control.
Authenticate every API request with a bearer token created in your MindLarp console.
Bearer authentication
Include your secret key in the Authorization header of every request.
Authorization: Bearer ml_sk_live_your_secretKey lifecycle
A key can make requests as soon as it is created. You can set an expiration date, limit its scopes, and revoke it at any time. Revocation takes effect immediately.
Scopes
models:readallows listing the available model catalog.inference:writeallows chat completion requests.
Security checklist
- Store keys in a server-side secret manager or environment variable.
- Never include keys in client-side JavaScript, mobile apps, logs, or Git.
- Use a separate key for each application and environment.
- Set expiration dates and rotate credentials regularly.
- Revoke a key immediately if you suspect it was exposed.
