List documents.
List documents for a given user. If sort_column is not specified, the output is sorted by by last update time in descending order.
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
How many documents to skip before returning.
How many documents to return.
Sort column.
When true, returns sorted by sort_column in ascending order.
When true, returns also summary and summary_parameter with other common attributes of the document.
String containing metadata json dict to filter collections by metadata.
Filter documents by the username of the uploader (exact match).
Filter documents by ingestion status (exact match). Values: unknown, scheduled, queued, running, completed, failed, canceled, agent_only.
Filter documents by connector source (case-insensitive match, e.g. SharePoint, url, upload, Agent).
Filter to the documents generated by this chat session. Only agent-generated files record a source session, so any value excludes every user-uploaded document. Pair with the same parameter on /documents/count to page a filtered list.
When true, order by the source chat session first, so every page returns whole, contiguous groups; sort_column then orders rows within each group. Documents with no source chat come last.
Response
Successful operation
Example response
[
{
"id": "123e4567-e89b-12d3-a456-426655440000",
"name": "The Hitchhiker's Guide to the Galaxy",
"chat_session_id": "123e4567-e89b-12d3-a456-426655440000"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.