List documents
Changed onList documents with pagination, optional search, and an optional time window. Most recently written first (updated_at descending) unless time_field selects another axis. Documents are the source content from which memory units are extracted.
Request
- Base URLhttps://hindsight.vectorize.io (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
Case-insensitive substring filter on document ID or document text (e.g. 'report' matches 'report-2024' or any document containing 'report'). Meant for browsing and inspection, not for high-volume or latency-sensitive workloads — use recall for that. Matches are capped: past the cap, total is a lower bound and total_is_estimate is true. A store-owned backend may match approximately; each item's matched_fields says what matched.
Filter documents by tags
How to match tags: 'any', 'all', 'any_strict', 'all_strict', 'exact'
Time axis to filter and order by: created_at (when the document first arrived) or updated_at (its last write, the default ordering). Filtering and ordering both follow time_field, and rows with no value on that column are excluded — so total counts only rows carrying that timestamp, and can be 0 on a bank that is not empty.
Filter from this ISO datetime (inclusive)
Filter until this ISO datetime (exclusive)
Headers
Response
Successful Response
Example response
{
"items": [
{
"bank_id": "user123",
"content_hash": "abc123",
"created_at": "2024-01-15T10:30:00Z",
"id": "session_1",
"memory_unit_count": 15,
"tags": [
"user_a",
"session_123"
],
"text_length": 5420,
"updated_at": "2024-01-15T10:30:00Z"
}
],
"limit": 100,
"offset": 0,
"total": 50
}Changes
- breaking
the
queryrequest parametertags_matchwas restricted to a list of enum values - info
added the new enum value
allto thequeryrequest parametertags_match - info
added the new enum value
all_strictto thequeryrequest parametertags_match - info
added the new enum value
anyto thequeryrequest parametertags_match - info
added the new enum value
any_strictto thequeryrequest parametertags_match - info
added the new enum value
exactto thequeryrequest parametertags_match - info
added the optional property
//to the response with the status - info
added the optional property
to the response with the status
- breaking
- warning
for the
queryrequest parameterlimit, the min was set to0.00 - warning
for the
queryrequest parameteroffset, the min was set to0.00 - warning
removed the optional property
//from the response with the status - info
added the new optional
queryrequest parameterend_date - info
added the new optional
queryrequest parameterstart_date - info
added the new optional
queryrequest parametertime_field - info
added the non-success response with the status
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the required property
//to the response with the status
- warning