---
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

## Changes

> 3 revisions in range; 1 not diffed.

- **2023-11-13** `ac1f1ab68fcb` — 1 info
  - endpoint added
- **2023-11-08** `dbd91277da05` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/chat-fly/apis/chatfly-backend-application/changes/api/scraping/file/:bot_id/get.md)

---

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