---
title: "Create Kb From Files And Urls"
method: POST
path: "/knowledge-bases/all"
tags: ["Knowledge Bases"]
---

# Create Kb From Files And Urls

`POST /knowledge-bases/all`

Create a knowledge base from files and URLs, and save it in the database.

## Query parameters

- `urls` string[], required
- `creativity` number
- `open_to_internet_knowledge` boolean
- `max_urls` integer
- `exclude_urls` string[]
- `team_id` string, uuid
- `knowledge_base_name` string, required

## Response `200`

Successful Response

- KnowledgeBaseResponse
  - `results` KnowledgeBaseResults, required
    - `knowledge_base` KnowledgeBase, required
      - `id` string, uuid
      - `date_created` string, date-time
      - `date_updated` string, date-time
      - `knowledge_base_name` string, required — The name of the knowledge base.
      - `indexed` object — Additional fields used for indexing the knowledge base.
      - `user_id` string, uuid, required — The ID of the user associated with the knowledge base.
      - `created_by` string, uuid — The ID of the user who created the knowledge base when within a team.
      - `team_id` string, uuid — The ID of the team associated with the knowledge base.
      - `type` string — The type of the knowledge base.
      - `num_chars` integer — Number of characters of all files in this knowledge base.
      - `vectordb_indexed` boolean — Indicator whether the data is stored in vector db or not.
      - `is_currently_training` boolean — Indicator whether the knowledge base is being trained at the moment.
      - `last_model_used` 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4-omnimodel-mini' | 'gpt-4-omnimodel' | 'gpt-4-omnimodel-128k' | 'gpt-4-turbo' | 'gpt-4-turbo-128k' | 'gpt-4' | 'gpt-4-32k' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-16k' | 'falcon' | 'mistral' | 'wizardlm' | 'gemma' | 'llama2' | 'llama3' | 'llama3_8b' | 'cohere' | 'claude_3_opus_9k' | 'claude_3_opus_32k' | 'claude_3_opus_128k' | 'claude_3_opus_200k' | 'claude_3_sonnet' | 'claude_3_dot_5_sonnet' | 'claude_3_haiku' | 'claude_3_dot_7_sonnet' | 'claude_4_opus' | 'claude_4_sonnet' | 'gemini-2.0-flash' | 'gemini-2.5-flash' | 'gemini-2.0-flash-lite' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude_4_dot_5_sonnet' | 'claude_4_dot_1_opus' | 'claude_4_dot_5_haiku' | 'gemini-2.5-pro' | 'gemini-2.5-flash-lite' | 'gpt-5.1' | 'gemini-3-pro' | 'gpt-5.2' | 'gpt-5.4' | 'gemini-3-flash' | 'claude_4_dot_6_opus' | 'claude_4_6_sonnet' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'claude_4_7_opus' | 'claude_4_8_opus' | 'claude_5_opus' | 'claude_5_sonnet' — An enumeration.
      - `new_design_activated` boolean — Flag indicating whether the new design is activated.
    - `files` File[], required
      - `id` string, uuid
      - `date_created` string, date-time
      - `date_updated` string, date-time
      - `name` string, required — The name of the file.
      - `path` string, required — The path to the file.
      - `kb_id` string, uuid, required — The ID of the knowledge base associated with the file.
      - `type` string — The type of the file.
      - `size` integer — The size of the file in bytes.
      - `num_chars` integer — Number of characters in the file.
      - `thumbnail` string — The thumbnail url of file if it exists.
      - `file_metadata_id` string, uuid — The ID of the file metadata associated with the file.
    - `total_count` integer

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/dante-ai/apis/dante-ai-api.md) · [All operations](https://skmtc.net/dante-ai/apis/dante-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dante-ai/dante-ai-api/versions/38b6c9a4246d/schema)
