---
title: "Fetch paginated artifact files."
method: GET
path: "/api/artifacts/{id}/files"
tags: ["Artifacts"]
deprecated: true
---

# Fetch paginated artifact files.

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

## Request

- Base URL: `https://huggingbay.xyz`
- URL: `https://huggingbay.xyz/api/artifacts/{id}/files`
- Auth: none declared

> **Deprecated.**

Alias of /api/v1/artifacts/{id}/files (recorded; identical handler). Prefer the recorded path: this one already answers with Deprecation and Sunset headers. Returns a bounded file page. Continue only with the opaque nextCursor returned by the previous page; cursors are bound to the artifact and active filters.

**Inputs.** Path, query and header fields are listed below. No request body is required.

**Outputs.** See each status below for its media type, schema and headers. A missing record or unavailable capability is not a successful empty result.

**Errors.** API JSON failures use the documented response schema. Read code, message and next; retry only when the response allows it. Auth, invalid input and missing records need a caller change.

**Rate limits.** Public read budgets apply by client IP and route group. This operation can have a smaller route-specific budget. Read Retry-After on 429 or retryable 503 responses.

**Example setup.** Use an identifier returned by the matching list, search or create operation. Sample identifiers are not a promise that a record exists.

## Path parameters

- `id` string, required

## Query parameters

- `q` string
- `tool` 'ollama' | 'lm-studio' | 'comfyui' | 'transformers' | 'llama.cpp'
- `limit` integer
- `cursor` string
- `compat` 'containment'

## Response `200`

File page

- SdkArtifactFiles
  - `artifactId` string
  - `rows` object[]
    - `path` string
    - `sha256` string, nullable
    - `sizeBytes` integer, nullable
  - `nextCursor` string, nullable
  - `total` integer

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api.md) · [All operations](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/revisions/63c474bf0fe4?raw)
