MLflow Artifacts API

List and obtain presigned URLs for run artifacts.

OpenAPI Specification

mlflow-artifacts-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: MLflow Tracking REST Artifacts API
  version: '2.0'
  summary: REST API for the MLflow tracking server, model registry, and metrics.
  description: 'MLflow is an open-source platform for the end-to-end ML and GenAI lifecycle.

    The tracking server exposes REST endpoints under `/api/2.0/mlflow` for

    experiments, runs, metrics, parameters, artifacts, and the model registry.

    See https://mlflow.org/docs/latest/rest-api.html

    '
  contact:
    name: MLflow
    url: https://mlflow.org/
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://localhost:5000
  description: Default local MLflow tracking server
- url: https://{host}
  description: Self-hosted MLflow tracking server
  variables:
    host:
      default: mlflow.example.com
      description: Hostname of the MLflow tracking server
security:
- {}
- basicAuth: []
tags:
- name: Artifacts
  description: List and obtain presigned URLs for run artifacts.
paths:
  /api/2.0/mlflow/artifacts/list:
    get:
      tags:
      - Artifacts
      summary: List artifacts for a run
      operationId: listArtifacts
      parameters:
      - in: query
        name: run_id
        required: true
        schema:
          type: string
      - in: query
        name: path
        schema:
          type: string
      responses:
        '200':
          description: Artifact list
  /api/2.0/mlflow/artifacts/presigned-upload-url:
    post:
      tags:
      - Artifacts
      summary: Get presigned URL for artifact upload
      operationId: presignedUploadUrl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - run_id
              - path
              properties:
                run_id:
                  type: string
                path:
                  type: string
      responses:
        '200':
          description: Presigned URL returned
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: 'Optional HTTP Basic authentication when the MLflow tracking server is

        configured with the `mlflow-basic-auth` plugin. Default open-source

        servers run without authentication.

        '