Vai al contenuto principale
GET
Introspect the authenticated credential, its organization, and credits
Restituisce { organization, api_key, credits } per la chiave presentata — l’id e il nome dell’organizzazione, i metadati sicuri della chiave (id, name, prefix, scopes, scadenza — mai il segreto) e il saldo dei credits disponibili dell’organizzazione. Questo è il modo più rapido per confermare che una chiave funzioni. GET /me richiede qualsiasi chiave valida e nessuno scope specifico.

Autorizzazioni

Authorization
string
header
obbligatorio

Organization API key (Authorization: Bearer samsa_sk_...) or OAuth 2.1 access token (Authorization: Bearer samsa_at_...).

Risposta

Successful Response

GET /me body for an API-key principal (ADR §10, scope item 5).

SAM-776 (DAM ADR §5): field-preserving and additively backward-compatible — the pre-existing fields are unchanged; the NEW defaulted credential_type: "api_key" discriminator is the ONE locked additive delta for key callers, and it makes this arm of the discriminated :data:PublicMeResponse union.

organization
OrganizationInfo · object
obbligatorio

The key's organization (the billing / rate-limit identity, ADR §3.1).

api_key
ApiKeyInfo · object
obbligatorio

The presented key's safe, re-displayable metadata (never secrets).

credits
CreditsInfo · object
obbligatorio

The organization's remaining monthly plan-pool credits (GET /me).

credential_type
string
predefinito:api_key
Allowed value: "api_key"