Skip to main content
GET
Ingestion is asynchronous. Call this endpoint with the IDs returned by Ingest Context to learn when each document, app source, or memory is ready to query. To be notified instead of polling, register a webhook for indexing.status_changed events. HydraDB sends a POST to your endpoint when a source reaches a terminal state (completed or errored). See Webhooks for setup and receiver examples.

Passing IDs

  • Send IDs in ids, a single ID in id, or both. HydraDB merges them. At least one ID is required.
  • ids accepts repeated parameters (ids=a&ids=b) or one comma-joined value (ids=a,b). Source IDs never contain commas (ingest rejects them), so the comma-joined form always splits unambiguously.
  • Whitespace is trimmed, empty entries are dropped, and duplicates are removed.

Status values

Each entry in data.statuses describes one requested ID. Read its indexing_status:

Error code values

error_code explains why an ID was not found or ingestion failed. It is empty unless indexing_status is errored.
  • error_message explains an ingestion failure. It is empty otherwise, including for FILE_NOT_FOUND.
  • message describes the lookup, not indexing. Use indexing_status and error_code in your application logic. Message text may change.
  • Status records can expire. A source that completed still reports completed after its record expires. A source that never finished before its record expired reports errored with E9004; ingest it again.

Polling patterns

Stop when content is searchable

Use this for most retrieval flows. At graph_creation, chunks are indexed and a query can return them. Allow a few seconds after the status first appears: a query sent immediately can still miss the source, and a collection that is new can still be reported as not existing. To query straight after ingesting, wait for completed.

Stop when graph processing is complete

Use this before graph-heavy operations such as /context/relations, or when you require complete graph_context.
Typical indexing time:
  • Memories (text, markdown, conversation pairs): seconds
  • Small documents (under 50 pages): 1 to 5 minutes
  • Large documents (50+ pages): 5 to 15 minutes

Errors

Common codes: 400 INVALID_INPUT (for example database and tenant_id both sent with different values), 404 DATABASE_NOT_FOUND, 422 VALIDATION_ERROR (missing database, or no ID). See Error Responses for the full list.

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer <your_api_key>.

Query Parameters

id
string

One context ID. Combined with ids.

Example:

"HydraDoc1234"

ids
string[]

Context IDs as repeated params (ids=a&ids=b) or one comma-joined value (ids=a,b). Whitespace is trimmed; empty and duplicate entries are dropped.

Example:
database
string
required

Database the contexts belong to. Required.

Example:

"acme_corp"

collection
string

Collection the contexts belong to. Omit it to use the database's default collection.

Example:

"team_docs"

tenant_id
string
deprecated

Deprecated: use database.

Example:

"tenant_1234"

sub_tenant_id
string
deprecated

Deprecated: use collection.

Example:

"sub_tenant_4567"

Response

OK

data
IngestionV2BatchProcessingStatus · object
Example:
error
HandlerApiError · object | null

Error details on failure, or null on success.

Example:

null

meta
HandlerResponseMeta · object
Example:
success
boolean

Whether the request succeeded.

Example:

true