- API Reference
- endpoint
- beta
- admin
Beta Admin Users
Beta Admin Users
GET /v1/admin/users
Get Users
List Organization members and pending invitations.
Security
AdminApiKey
bearerhttpParameters
page
integerqueryPage number to return.
page_size
integerqueryMaximum number of results per page.
Email address to filter users and invitations.
include_inactive
booleanqueryAlso return deactivated and blocked members.
Responses
OK
Pending Organization invitations on this page.
AdminOrganizationInviteOUT
created_at
date-time* requiredTime when the invitation was created.
Email address invited to the Organization.
Example:
alice.martin@example.com
expired
boolean* requiredWhether the invitation has expired.
raw_role
"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"* requiredraw_roles
array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278">Min Items: 1* requiredOrganization roles assigned to the member.
role
string* requiredDeprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.
uuid
string* requiredOrganization invitation ID.
workspace_uuids
array<string>Workspace IDs the invited user will join.
Organization members on this page.
AdminOrganizationMemberOUT
created_at
date-time* requiredDate the member was added to the Organization.
Email address of the Organization member.
Example:
alice.martin@example.com
is_sso_outsider
boolean | nullWhether the member is outside the SSO domain.
last_login_at
date-time | nullLast 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* requiredName of the Organization member.
Example:
Alice Martin
oid_id
string | null* requiredIdentity provider ID for the member.
raw_role
"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"* requiredraw_roles
array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278">Min Items: 1* requiredOrganization roles assigned to the member.
role
string* requiredDeprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.
roles
array<string>* requiredNames 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"> | nullProduct seats assigned to the member.
subscriptions
array<MemberSubscriptionOUT>Subscriptions assigned to the member.
MemberSubscriptionOUT
member_has_access
boolean | nullWhether the member currently has access to the plan.
plan
"FREE" | "PAY_AS_YOU_GO" | "INDIVIDUAL" | "EDU" | "TEAM" | "ENTERPRISE" | nullPlan assigned to the member.
self_service
boolean | nullWhether 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"* requireduser
string | nullUser ID associated with the subscription.
uuid
string* requiredOrganization member ID.
workspaces
array<AdminMemberWorkspaceInfo> | nullDeprecated: limited to the first 100 Workspaces the member belongs to, ordered by name. Use GET /users/{user_id}/workspaces instead.
AdminMemberWorkspaceInfo
is_default
boolean* requiredWhether this is the default Workspace for the Organization.
name
stringMax Length: 255* requiredWorkspace 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"* requiredraw_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* requiredWorkspace roles assigned to the member.
role
string* requiredDeprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.
uuid
string* requiredWorkspace ID.
workspaces_total
integer | nullTotal number of Workspaces the member belongs to, including those not returned in 'workspaces'.
Example:
3
page
integer | null* requiredPage number returned.
page_size
integer | null* requiredMaximum number of results per page.
total
integer | null* requiredTotal number of Organization members that match the request. Pending invitations are not counted.
POST /v1/admin/users
Create Users
Create Organization members.
Security
AdminApiKey
bearerhttpRequest Example
[
{
"email": "alice.martin@example.com",
"first_name": "Alice",
"last_name": "Martin"
}
]
Request Body
OrganizationMemberCreate
Email address of the user to create.
Example:
alice.martin@example.com
first_name
stringMax Length: 255* requiredFirst name of the user to create.
Example:
Alice
last_name
stringMax Length: 255* requiredLast 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" | nullDeprecated legacy single role value, kept for backward compatibility. Mutually exclusive with 'role_name'.
role_name
"member" | "billing_manager" | "organization_admin"Deprecated single role name, kept for backward compatibility. Mutually exclusive with 'role'.
role_names
array<"member" | "billing_manager" | "organization_admin"> | nullSimplified 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"> | nullRole values to assign. Mutually exclusive with 'role_names'.
subscription_types
array<"API" | "CHAT" | "ON_PREMISE" | "LICENSE" | "MISTRAL_CODE"> | nullProduct seats to assign to the user.
Responses
OK
email_to_user_id
map<string>* requiredMapping from created user email to user identifier.
invalid_emails
array<string>* requiredEmail addresses that could not be created.
GET /v1/admin/users-invite
List Invites
List pending Organization invitations.
Security
AdminApiKey
bearerhttpResponses
OK
OrganizationUserInviteOUT
Email address invited to the Organization.
Example:
alice.martin@example.com
invite_uuid
string* requiredOrganization invitation ID.
role
"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"* requiredroles
array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278">Min Items: 1* requiredOrganization roles assigned to the member.
POST /v1/admin/users-invite
Invite Users
Invite users to the Organization.
Security
AdminApiKey
bearerhttpRequest Example
{
"email": "alice.martin@example.com, bob.smith@example.com"
}
Request Body
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" | nullDeprecated legacy single role value, kept for backward compatibility. Mutually exclusive with 'role_name'.
role_name
"member" | "billing_manager" | "organization_admin"Deprecated single role name, kept for backward compatibility. Mutually exclusive with 'role'.
role_names
array<"member" | "billing_manager" | "organization_admin"> | nullSimplified 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"> | nullRole values to assign. Mutually exclusive with 'role_names'.
subscription_seat_automatic_granting
booleanWhether to grant subscription seats automatically.
Default Value: false
subscription_type
"API" | "CHAT" | "ON_PREMISE" | "LICENSE" | "MISTRAL_CODE"Deprecated single product seat to assign.
subscription_types
array<"API" | "CHAT" | "ON_PREMISE" | "LICENSE" | "MISTRAL_CODE"> | nullProduct seats to assign to the user.
workspace_uuids
array<string> | nullWorkspace IDs the invited users should join.
Responses
OK
already_members
array<string>* requiredEmail addresses that already belong to the Organization.
invalid_emails
array<string>* requiredEmail addresses that could not be invited.
invited_members_count
integer | nullNumber of invitations successfully created.
DELETE /v1/admin/users-invite/{invite_uuid}
Delete Invite
Delete a pending Organization invitation.
Security
AdminApiKey
bearerhttpParameters
invite_uuid
stringpath* requiredOrganization invitation ID.
Responses
OK
message
string* requiredDeletion 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
bearerhttpParameters
user_id
stringpath* requiredUser ID.
Responses
OK
created_at
date-time* requiredDate the member was added to the Organization.
Email address of the Organization member.
Example:
alice.martin@example.com
first_name
string | null* requiredUser first name.
Example:
Alice
is_sso_outsider
boolean | nullWhether the member is outside the SSO domain.
last_login_at
date-time | nullLast 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* requiredUser last name.
Example:
Martin
name
string | null* requiredName of the Organization member.
Example:
Alice Martin
oid_id
string | null* requiredIdentity provider ID for the member.
raw_role
"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"* requiredraw_roles
array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278">Min Items: 1* requiredOrganization roles assigned to the member.
role
string* requiredDeprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.
roles
array<string>* requiredNames 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"> | nullProduct seats assigned to the member.
subscriptions
array<MemberSubscriptionOUT>Subscriptions assigned to the member.
MemberSubscriptionOUT
member_has_access
boolean | nullWhether the member currently has access to the plan.
plan
"FREE" | "PAY_AS_YOU_GO" | "INDIVIDUAL" | "EDU" | "TEAM" | "ENTERPRISE" | nullPlan assigned to the member.
self_service
boolean | nullWhether 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"* requireduser
string | nullUser ID associated with the subscription.
uuid
string* requiredOrganization member ID.
workspaces
array<AdminMemberWorkspaceInfo> | nullDeprecated: limited to the first 100 Workspaces the member belongs to, ordered by name. Use GET /users/{user_id}/workspaces instead.
AdminMemberWorkspaceInfo
is_default
boolean* requiredWhether this is the default Workspace for the Organization.
name
stringMax Length: 255* requiredWorkspace 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"* requiredraw_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* requiredWorkspace roles assigned to the member.
role
string* requiredDeprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.
uuid
string* requiredWorkspace ID.
workspaces_total
integer | nullTotal 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
bearerhttpParameters
user_id
stringpath* requiredUser ID.
Responses
OK
message
string* requiredDeletion 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
bearerhttpParameters
user_id
stringpath* requiredUser ID.
Request Example
{}
Request Body
role
"A" | "M" | "B" | "0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278" | nullDeprecated legacy single role value, kept for backward compatibility. Mutually exclusive with 'role_name'.
role_name
"member" | "billing_manager" | "organization_admin"Deprecated single role name, kept for backward compatibility. Mutually exclusive with 'role'.
role_names
array<"member" | "billing_manager" | "organization_admin"> | nullSimplified 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"> | nullRole values to assign. Mutually exclusive with 'role_names'.
subscription_types
array<"CHAT" | "MISTRAL_CODE"> | nullProduct seats to assign to the member.
Responses
OK
created_at
date-time* requiredDate the member was added to the Organization.
Email address of the Organization member.
Example:
alice.martin@example.com
is_sso_outsider
boolean | nullWhether the member is outside the SSO domain.
last_login_at
date-time | nullLast 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* requiredName of the Organization member.
Example:
Alice Martin
oid_id
string | null* requiredIdentity provider ID for the member.
raw_role
"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278"* requiredraw_roles
array<"0d48f530-095c-43fe-8aea-6673bcacabe6" | "c955f4e1-9477-43f0-8349-6fbc629fccc9" | "7bde5959-d676-47d2-b779-35b64323d278">Min Items: 1* requiredOrganization roles assigned to the member.
role
string* requiredDeprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.
roles
array<string>* requiredNames 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"> | nullProduct seats assigned to the member.
subscriptions
array<MemberSubscriptionOUT>Subscriptions assigned to the member.
MemberSubscriptionOUT
member_has_access
boolean | nullWhether the member currently has access to the plan.
plan
"FREE" | "PAY_AS_YOU_GO" | "INDIVIDUAL" | "EDU" | "TEAM" | "ENTERPRISE" | nullPlan assigned to the member.
self_service
boolean | nullWhether 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"* requireduser
string | nullUser ID associated with the subscription.
uuid
string* requiredOrganization member ID.
workspaces
array<AdminMemberWorkspaceInfo> | nullDeprecated: limited to the first 100 Workspaces the member belongs to, ordered by name. Use GET /users/{user_id}/workspaces instead.
AdminMemberWorkspaceInfo
is_default
boolean* requiredWhether this is the default Workspace for the Organization.
name
stringMax Length: 255* requiredWorkspace 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"* requiredraw_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* requiredWorkspace roles assigned to the member.
role
string* requiredDeprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.
uuid
string* requiredWorkspace ID.
workspaces_total
integer | nullTotal 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
bearerhttpParameters
user_id
stringpath* requiredUser ID.
Responses
OK
message
string* requiredDeactivation 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
bearerhttpParameters
user_id
stringpath* requiredUser ID.
Responses
OK
message
string* requiredReactivation 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
bearerhttpParameters
user_id
stringpath* requiredUser ID.
page
integerqueryPage number to return.
page_size
integerqueryMaximum number of results per page.
Responses
OK
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* requiredWhether this is the default Workspace for the Organization.
name
stringMax Length: 255* requiredWorkspace 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"* requiredraw_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* requiredWorkspace roles assigned to the member.
role
string* requiredDeprecated name of the first role of 'raw_roles'. Use 'raw_roles' instead.
uuid
string* requiredWorkspace ID.
page
integer* requiredPage number returned.
Example:
1
page_size
integer* requiredMaximum number of results per page.
Example:
25
total
integer* requiredTotal number of Workspaces the member belongs to.
Example:
3
GET /v1/admin/roles
Get Roles
List Organization and Workspace roles.
Security
AdminApiKey
bearerhttpResponses
OK
Workspace roles available to the Organization.
RoleOut
description
string* requiredShort description of the role.
Example:
Can manage workspace members and settings
is_custom_role
boolean* requiredWhether this role is custom-defined.
name
string* requiredRole name.
Example:
workspace_admin
uuid
string* requiredRole UUID.
Workspace roles available to the Organization.
RoleOut
description
string* requiredShort description of the role.
Example:
Can manage workspace members and settings
is_custom_role
boolean* requiredWhether this role is custom-defined.
name
string* requiredRole name.
Example:
workspace_admin
uuid
string* requiredRole UUID.