Index Document
Datastores
Index Document
Upload and index a document to an Agentbase datastore.
POST
Index Document
Documentation Index
Fetch the complete documentation index at: https://docs.agentbase.sh/llms.txt
Use this file to discover all available pages before exploring further.
Body Parameters
The document file to upload and index. Supported formats include PDF, TXT,
PNG, JPG, and more.
The ID of the datastore where the document will be indexed. You can get this
ID from the Create Datastore endpoint.
Example Request
Response
Returns information about the indexed document.Response Fields
The unique identifier for the indexed document
The ID of the datastore containing the document
The name of the uploaded file
The indexing status of the document (e.g.,
indexed, processing)Timestamp of when the document was successfully indexed