mistralM

Docs

sideBar

Beta Admin Users

(beta) Admin API - manage users. Requires an admin API key.

GET /v1/admin/users

Get Users

List Organization members and pending invitations.

Security

AdminApiKey
bearerhttp

Parameters

page
integerquery

Page number to return.

page_size
integerquery

Maximum number of results per page.

email
string | nullquery

Email address to filter users and invitations.

include_inactive
booleanquery

Also return deactivated and blocked members.

Responses

OK

invites
array<AdminOrganizationInviteOUT>* required

Pending Organization invitations on this page.

AdminOrganizationInviteOUT
created_at
date-time* required

Time when the invitation was created.

email
string* required

Email address invited to the Organization.

Example:

alice.martin@example.com
expired
boolean* required

Whether the invitation has expired.

raw_role
"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"* required
raw_roles
array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278">Min Items: 1* required

Organization roles assigned to the member.

role
string* required
exclamationMark

Deprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.

uuid
string* required

Organization invitation ID.

workspace_uuids
array<string>

Workspace IDs the invited user will join.

members
array<AdminOrganizationMemberOUT>* required

Organization members on this page.

AdminOrganizationMemberOUT
created_at
date-time* required

Date the member was added to the Organization.

email
string | null* required

Email address of the Organization member.

Example:

alice.martin@example.com
is_sso_outsider
boolean | null

Whether the member is outside the SSO domain.

last_login_at
date-time | null

Last time the member signed in to the Organization, accurate to about 30 minutes. Null if they never signed in.

Example:

2026-11-04T09:12:00Z
name
string | null* required

Name of the Organization member.

Example:

Alice Martin
oid_id
string | null* required

Identity provider ID for the member.

raw_role
"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"* required
raw_roles
array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278">Min Items: 1* required

Organization roles assigned to the member.

role
string* required
exclamationMark

Deprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.

roles
array<string>* required

Names of the Organization roles assigned to the member.

status
"active" | "deactivated" | "blocked"

Account status of the member. Deactivated and blocked members cannot access the Organization.

Example:

active

Default Value: "active"

subscription_types
array<"CHAT" | "MISTRAL_CODE"> | null

Product seats assigned to the member.

subscriptions
array<MemberSubscriptionOUT>

Subscriptions assigned to the member.

MemberSubscriptionOUT
member_has_access
boolean | null

Whether the member currently has access to the plan.

plan
"FREE" | "PAY_AS_YOU_GO" | "INDIVIDUAL" | "EDU" | "TEAM" | "ENTERPRISE" | null

Plan assigned to the member.

self_service
boolean | null

Whether the subscription was created through self-service.

status
"NS" | "S" | "IC" | "A" | "CF" | "CG" | "C" | "PC" | "GP"

Current status of the member subscription.

type
"API" | "CHAT" | "ON_PREMISE" | "LICENSE" | "MISTRAL_CODE"* required
user
string | null

User ID associated with the subscription.

uuid
string* required

Organization member ID.

workspaces
array<AdminMemberWorkspaceInfo> | null
exclamationMark

Deprecated: limited to the first 100 Workspaces the member belongs to, ordered by name. Use GET /users/{user_id}/workspaces instead.

AdminMemberWorkspaceInfo
is_default
boolean* required

Whether this is the default Workspace for the Organization.

name
stringMax Length: 255* required

Workspace name.

Example:

Product Team
raw_role
"48436751-ee56-44bd-8a2d-712233977821" | "578584f1-4319-4c88-9948-38a5184483b6" | "252a0825-40b9-4b98-be80-7658956f13e9" | "17aa61c5-1c61-477e-a40a-e52c8ccd74b9" | "b23cd6e0-91cd-4a8a-9869-b30366bf3966" | "731eb2be-a74f-4070-b797-35bf7009e553"* required
raw_roles
array<"48436751-ee56-44bd-8a2d-712233977821" | "578584f1-4319-4c88-9948-38a5184483b6" | "252a0825-40b9-4b98-be80-7658956f13e9" | "17aa61c5-1c61-477e-a40a-e52c8ccd74b9" | "b23cd6e0-91cd-4a8a-9869-b30366bf3966" | "731eb2be-a74f-4070-b797-35bf7009e553">Min Items: 1* required

Workspace roles assigned to the member.

role
string* required
exclamationMark

Deprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.

uuid
string* required

Workspace ID.

workspaces_total
integer | null

Total number of Workspaces the member belongs to, including those not returned in 'workspaces'.

Example:

3
page
integer | null* required

Page number returned.

page_size
integer | null* required

Maximum number of results per page.

total
integer | null* required

Total number of Organization members that match the request. Pending invitations are not counted.

POST /v1/admin/users

Create Users

Create Organization members.

Security

AdminApiKey
bearerhttp

Request Example

[
  {
    "email": "alice.martin@example.com",
    "first_name": "Alice",
    "last_name": "Martin"
  }
]

Request Body

array<OrganizationMemberCreate>
OrganizationMemberCreate
email
stringMax Length: 255* required

Email address of the user to create.

Example:

alice.martin@example.com
first_name
stringMax Length: 255* required

First name of the user to create.

Example:

Alice
last_name
stringMax Length: 255* required

Last name of the user to create.

Example:

Martin
role
"A" | "M" | "B" | "0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278" | null
exclamationMark

Deprecated legacy single role value, kept for backward compatibility. Mutually exclusive with 'role_name'.

role_name
"member" | "billing_manager" | "organization_admin"
exclamationMark

Deprecated single role name, kept for backward compatibility. Mutually exclusive with 'role'.

role_names
array<"member" | "billing_manager" | "organization_admin"> | null

Simplified role names to assign. Mutually exclusive with 'roles'.

roles
array<"A" | "M" | "B"> | array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"> | null

Role values to assign. Mutually exclusive with 'role_names'.

subscription_types
array<"API" | "CHAT" | "ON_PREMISE" | "LICENSE" | "MISTRAL_CODE"> | null

Product seats to assign to the user.

Responses

OK

email_to_user_id
map<string>* required

Mapping from created user email to user identifier.

invalid_emails
array<string>* required

Email addresses that could not be created.

GET /v1/admin/users-invite

List Invites

List pending Organization invitations.

Security

AdminApiKey
bearerhttp

Responses

array<OrganizationUserInviteOUT>

OK

OrganizationUserInviteOUT
email
string | null* required

Email address invited to the Organization.

Example:

alice.martin@example.com
invite_uuid
string* required

Organization invitation ID.

role
"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"* required
roles
array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278">Min Items: 1* required

Organization roles assigned to the member.

POST /v1/admin/users-invite

Invite Users

Invite users to the Organization.

Security

AdminApiKey
bearerhttp

Request Example

{
  "email": "alice.martin@example.com, bob.smith@example.com"
}

Request Body

email
string* required

Email address, comma-separated emails, or newline-separated emails to invite.

Example:

alice.martin@example.com, bob.smith@example.com
email_language
"en" | "fr" | "es" | "de" | "it" | "pt_br" | "pl" | "ar" | "nl" | "ko"

Language used for invitation emails.

role
"A" | "M" | "B" | "0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278" | null
exclamationMark

Deprecated legacy single role value, kept for backward compatibility. Mutually exclusive with 'role_name'.

role_name
"member" | "billing_manager" | "organization_admin"
exclamationMark

Deprecated single role name, kept for backward compatibility. Mutually exclusive with 'role'.

role_names
array<"member" | "billing_manager" | "organization_admin"> | null

Simplified role names to assign. Mutually exclusive with 'roles'.

roles
array<"A" | "M" | "B"> | array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"> | null

Role values to assign. Mutually exclusive with 'role_names'.

subscription_seat_automatic_granting
boolean

Whether to grant subscription seats automatically.

Default Value: false

subscription_type
"API" | "CHAT" | "ON_PREMISE" | "LICENSE" | "MISTRAL_CODE"
exclamationMark

Deprecated single product seat to assign.

subscription_types
array<"API" | "CHAT" | "ON_PREMISE" | "LICENSE" | "MISTRAL_CODE"> | null

Product seats to assign to the user.

workspace_uuids
array<string> | null

Workspace IDs the invited users should join.

Responses

OK

already_members
array<string>* required

Email addresses that already belong to the Organization.

invalid_emails
array<string>* required

Email addresses that could not be invited.

invited_members_count
integer | null

Number of invitations successfully created.

DELETE /v1/admin/users-invite/{invite_uuid}

Delete Invite

Delete a pending Organization invitation.

Security

AdminApiKey
bearerhttp

Parameters

invite_uuid
stringpath* required

Organization invitation ID.

Responses

OK

message
string* required

Deletion result message.

Example:

User invite deleted successfully

GET /v1/admin/users/{user_id}

Get User

Get details for an Organization member, including deactivated and blocked members.

Security

AdminApiKey
bearerhttp

Parameters

user_id
stringpath* required

User ID.

Responses

OK

created_at
date-time* required

Date the member was added to the Organization.

email
string | null* required

Email address of the Organization member.

Example:

alice.martin@example.com
first_name
string | null* required

User first name.

Example:

Alice
is_sso_outsider
boolean | null

Whether the member is outside the SSO domain.

last_login_at
date-time | null

Last time the member signed in to the Organization, accurate to about 30 minutes. Null if they never signed in.

Example:

2026-11-04T09:12:00Z
last_name
string | null* required

User last name.

Example:

Martin
name
string | null* required

Name of the Organization member.

Example:

Alice Martin
oid_id
string | null* required

Identity provider ID for the member.

raw_role
"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"* required
raw_roles
array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278">Min Items: 1* required

Organization roles assigned to the member.

role
string* required
exclamationMark

Deprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.

roles
array<string>* required

Names of the Organization roles assigned to the member.

status
"active" | "deactivated" | "blocked"

Account status of the member. Deactivated and blocked members cannot access the Organization.

Example:

active

Default Value: "active"

subscription_types
array<"CHAT" | "MISTRAL_CODE"> | null

Product seats assigned to the member.

subscriptions
array<MemberSubscriptionOUT>

Subscriptions assigned to the member.

MemberSubscriptionOUT
member_has_access
boolean | null

Whether the member currently has access to the plan.

plan
"FREE" | "PAY_AS_YOU_GO" | "INDIVIDUAL" | "EDU" | "TEAM" | "ENTERPRISE" | null

Plan assigned to the member.

self_service
boolean | null

Whether the subscription was created through self-service.

status
"NS" | "S" | "IC" | "A" | "CF" | "CG" | "C" | "PC" | "GP"

Current status of the member subscription.

type
"API" | "CHAT" | "ON_PREMISE" | "LICENSE" | "MISTRAL_CODE"* required
user
string | null

User ID associated with the subscription.

uuid
string* required

Organization member ID.

workspaces
array<AdminMemberWorkspaceInfo> | null
exclamationMark

Deprecated: limited to the first 100 Workspaces the member belongs to, ordered by name. Use GET /users/{user_id}/workspaces instead.

AdminMemberWorkspaceInfo
is_default
boolean* required

Whether this is the default Workspace for the Organization.

name
stringMax Length: 255* required

Workspace name.

Example:

Product Team
raw_role
"48436751-ee56-44bd-8a2d-712233977821" | "578584f1-4319-4c88-9948-38a5184483b6" | "252a0825-40b9-4b98-be80-7658956f13e9" | "17aa61c5-1c61-477e-a40a-e52c8ccd74b9" | "b23cd6e0-91cd-4a8a-9869-b30366bf3966" | "731eb2be-a74f-4070-b797-35bf7009e553"* required
raw_roles
array<"48436751-ee56-44bd-8a2d-712233977821" | "578584f1-4319-4c88-9948-38a5184483b6" | "252a0825-40b9-4b98-be80-7658956f13e9" | "17aa61c5-1c61-477e-a40a-e52c8ccd74b9" | "b23cd6e0-91cd-4a8a-9869-b30366bf3966" | "731eb2be-a74f-4070-b797-35bf7009e553">Min Items: 1* required

Workspace roles assigned to the member.

role
string* required
exclamationMark

Deprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.

uuid
string* required

Workspace ID.

workspaces_total
integer | null

Total number of Workspaces the member belongs to, including those not returned in 'workspaces'.

Example:

3

DELETE /v1/admin/users/{user_id}

Delete User

Remove a member from the Organization, whatever their account status.

Members whose email is on one of the Organization's verified domains cannot be removed: deactivate them instead.

Security

AdminApiKey
bearerhttp

Parameters

user_id
stringpath* required

User ID.

Responses

OK

message
string* required

Deletion result message.

Example:

Organization member deleted successfully

PATCH /v1/admin/users/{user_id}

Update User

Update an Organization member's roles and product seats.

Security

AdminApiKey
bearerhttp

Parameters

user_id
stringpath* required

User ID.

Request Example

{}

Request Body

role
"A" | "M" | "B" | "0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278" | null
exclamationMark

Deprecated legacy single role value, kept for backward compatibility. Mutually exclusive with 'role_name'.

role_name
"member" | "billing_manager" | "organization_admin"
exclamationMark

Deprecated single role name, kept for backward compatibility. Mutually exclusive with 'role'.

role_names
array<"member" | "billing_manager" | "organization_admin"> | null

Simplified role names to assign. Mutually exclusive with 'roles'.

roles
array<"A" | "M" | "B"> | array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"> | null

Role values to assign. Mutually exclusive with 'role_names'.

subscription_types
array<"CHAT" | "MISTRAL_CODE"> | null

Product seats to assign to the member.

Responses

OK

created_at
date-time* required

Date the member was added to the Organization.

email
string | null* required

Email address of the Organization member.

Example:

alice.martin@example.com
is_sso_outsider
boolean | null

Whether the member is outside the SSO domain.

last_login_at
date-time | null

Last time the member signed in to the Organization, accurate to about 30 minutes. Null if they never signed in.

Example:

2026-11-04T09:12:00Z
name
string | null* required

Name of the Organization member.

Example:

Alice Martin
oid_id
string | null* required

Identity provider ID for the member.

raw_role
"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"* required
raw_roles
array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278">Min Items: 1* required

Organization roles assigned to the member.

role
string* required
exclamationMark

Deprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.

roles
array<string>* required

Names of the Organization roles assigned to the member.

status
"active" | "deactivated" | "blocked"

Account status of the member. Deactivated and blocked members cannot access the Organization.

Example:

active

Default Value: "active"

subscription_types
array<"CHAT" | "MISTRAL_CODE"> | null

Product seats assigned to the member.

subscriptions
array<MemberSubscriptionOUT>

Subscriptions assigned to the member.

MemberSubscriptionOUT
member_has_access
boolean | null

Whether the member currently has access to the plan.

plan
"FREE" | "PAY_AS_YOU_GO" | "INDIVIDUAL" | "EDU" | "TEAM" | "ENTERPRISE" | null

Plan assigned to the member.

self_service
boolean | null

Whether the subscription was created through self-service.

status
"NS" | "S" | "IC" | "A" | "CF" | "CG" | "C" | "PC" | "GP"

Current status of the member subscription.

type
"API" | "CHAT" | "ON_PREMISE" | "LICENSE" | "MISTRAL_CODE"* required
user
string | null

User ID associated with the subscription.

uuid
string* required

Organization member ID.

workspaces
array<AdminMemberWorkspaceInfo> | null
exclamationMark

Deprecated: limited to the first 100 Workspaces the member belongs to, ordered by name. Use GET /users/{user_id}/workspaces instead.

AdminMemberWorkspaceInfo
is_default
boolean* required

Whether this is the default Workspace for the Organization.

name
stringMax Length: 255* required

Workspace name.

Example:

Product Team
raw_role
"48436751-ee56-44bd-8a2d-712233977821" | "578584f1-4319-4c88-9948-38a5184483b6" | "252a0825-40b9-4b98-be80-7658956f13e9" | "17aa61c5-1c61-477e-a40a-e52c8ccd74b9" | "b23cd6e0-91cd-4a8a-9869-b30366bf3966" | "731eb2be-a74f-4070-b797-35bf7009e553"* required
raw_roles
array<"48436751-ee56-44bd-8a2d-712233977821" | "578584f1-4319-4c88-9948-38a5184483b6" | "252a0825-40b9-4b98-be80-7658956f13e9" | "17aa61c5-1c61-477e-a40a-e52c8ccd74b9" | "b23cd6e0-91cd-4a8a-9869-b30366bf3966" | "731eb2be-a74f-4070-b797-35bf7009e553">Min Items: 1* required

Workspace roles assigned to the member.

role
string* required
exclamationMark

Deprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.

uuid
string* required

Workspace ID.

workspaces_total
integer | null

Total number of Workspaces the member belongs to, including those not returned in 'workspaces'.

Example:

3

POST /v1/admin/users/{user_id}/deactivate

Deactivate User

Deactivate a user whose email address is on one of the Organization's verified domains: end their sessions, delete their API keys and release their seats. Their memberships, groups and roles are kept, so that POST /users/\{user_id\}/reactivate can give their access back.

Security

AdminApiKey
bearerhttp

Parameters

user_id
stringpath* required

User ID.

Responses

OK

message
string* required

Deactivation result message.

Example:

User deactivated successfully

POST /v1/admin/users/{user_id}/reactivate

Reactivate User

Reactivate a deactivated user whose email address is on one of the Organization's verified domains: give them their access back, with their seats when free ones remain.

Security

AdminApiKey
bearerhttp

Parameters

user_id
stringpath* required

User ID.

Responses

OK

message
string* required

Reactivation result message.

Example:

User reactivated successfully

GET /v1/admin/users/{user_id}/workspaces

Get User Workspaces

List the Workspaces an Organization member belongs to, with their roles.

Security

AdminApiKey
bearerhttp

Parameters

user_id
stringpath* required

User ID.

page
integerquery

Page number to return.

page_size
integerquery

Maximum number of results per page.

Responses

OK

items
array<AdminMemberWorkspaceInfo> | null* required
exclamationMark

Deprecated: limited to the first 100 Workspaces the member belongs to, ordered by name. Use GET /users/{user_id}/workspaces instead.

AdminMemberWorkspaceInfo
is_default
boolean* required

Whether this is the default Workspace for the Organization.

name
stringMax Length: 255* required

Workspace name.

Example:

Product Team
raw_role
"48436751-ee56-44bd-8a2d-712233977821" | "578584f1-4319-4c88-9948-38a5184483b6" | "252a0825-40b9-4b98-be80-7658956f13e9" | "17aa61c5-1c61-477e-a40a-e52c8ccd74b9" | "b23cd6e0-91cd-4a8a-9869-b30366bf3966" | "731eb2be-a74f-4070-b797-35bf7009e553"* required
raw_roles
array<"48436751-ee56-44bd-8a2d-712233977821" | "578584f1-4319-4c88-9948-38a5184483b6" | "252a0825-40b9-4b98-be80-7658956f13e9" | "17aa61c5-1c61-477e-a40a-e52c8ccd74b9" | "b23cd6e0-91cd-4a8a-9869-b30366bf3966" | "731eb2be-a74f-4070-b797-35bf7009e553">Min Items: 1* required

Workspace roles assigned to the member.

role
string* required
exclamationMark

Deprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.

uuid
string* required

Workspace ID.

page
integer* required

Page number returned.

Example:

1
page_size
integer* required

Maximum number of results per page.

Example:

25
total
integer* required

Total number of Workspaces the member belongs to.

Example:

3

GET /v1/admin/roles

Get Roles

List Organization and Workspace roles.

Security

AdminApiKey
bearerhttp

Responses

OK

organization_roles
array<RoleOut>* required

Workspace roles available to the Organization.

RoleOut
description
string* required

Short description of the role.

Example:

Can manage workspace members and settings
is_custom_role
boolean* required

Whether this role is custom-defined.

name
string* required

Role name.

Example:

workspace_admin
uuid
string* required

Role UUID.

workspace_roles
array<RoleOut>* required

Workspace roles available to the Organization.

RoleOut
description
string* required

Short description of the role.

Example:

Can manage workspace members and settings
is_custom_role
boolean* required

Whether this role is custom-defined.

name
string* required

Role name.

Example:

workspace_admin
uuid
string* required

Role UUID.