Tree BG 1
Tree
Tree
TreeLeaves
TreeLeaves
Cat IdleGrassGrassRockRock

Beta Admin Users Endpoints

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

Get Users

GET /v1/admin/users#

List Organization members and pending invitations.

200

OK

Pending Organization invitations on this page.

Organization members on this page.

page#
*integer|null

Page number returned.

page_size#
*integer|null

Maximum number of results per page.

total#
*integer|null

Total number of users and invitations that match the request.

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/admin/users \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "invites": [
    {
      "created_at": "2025-12-17T10:25:07.818693Z",
      "email": "alice.martin@example.com",
      "expired": false,
      "raw_role": "A",
      "raw_roles": [
        "A"
      ],
      "uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
    }
  ],
  "members": [
    {
      "created_at": "2025-12-17T10:25:07.818693Z",
      "email": null,
      "name": null,
      "oid_id": null,
      "raw_role": "A",
      "raw_roles": [
        "A"
      ],
      "uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
    }
  ],
  "page": null,
  "page_size": null,
  "total": null
}

Create Users

POST /v1/admin/users#

Create Organization members.

200

OK

email_to_user_id#
*map<string>

Mapping from created user email to user identifier.

invalid_emails#
*array<string>

Email addresses that could not be created.

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/admin/users \
 -X POST \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '[
  {
    "email": "alice.martin@example.com",
    "first_name": "Alice",
    "last_name": "Martin"
  }
]'

200

{
  "email_to_user_id": [
    "ipsum eiusmod"
  ],
  "invalid_emails": [
    "consequat do"
  ]
}

Get Invite

GET /v1/admin/users-invite#

List pending Organization invitations.

200

OK

OrganizationUserInviteOUT#

{object}

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/admin/users-invite \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

[
  {
    "email": null,
    "invite_uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088",
    "role": "A",
    "roles": [
      "A"
    ]
  }
]

Invite Users

POST /v1/admin/users-invite#

Invite users to the Organization.

200

OK

already_members#
*array<string>

Email addresses that already belong to the Organization.

invalid_emails#
*array<string>

Email addresses that could not be invited.

invited_members_count#
integer|null

Number of invitations successfully created.

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/admin/users-invite \
 -X POST \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "email": "alice.martin@example.com, bob.smith@example.com"
}'

200

{
  "already_members": [
    "ipsum eiusmod"
  ],
  "invalid_emails": [
    "consequat do"
  ]
}

Delete Invite

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

Delete Invite

200

OK

message#
*string

Deletion result message.

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/admin/users-invite/{invite_uuid} \
 -X DELETE \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json'

200

{
  "message": "Organization member deleted successfully"
}

Get User

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

Get details for an Organization member.

200

OK

created_at#
*date-time

Date the member was added to the Organization.

email#
*string|null

Email address of the Organization member.

first_name#
*string|null

User first name.

is_sso_outsider#
boolean|null

Whether the member is outside the SSO domain.

last_name#
*string|null

User last name.

name#
*string|null

Name of the Organization member.

oid_id#
*string|null

Identity provider ID for the member.

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

Deprecated single organization role. Use 'raw_roles' instead.

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

Organization roles assigned to the member.

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

Product seats assigned to the member.

Subscriptions assigned to the member.

uuid#
*string

Organization member ID.

workspaces#
array<MemberWorkspaceInfo>|null

Workspaces the member belongs to.

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/admin/users/{user_id} \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "created_at": "2025-12-17T10:25:07.818693Z",
  "email": null,
  "first_name": null,
  "last_name": null,
  "name": null,
  "oid_id": null,
  "raw_role": "A",
  "raw_roles": [
    "A"
  ],
  "uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
}

Delete User

DELETE /v1/admin/users/{user_id}#

Remove a member from the Organization.

200

OK

message#
*string

Deletion result message.

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/admin/users/{user_id} \
 -X DELETE \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json'

200

{
  "message": "Organization member deleted successfully"
}

Update User

PATCH /v1/admin/users/{user_id}#

Update an Organization member's roles and product seats.

200

OK

created_at#
*date-time

Date the member was added to the Organization.

email#
*string|null

Email address of the Organization member.

is_sso_outsider#
boolean|null

Whether the member is outside the SSO domain.

name#
*string|null

Name of the Organization member.

oid_id#
*string|null

Identity provider ID for the member.

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

Deprecated single organization role. Use 'raw_roles' instead.

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

Organization roles assigned to the member.

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

Product seats assigned to the member.

Subscriptions assigned to the member.

uuid#
*string

Organization member ID.

workspaces#
array<MemberWorkspaceInfo>|null

Workspaces the member belongs to.

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/admin/users/{user_id} \
 -X PATCH \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{}'

200

{
  "created_at": "2025-12-17T10:25:07.818693Z",
  "email": null,
  "name": null,
  "oid_id": null,
  "raw_role": "A",
  "raw_roles": [
    "A"
  ],
  "uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
}

Get Roles

GET /v1/admin/roles#

List Organization and Workspace roles.

200

OK

organization_roles#
*array<RoleOut>

Workspace roles available to the Organization.

workspace_roles#
*array<RoleOut>

Workspace roles available to the Organization.

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/admin/roles \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "organization_roles": [
    {
      "description": "Can manage workspace members and settings",
      "is_custom_role": false,
      "name": "workspace_admin",
      "uuid": null
    }
  ],
  "workspace_roles": [
    {
      "description": "Can manage workspace members and settings",
      "is_custom_role": false,
      "name": "workspace_admin",
      "uuid": null
    }
  ]
}