Auth

Inspect the calling API key (caller introspection)

Returns the resolved API key's identity: its scopes (capabilities), bound user/agent/org, and last-used metadata. Useful for clients to confirm scope and identity before issuing privileged calls.

get/api-keys/whoami

Request

  • Base URL: https://api.mnemom.ai/v1
  • URL: https://api.mnemom.ai/v1/api-keys/whoami
  • Auth: API key in header X-Mnemom-Api-Key

Response

Caller identity.

user_idstring required

Authenticated principal identifier (Supabase user UUID for cookie/JWT auth; api-key-bound user UUID for api_key auth).

emailstring nullable
auth_method'cookie' | 'jwt' | 'api_key' required
key_idstring nullable

API key id (e.g. mnk_...), or null for cookie/JWT auth.

account_idstring nullable

Billing account id, or null for cookie/JWT auth.

org_idstring nullable
scopesstring[] nullable

Capability scopes (ADR-049) for api-key auth; null for cookie/JWT. e.g., ['gateway.send', 'gateway.observe'].

is_adminboolean nullable

Changes

No recorded changes to this operation across all 1 revision of this API.