---
title: "Gets a list of all files associated with an Artifact resource"
method: GET
path: "/api/v1/artifacts/{id}/files"
tags: ["Artifacts"]
---

# Gets a list of all files associated with an Artifact resource

`GET /api/v1/artifacts/{id}/files`

## Path parameters

- `id` integer, required

## Headers

- `X-Fields` string, mask

## Response `200`

Success

- ArtifactFileDump[]
  - `isDir` boolean — Whether the file denotes a directory or not.
  - `fileSize` integer — The size in bytes of the file.
  - `fileUrl` string — URL for accessing the contents of the Artifact.
  - `relativePath` string — Relative path to the Artifact URI.

---

[API](https://skmtc.net/usnistgov/apis/dioptra-rest-api.md) · [All operations](https://skmtc.net/usnistgov/apis/dioptra-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usnistgov/dioptra-rest-api/versions/a73101579c5c/schema)
