---
title: "List Harbor Contexts"
method: GET
path: "/api/harbors/{harbor_id}/contexts"
tags: ["Harbors"]
---

# List Harbor Contexts

`GET /api/harbors/{harbor_id}/contexts`

Lists context document metadata for a Harbor without returning document content.

Collection items omit `content`. Use the context item endpoint to retrieve a
complete document.

A Harbor profile credential can read context only when `harbor_id` identifies
its own Harbor.

## Path parameters

- `harbor_id` string, uuid, required — Unique identifier of the Harbor.

## Query parameters

- `limit` integer — Maximum number of context documents to return. Defaults to 50 and cannot exceed 50.
- `page_token` string — Opaque pagination cursor returned by the previous request.

## Headers

- `X-Polytomic-Version` string

## Response `200`

OK

- HarborContextListEnvelope
  - `data` HarborContextMetadataResponse[], nullable
    - `created_at` string, date-time — When the context document was created.
    - `description` string — Short summary of the context document.
    - `id` string, uuid — Unique identifier of the context document.
    - `title` string — Human-readable context title.
    - `updated_at` string, date-time — When the context document was last updated.
  - `pagination` PaginationDetails
    - `next_page_token` string

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/polytomic/apis/polytomic-api.md) · [All operations](https://skmtc.net/polytomic/apis/polytomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polytomic/polytomic-api/revisions/42f4cfea0ea3/schema)
