Skip to main content
POST
Download Canonical Markdown
Use this API to return the canonical markdown extracted from a knowledge source. It returns null with a 200 when the sourceId is unknown, belongs to another workspace, is still processing, or has no canonical markdown. An unknown sourceId is not an error, so you cannot tell “wrong id” from “still processing” by this response alone; call Get Ingest Status to tell them apart. For a de-duplicated source (dedupOf set), the markdown is the winning source’s, returned only once that source is completed; until then the endpoint returns null rather than a partially written document.

Endpoint

POST https://api.velt.dev/v2/memory/knowledge/download

Headers

string
required
Your API key.
string
required

Body

Params

object
required

Example Requests

Download a source’s markdown

Response

The result is the canonical markdown string, or null when it is not available for the reasons listed above.

Success Response

Failure Response