---
title: "Get All File Knowledge Base"
method: GET
path: "/api/scraping/file/{bot_id}"
tags: ["Scraping"]
---

# Get All File Knowledge Base

`GET /api/scraping/file/{bot_id}`

Get all files for a given bot by bot_id.

## Path parameters

- `bot_id` string, uuid, required

## Response `200`

Successful Response

- BotKnowledgeBaseFileResponseSchema[]
  - `knowledge_base_id` string, uuid, required — Unique identifier for the associated knowledge base.
  - `filename` string, required — Name of the file in the knowledge base.
  - `num_token` integer, required — Number of tokens in the file.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.net/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/revisions/cbb37496f138/schema)
