Median

GET /knowledge

Updated Oct 1, 20261 minute read

Get the library

The whole library at once: every folder and every document, sorted as arranged. Bodies stay home; read one with GET /knowledge/documents/{id}.

Part of Knowledge.

Responses

StatusDescription
200Folders and documents.
401The bearer token is missing, revoked, or expired.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
foldersobject[]No
folders[].idstringNo
folders[].namestringNo
folders[].descriptionanyNo
folders[].iconUrlanyNo
folders[].parentIdanyNo
folders[].ordernumberNo
documentsobject[]No
documents[].idstringNo
documents[].titlestringNo
documents[].source"upload" | "manual" | "github" | "notion" | "web" | "learned"No
documents[].status"indexing" | "ready" | "error"No
documents[].erroranyNo
documents[].originanyNoA repository path, a filename, or a page URL, when it came from one.
documents[].urlanyNoThe published page a customer can open, when the document has one. Null for words with no public home, which the agent never links.
documents[].folderIdanyNo
documents[].ordernumberNo
documents[].updatedAtintegerNo

Example request

curl https://api.median.sh/v1/knowledge \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc