---
title: "List Model Lab run artifacts"
method: GET
path: "/api/v2/model-lab-api/runs/{run_id}/artifacts"
tags: ["Model Lab API"]
---

# List Model Lab run artifacts

`GET /api/v2/model-lab-api/runs/{run_id}/artifacts`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/model-lab-api/runs/{run_id}/artifacts`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

List artifact files for a specific Model Lab run.

## Path parameters

- `run_id` integer, required

## Query parameters

- `path` string

## Response `200`

OK

- ModelLabRunArtifactsResponse: Response containing the artifact listing for a Model Lab run.
  - `data` ModelLabRunArtifactsData, required: A run artifacts JSON:API resource object.
    - `attributes` ModelLabRunArtifactsAttributes, required: Artifact listing for a Model Lab run.
      - `files` ModelLabArtifactObjectInfo[], required: The list of artifact files and directories.
        - `file_size` integer, nullable: The size of the file in bytes.
        - `is_dir` boolean, required: Whether this artifact entry is a directory.
        - `path` string, required: The path of the artifact relative to the run's artifact root.
      - `path_in_project` string, required: The path of the run's artifacts relative to the project's artifact root.
    - `id` string, required: The unique identifier of the artifacts resource.
    - `type` 'artifacts', required: The JSON:API type for a run artifacts resource.

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too many requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
