Get the Current Identity
/v1/meResponses
200Current user session or API key context.
principalobject | objectRequiredShow nested fields
Option 1: object
typestringRequireduserobjectRequiredShow nested fields
idstringRequiredemailstringRequirednamestring | nullstatestringRequiredValues: "active""disabled"
created_atstringRequiredavatar_urlstring | nullHTTPS URL of the profile picture from the user's identity provider.
workspacesobject[]RequiredShow nested fields
See the OpenAPI schema for this nested object.
Option 2: object
typestringRequiredkeyobjectRequiredShow nested fields
idstringRequiredworkspace_idstringRequirednamestringRequiredprefixstringRequiredNon-secret key prefix for display and lookup.
kindstringRequiredValues: "api"
statestringRequiredValues: "active""disabled""revoked"
scopesstring[]RequiredShow nested fields
See the OpenAPI schema for this nested object.
spend_limitnumber | nullrate_limitinteger | nullexpires_atstring | nulllast_used_atstring | nullcreated_atstringRequiredrevoked_atstring | nullbudgetsobjectSpend limits in USD per UTC calendar period. null means no limit.
Show nested fields
See the OpenAPI schema for this nested object.
access_policyobject | nullShow nested fields
See the OpenAPI schema for this nested object.
usageobjectUSD spent in the current UTC day, week and month, and in total, including holds for requests in progress. Spend counts in the period its request started.
Show nested fields
See the OpenAPI schema for this nested object.
workspaceobjectRequiredShow nested fields
idstringRequirednamestringRequiredslugstringRequiredplanstringRequiredstatestringRequiredValues: "active""suspended""closed"
rolestringValues: "owner""admin""developer""viewer""billing"
created_atstringRequired401Authentication is missing or invalid.
errorobjectRequiredShow nested fields
codestringRequiredmessagestringRequiredparamstring | nullrequest_idstring | nullmetadataobjectTyped detail for some refusals. budget_exceeded (402): limit (key_budget or workspace_budget) and budget with scope, period, limit, usage and resets_at. key_limit_exceeded (402): limit key_spend_limit. access_denied (403): policy (workspace or key), rule (models, providers or products), product, provider and model.
500Internal server error.
errorobjectRequiredShow nested fields
codestringRequiredmessagestringRequiredparamstring | nullrequest_idstring | nullmetadataobjectTyped detail for some refusals. budget_exceeded (402): limit (key_budget or workspace_budget) and budget with scope, period, limit, usage and resets_at. key_limit_exceeded (402): limit key_spend_limit. access_denied (403): policy (workspace or key), rule (models, providers or products), product, provider and model.