---
title: "Add Knowledge Content"
method: POST
path: "/api/domains/{domain_id}/agent-desk/knowledge/add-content"
tags: ["agent_desk"]
---

# Add Knowledge Content

`POST /api/domains/{domain_id}/agent-desk/knowledge/add-content`

## Request

- Base URL: `https://api-v1.unusual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-v1.unusual.ai/api/domains/{domain_id}/agent-desk/knowledge/add-content`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login`

Add a URL or pasted text to the desk's knowledge, then propose an update.

202, not 200: folding new material in is a compile, and a compile is model
calls. The route validates synchronously — the owned-host check especially,
because "that host isn't yours" must land while the human is still looking
at the field — and hands the rest to
``propose_desk_knowledge_update``. The result arrives as a PROPOSED version
on this page; nothing activates itself.

## Path parameters

- `domain_id` string, required

## Headers

- `x-view-as` string, nullable

## Request body

- KnowledgeAddContent: Exactly one of `url` or `text`. `url` must be on an owned host.
  - `url` string, nullable
  - `text` string, nullable
  - `title` string, nullable
  - `note` string, nullable

## Response `202`

Successful Response

- KnowledgeUpdateQueued
  - `status` 'queued'
  - `detail` string, required
  - `compiling_since` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/unusual/apis/dashboard-server.md) - [All operations](https://skmtc.dev/unusual/apis/dashboard-server/llms.txt) - [OpenAPI document](https://skmtc.dev/unusual/apis/dashboard-server/revisions/89f716930ead?raw)
