# API-ul Auth (OIDC) (/ro/docs/api/auth)

Suprafața publică pentru integratori a auth.codai.ro: discovery, authorization code + PKCE, device flow, tokenuri, logout și /connect/key.

`auth.codai.ro` e un OpenID Provider standard; citește mai întâi `/.well-known/openid-configuration` și lasă biblioteca ta OIDC să conducă restul. Singurul endpoint specific codai e `GET /connect/key`: schimbi access token-ul pe o cheie de inferență cu scope-uri (`base_url: https://ai.codai.ro/v1`). Sunt listate doar endpoint-urile pe care le apelează un integrator — UI-ul de login/consimțământ, API-ul de cont și rutele aplicației native sunt interne first-party. Erorile OIDC sunt `{ "error", "error_description" }`. Fluxul pas cu pas: [fluxul connect](../auth/connect-flow.mdx), scope-uri: [scope-uri](../auth/scopes.mdx).

<OpenAPIPage document="./openapi/ro/auth.yaml" operations={[{path: '/.well-known/openid-configuration',method: 'get'},{path: '/jwks',method: 'get'},{path: '/auth',method: 'get'},{path: '/device/auth',method: 'post'},{path: '/token',method: 'post'},{path: '/token/introspection',method: 'post'},{path: '/token/revocation',method: 'post'},{path: '/me',method: 'get'},{path: '/session/end',method: 'get'},{path: '/connect/key',method: 'get'},{path: '/connect/key',method: 'options'},{path: '/health',method: 'get'},{path: '/health/ready',method: 'get'}]} />
