Endpoint references
Typical call sequence
For a new database from scratch:- Create the database:
POST /databases - Wait for provisioning:
GET /databases/statusuntilinfra.ready_for_ingestionistrue - Ingest content:
POST /context/ingest - Wait for indexing:
GET /context/statusuntil sources are searchable - Retrieve context:
POST /query - Inspect usage:
GET /databases/stats - Delete:
DELETE /databases
GET /databases: list databases in the orgGET /databases/collections: list active collectionsGET /databases/stats: row counts for knowledge and memories
Key concepts
- Database: A top-level isolated space. For example, you can dedicate one database to one enterprise customer.
- Collection: A group of content inside a database, created on the first write. For a company brain, one collection holds everything, and metadata filters and access control keep results apart. Use separate collections only for data that must never meet in one search, such as each person’s memories.
- Database Metadata & Schema: Structured fields defined at database creation to enable query-time filtering. You can add fields later with Update Metadata Schema.
