---
title: "Upload Content"
method: POST
path: "/knowledge/content"
tags: ["Knowledge"]
---

# Upload Content

`POST /knowledge/content`

Upload content to the knowledge base. Supports file uploads, text content, or URLs. Content is processed asynchronously in the background. Supports custom readers and chunking strategies.

## Query parameters

- `db_id` string, nullable — Database ID to use for content storage
- `knowledge_id` string, nullable — Knowledge base ID to upload to

## Response `202`

Content upload accepted for processing

- ContentResponseSchema
  - `id` string, required — Unique identifier for the content
  - `name` string, nullable — Name of the content
  - `description` string, nullable — Description of the content
  - `type` string, nullable — MIME type of the content
  - `size` string, nullable — Size of the content in bytes
  - `linked_to` string, nullable — ID of related content if linked
  - `metadata` object, nullable — Additional metadata as key-value pairs
  - `access_count` integer, nullable — Number of times content has been accessed
  - `status` 'processing' | 'completed' | 'failed' — Enumeration of possible content processing statuses.
  - `status_message` string, nullable — Status message or error details
  - `created_at` string, date-time, nullable — Timestamp when content was created
  - `updated_at` string, date-time, nullable — Timestamp when content was last updated

## Other responses

- `400` — Invalid request - malformed metadata or missing content
- `401` — Unauthorized
- `404` — Not Found
- `422` — Validation error in form data
- `500` — Internal Server Error

---

[API](https://skmtc.net/agno/apis/agno-api-reference.md) · [All operations](https://skmtc.net/agno/apis/agno-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agno/agno-api-reference/versions/5f6149d395d0/schema)
