REST API overview
Base URL, versioning, the interactive reference at /api/docs and your first request.
Everything you can do in the mlflow app is also available over HTTPS. You can upload data, train and compare models, deploy them and request predictions from your own code, from a CI job or from another service, without opening the app. This page gives you the addresses, the rules that apply to every endpoint and a first request you can run in a minute.
Base URL and versions
| What | Address |
|---|---|
| Base URL | https://app.mlflow.es/api/v1 |
| Interactive reference | https://app.mlflow.es/api/docs |
| Alternative reference view | https://app.mlflow.es/api/redoc |
| OpenAPI 3.1 schema | https://app.mlflow.es/api/v1/openapi.json |
On a self-hosted server, replace https://app.mlflow.es with your server's address. Every path in this documentation is relative to the base URL, so GET /auth/me means GET https://app.mlflow.es/api/v1/auth/me.
All endpoints live under /api/v1. Inside version 1 the API changes only by adding things:
- new endpoints can appear;
- new optional request fields can appear;
- new fields can appear in responses.
Your client must therefore ignore fields it does not know. Removing or renaming a field or an endpoint, or changing what one means, ships as a new version, /api/v2. When that happens, v1 keeps running next to it for at least 6 months after the announcement. Endpoints marked as deprecated in the reference keep working until the next major version.
Interactive reference
Open /api/docs on your server for the full list of endpoints, grouped by area (authentication, workspaces, datasets, runs, deployments and so on). For each endpoint it shows the parameters, the request body, the possible responses and an example. You can try requests from the page: select Authorize, paste an API key and send a request.
The OpenAPI schema at /api/v1/openapi.json describes the same endpoints in a machine-readable form. Use it to generate a typed client in the language of your choice, or to import the API into a tool such as an API client or a gateway.
Reference and guides
The reference lists every endpoint and field. The pages in this section explain the rules that apply to all of them: authentication, errors and rate limits, pagination and idempotency and webhooks.
Your first request
You need an API key. Create one in the app: open the user menu at the bottom of the sidebar, select API keys, fill in a Name and select Create key. Copy the key (it starts with pck_); it is shown only once. The page API keys and scopes explains every option.
Send the key in the X-API-Key header. This request asks the API who you are:
export MLFLOW_API_KEY=pck_...
export BASE=https://app.mlflow.es/api/v1
curl -s "$BASE/auth/me" -H "X-API-Key: $MLFLOW_API_KEY"claude mcp add --transport http mlflow https://app.mlflow.es/mcp
--header "Authorization: Bearer pck_..."Then ask the assistant to list your projects.
The response is your user record: your id, email, display_name and a few flags. A 401 means the key is missing or wrong; see Authentication.
From a CSV file to a prediction
The same few calls that the app makes for you. The ids come from the previous response; the full request and response bodies are in the reference.
Lists the workspaces you belong to. Take the id of the one to use.
Creates a project.
Uploads a CSV file as a multipart form (file, name). Excel and Parquet files use /data-sources/upload-excel and /data-sources/upload-parquet.
Creates an experiment: the task (for example classification), the target column and the dataset.
Queues a training run and answers 202 with a run in the queued state. The plan is compare (train and rank many algorithms), create (train one algorithm, set model_id) or setup (prepare the data only). Send an Idempotency-Key header so a retry cannot queue the work twice; see Pagination and idempotency.
Waits up to timeout_s seconds for the run to finish. Repeat the call until the status is succeeded, failed or cancelled. Then read the leaderboard with GET /runs/{run_id}/trials.
Registers a trial as a model version and returns its pipeline.
Deploys the pipeline as an endpoint. The body holds an endpoint_slug and an auth_mode (workspace, api-key or public).
Scores rows online. The body is {"rows": [{"tenure": 12, "plan": "pro"}]}; the response lists one prediction per row, with probabilities for classification.
For whole files, POST /deployments/{endpoint_slug}/batch queues a batch job. A key with only the predict scope is enough for online and batch predictions.
Conventions
- JSON. Requests and responses are JSON (
Content-Type: application/json), except file uploads, which are multipart forms, and downloads, which return the file. - Identifiers. Resources have string ids. Deployments can also be addressed by their endpoint slug in the paths that say
endpoint_slugordeployment_ref. - Visibility. A key sees exactly what its owner sees. A resource you cannot see is answered with
404, never403, so other organisations' ids are never confirmed. - Roles still apply. A key has the roles of the user who created it. Scopes can narrow what the key may do; they never widen it. See Roles and permissions.
- Errors. A failed request returns a JSON body with a
detailfield. See Errors and rate limits. - Lists. Most lists return the whole collection as a JSON array; the lists that can grow without limit are paged. See Pagination and idempotency.
- Rate limits. Requests made with an API key are limited per key, and responses carry headers that show your remaining budget.
- Audit. Every request that changes data (
POST,PATCH,PUT,DELETE) is recorded in the audit log with the user it was made for. Reads are not recorded.
Three ways to use mlflow
mlflow is available in exactly three ways: the web app, this REST API and the MCP server. They share one account, the same roles and the same API keys.
Updated 2026-11-22