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 /api/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/api/admin/users \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "invites": [
    {
      "created_at": "2025-12-17T10:25:07.818693Z",
      "email": "ipsum eiusmod",
      "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 /api/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/api/admin/users \
 -X POST \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '[
  {
    "email": "ipsum eiusmod",
    "first_name": "consequat do",
    "last_name": "reprehenderit ut dolore"
  }
]'

200

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

Get Invite

GET /api/admin/users-invite

List pending Organization invitations.

200

OK

OrganizationUserInviteOUT

{object}

Playground

Test the endpoints live

curl https://api.mistral.ai/api/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 /api/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/api/admin/users-invite \
 -X POST \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "email": "ipsum eiusmod"
}'

200

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

Delete Invite

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

200

OK

message
*string

Deletion result message.

Playground

Test the endpoints live

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

200

{
  "message": "Example message."
}

Get User

GET /api/admin/users/{user_id}

Get details for an Organization member.

200

OK

email
*string|null

User email address.

first_name
*string|null

User first name.

last_name
*string|null

User last name.

uuid
*string

User ID.

workspaces
array<MemberWorkspaceInfo>|null

Workspaces the member belongs to.

Playground

Test the endpoints live

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

200

{
  "email": null,
  "first_name": null,
  "last_name": null,
  "uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
}

Delete User

DELETE /api/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/api/admin/users/{user_id} \
 -X DELETE \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json'

200

{
  "message": "Example message."
}

Update User

PATCH /api/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/api/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 /api/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/api/admin/roles \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "organization_roles": [
    {
      "description": "My resource description.",
      "is_custom_role": false,
      "name": "My resource",
      "uuid": null
    }
  ],
  "workspace_roles": [
    {
      "description": "My resource description.",
      "is_custom_role": false,
      "name": "My resource",
      "uuid": null
    }
  ]
}