Identify the Caller
Return the identity behind the API key making the request — the organization it belongs to, and, for user-scoped keys, the user it acts as.
Works with either a user-scoped key (u:gcai_...) or an org-scoped key (gcai_...). Org-scoped keys carry no user identity, so user is null for them. Use this to confirm which credential and account a request resolves to before calling /me/profile or /company-profile.
Authorizations
API key for authentication. Format: gcai_xxxxxxxxx
Create API keys in the GC AI app under Settings → API.
Response
The caller identity
Scope of the API key making the request. user for personal keys (u:gcai_...), organization for org keys (gcai_...).
user, organization Identifier of the API key used to authenticate the request
The authenticated user, or null for org-scoped keys (which carry no user identity).