---
title: "List Resources"
method: GET
path: "/v1/knowledge-bases/{knowledge_base_id}/resources"
tags: ["Knowledge Bases", "Knowledge Base Resources"]
---

# List Resources

`GET /v1/knowledge-bases/{knowledge_base_id}/resources`

List files in the knowledge base with optional cursor pagination.

## Path parameters

- `knowledge_base_id` string, uuid, required

## Query parameters

- `cursor` string, nullable — Optional identifier for the page that should be returned. If it is not provided, the first page will be returned.
- `page_size` integer — Number of items to be returned in the page.
- `direction` 'next' | 'prev' — Direction for cursor-based pagination.

## Response `200`

Successful Response

- KnowledgeBaseResourcesResponse

## Other responses

- `422` — Validation Error

---

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