---
title: "List the current authenticated principal's saved artifacts."
method: GET
path: "/api/library"
tags: ["Library"]
---

# List the current authenticated principal's saved artifacts.

`GET /api/library`

## Request

- Base URL: `https://huggingbay.xyz`
- URL: `https://huggingbay.xyz/api/library`
- Auth: HTTP bearer

List the current authenticated principal's saved artifacts.

**Inputs.** No path or query fields are required. 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.** Set HUGGING_BAY_TOKEN to a credential with the role or scope stated by this operation. Reader tokens do not grant publisher or operator rights.

## Response `200`

Saved library

- LibraryResponse
  - `schemaVersion` 'hugging-bay.library.v1', required
  - `generatedAt` string, required
  - `total` number, required
  - `rows` SavedArtifact[], required (unresolved $ref)

## Other responses

- `403`: Reader, publisher, or admin token required

---

[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/865eb0f1b6ef?raw)
