GET /knowledge/documents/{id}
Updated Oct 1, 20261 minute read
Get a document
One document in full, body included, plus a download URL when it arrived as a file.
Part of Knowledge.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | A document id. |
Responses
| Status | Description |
|---|---|
200 | The document. |
401 | The bearer token is missing, revoked, or expired. |
404 | Not one of yours, or not there at all. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | No | |
title | string | No | |
source | "upload" | "manual" | "github" | "notion" | "web" | "learned" | No | |
status | "indexing" | "ready" | "error" | No | |
error | any | No | |
origin | any | No | A repository path, a filename, or a page URL, when it came from one. |
url | any | No | The published page a customer can open, when the document has one. Null for words with no public home, which the agent never links. |
folderId | any | No | |
order | number | No | |
updatedAt | integer | No | |
body | string | No | |
fileUrl | any | No | |
conversationId | any | No |
Example request
curl https://api.median.sh/v1/knowledge/documents/id \
-H "Authorization: Bearer $BEARER_AUTH"