Zum Hauptinhalt springen
GET
Introspect the authenticated credential, its organization, and credits
Gibt { organization, api_key, credits } für den präsentierten Key zurück — die Organisations-id und den Namen, die sicheren Metadaten des Keys (id, Name, Prefix, Scopes, Ablaufdatum — niemals das Secret) und den verfügbaren Credit-Stand der Organisation. Das ist der schnellste Weg, um zu bestätigen, dass ein Key funktioniert. GET /me erfordert irgendeinen gültigen Key und keinen spezifischen Scope.

Autorisierungen

Authorization
string
header
erforderlich

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

Antwort

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
erforderlich

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

api_key
ApiKeyInfo · object
erforderlich

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

credits
CreditsInfo · object
erforderlich

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

credential_type
string
Standard:api_key
Allowed value: "api_key"