Introduction
Authentication
How to authenticate requests to the myt AI Cloud API.
All API calls require a Bearer token issued for your organisation. Portal users authenticate via Keycloak (passwordless email OTP); service calls use API keys with the Authorization header.
HTTP header
Authorization: Bearer YOUR_API_KEYUse HTTPS only. Do not embed keys in browser-side code or public repositories.
Key scope
Keys are tied to an organisation and project and inherit that project’s model access, routing, and budgets. Block or delete keys from API keys if they may be exposed.
Errors
| HTTP | Meaning |
|---|---|
401 | Missing or invalid token |
403 | Token valid but not allowed for this resource |
See each endpoint page for error body examples.