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: Partitions within a database for per-user separation. The first collection is created implicitly at ingestion. Collections are useful when you need to scope data per user, team, or customer within a single database.
- Database Metadata & Schema: Structured fields defined at database creation to enable query-time filtering. You can add fields later with Update Metadata Schema.
