mistralM

Docs

sideBar

Admin API overview

Manage your Organization programmatically: users, groups, Workspaces, API keys, limits, usage, and audit logs.

The Admin API is an Enterprise-only feature that lets Organization administrators and solutions engineers automate account management. Use it to provision users, manage Workspaces and groups, rotate API keys, set spend and rate limits, and retrieve usage and audit logs.

flag

Enterprise plans only

The Admin API is available only on Enterprise plans, and access isn't self-serve. On other plans, you can't create an Admin API key, and a standard API key doesn't work with admin endpoints. To request access, contact your Mistral account team or our sales teamarrowUpRight.

pen

The Admin API is in Preview. Endpoints and fields can change as we refine the API.

Concepts

Most Admin docs describe one Organization. Some Enterprise customers also have an Enterprise Account, which groups several Organizations when they need stronger isolation between groups of users than Workspaces provide.

The Admin PanelarrowUpRight manages Enterprise Accounts, their Organizations, their members, and each Organization's Admin API keys. For the product model, see Enterprise Accounts.

pen

An Enterprise Account is not the same as an Organization on an Enterprise plan. The Enterprise plan is a billing tier that unlocks features like the Admin API for a single Organization. An Enterprise Account is an administrative layer that links multiple Organizations and is only available to Enterprise plan customers.

A user group bundles users so you can manage them together. For example, create a group, add members, then assign the group to a Workspace with a given role. See Groups.

Authentication

The Admin API uses a dedicated Admin API key, created in the Admin Panel (enterprise section) and passed in the x-api-key header. A user's standard API key never grants admin access. See Authentication and Admin API keys for details.

Capabilities

Use the Admin API to manage:

Roles and permissions

Endpoints that assign roles accept role names in role_names (for example member, organization_admin, or workspace_contributor) or role UUIDs in roles. List the available roles and their UUIDs with GET /v1/admin/roles.

pen

Singular role fields (role, role_name, workspace_role, workspace_role_name) and legacy role codes (A, M, B) are deprecated. Use roles or role_names, which support assigning multiple roles to a user.

For the full role model, see Roles and permissions.

In this section

Authentication and Admin API keys
illustrationKey

Authentication and Admin API keys

How Admin API keys work, where to create them, and how to authenticate requests.

Manage users
illustrationDeskchair

Manage users

List, create, update, invite, deactivate, reactivate, and remove Organization users with the Admin API.

Manage Workspaces
illustrationWindow

Manage Workspaces

List, create, update, and delete Workspaces and manage their members with the Admin API.

Manage groups and roles
illustrationBarrier

Manage groups and roles

Create user groups, manage membership and Workspace assignments, and list roles with the Admin API.

User provisioning
illustrationMailbox

User provisioning

Bulk-create or invite users, organize them into a user group, and grant the group access to a Workspace with the Admin API.

Usage metrics
illustrationBolt

Usage metrics

Retrieve billing usage, spending and rate limits, le Chat activity, and Vibe Code analytics with the Admin API.

API reference
illustrationBook

API reference

Admin API endpoint reference generated from the OpenAPI specification.