Skip to main content
POST
/
v2
/
memory
/
knowledge
/
ingest-status
Get Ingest Status
curl --request POST \
  --url https://api.velt.dev/v2/memory/knowledge/ingest-status \
  --header 'Content-Type: application/json' \
  --header 'x-velt-api-key: <x-velt-api-key>' \
  --header 'x-velt-auth-token: <x-velt-auth-token>' \
  --data '
{
  "data": {
    "sourceId": "<string>"
  }
}
'
{
  "result": {
    "status": "completed",
    "sourceId": "src_9a8...",
    "startedAt": 1731432000000,
    "updatedAt": 1731432041000,
    "mimeType": "application/pdf",
    "extractedRulesCount": 7,
    "chunkCount": 0,
    "originalDownloadUrl": "https://storage.googleapis.com/...",
    "canonicalMdDownloadUrl": "https://storage.googleapis.com/..."
  }
}
Use this API to poll the status of an ingestion started with Ingest Knowledge.

Endpoint

POST https://api.velt.dev/v2/memory/knowledge/ingest-status

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required

Example Requests

Poll an ingestion

{
  "data": {
    "sourceId": "src_9a8..."
  }
}

Response

status is processing, completed, or failed. On failed, a failureReason is included. dedupOf is set when the file was a duplicate of an existing source; when it is, the reported status, counts, and download URLs mirror that winning source’s live state, not the duplicate’s own. A freshly uploaded duplicate therefore reports processing until the original finishes converting, then flips to completed. Keep polling until the status is terminal before downloading.

Success Response

{
  "result": {
    "status": "completed",
    "sourceId": "src_9a8...",
    "startedAt": 1731432000000,
    "updatedAt": 1731432041000,
    "mimeType": "application/pdf",
    "extractedRulesCount": 7,
    "chunkCount": 0,
    "originalDownloadUrl": "https://storage.googleapis.com/...",
    "canonicalMdDownloadUrl": "https://storage.googleapis.com/..."
  }
}

Failure Response

{
  "error": {
    "message": "ERROR_MESSAGE",
    "status": "INVALID_ARGUMENT"
  }
}
{
  "result": {
    "status": "completed",
    "sourceId": "src_9a8...",
    "startedAt": 1731432000000,
    "updatedAt": 1731432041000,
    "mimeType": "application/pdf",
    "extractedRulesCount": 7,
    "chunkCount": 0,
    "originalDownloadUrl": "https://storage.googleapis.com/...",
    "canonicalMdDownloadUrl": "https://storage.googleapis.com/..."
  }
}