- API Reference
- endpoint
- beta
Beta Users
Beta Users
GET /v1/users/me
Get Identity
Get Identity
Security
DashboardUserContextAuth
headerapiKeyBearerUserContextAuth
bearerhttpResponses
OK
api_key
UserIdentityApiKey | nullUserIdentityApiKey
id
string* requiredname
string | null* requiredfirst_name
string | null* requiredid
string* requiredlast_name
string | null* requiredorganization
UserIdentityOrganization | nullUserIdentityOrganization
id
string* requiredname
string* requiredworkspace
UserIdentityWorkspace | nullUserIdentityWorkspace
id
string* requiredname
string* requiredGET /v1/users/me/organizations
List Organizations
List every organization the authenticated user is a member of.
Identity-only: the caller need not have selected an organization, so this reads only the user and never scopes by the active org.
Security
DashboardUserContextAuth
headerapiKeyBearerUserContextAuth
bearerhttpParameters
offset
integerqueryNumber of organizations to skip before returning results.
limit
integerqueryMaximum number of organizations to return.
Responses
OK
The organizations the authenticated user is a member of.
UserOrganization
id
string* requiredThe organization's unique identifier.
Example:
1a2b3c4d-5e6f-4a8b-9c0d-1e2f3a4b5c6d
name
string* requiredThe organization's display name.
Example:
Acme Corp
GET /v1/users/me/workspaces
List Workspaces
List every workspace the authenticated user is a member of, across all their organizations, each tagged with the organization it belongs to.
Security
DashboardUserContextAuth
headerapiKeyBearerUserContextAuth
bearerhttpParameters
organization_id
string | nullqueryReturn only workspaces belonging to this organization.
offset
integerqueryNumber of workspaces to skip before returning results.
limit
integerqueryMaximum number of workspaces to return.
Responses
OK
The workspaces the authenticated user is a member of, each tagged with the organization it belongs to.
UserWorkspace
id
string* requiredThe workspace's unique identifier.
Example:
7f8e9d0c-1b2a-4c3d-8e9f-0a1b2c3d4e5f
name
string* requiredThe workspace's display name.
Example:
production
organization_id
string* requiredThe identifier of the organization this workspace belongs to.
Example:
1a2b3c4d-5e6f-4a8b-9c0d-1e2f3a4b5c6d
GET /v1/whoami
Whoami
Return the authenticated caller's identity.
Principal-agnostic: resolves both users and service accounts.
Security
DashboardUserOrServiceAccountContextAuth
headerapiKeyBearerUserContextAuth
bearerhttpResponses
OK
customer_id
string | nullThe billing customer identifier from the authenticated session. Identifies the billing account, not the organization (organization.id); the IDs are not interchangeable. Null when no customer is selected.
Examples:
3b241101-e2bb-4255-8caf-4136c566a962
null
organization
WhoamiOrganization | nullOrganization identity and context for the authenticated caller.
WhoamiOrganization
Organization identity and context for the authenticated caller.
id
string* requiredThe organization's unique identifier.
Example:
1a2b3c4d-5e6f-4a8b-9c0d-1e2f3a4b5c6d
internal
booleanWhether this is a Mistral-internal organization.
Examples:
false
true
Default Value: false
kind
stringThe organization kind (e.g. 'S' standard, 'C' company internal, 'D' dogfooding).
Examples:
S
C
Default Value: "S"
name
string* requiredThe organization's display name.
Example:
Acme Corp
org_tier
string | nullThe organization's billing tier (e.g. 'E' for Enterprise). Null when not set.
Examples:
E
null
The authenticated principal: either a user or a service account.
WhoamiUserPrincipal
Identity of a human user principal.
Carries user-only fields. The principal_type discriminator makes this variant mutually exclusive with the service-account variant, so a payload can never carry both a user id and a service-account id.
The user's email address, when known.
Example:
ada@example.com
first_name
string | nullThe user's first name, when known.
Example:
Ada
id
string* requiredThe user's unique identifier.
Example:
8f14e45f-ceea-4e0a-9b0e-8f7d3c2a1b4e
last_name
string | nullThe user's last name, when known.
Example:
Lovelace
principal_type
stringDiscriminator identifying a human user principal.
Example:
user
Default Value: "user"
WhoamiServiceAccountPrincipal
Identity of a service-account principal.
Carries service-account-only fields. Service accounts have no user profile (no email or name of a person); name is the service account's own display name. Resolved independently of the authentication mechanism.
name
string | nullThe service account's display name, when known.
Example:
ci-deploy-bot
principal_type
stringDiscriminator identifying a service-account principal.
Example:
service_account
Default Value: "service_account"
service_account_id
string* requiredThe service account's unique identifier.
Example:
3b241101-e2bb-4255-8caf-4136c566a962