API Overview
VortexDB provides two complementary APIs for different use cases:Available APIs
gRPC API
High-performance Protocol Buffer interface for production workloads
HTTP API
RESTful JSON interface for quick testing and prototyping
Comparison
Authentication
gRPC
The gRPC API requires authentication via theauthorization header:
HTTP
The HTTP API requires anapi-key header on every request under /points. / and /health remain open for health checks.
VORTEXDB_KEYS_FILE used by gRPC (see gRPC API), but the HTTP API additionally enforces each key’s role: readonly keys can fetch and search points; readwrite keys can also insert, batch-insert, and delete. A readonly key used against a write route gets 403 Forbidden; a missing or unrecognized key gets 401 Unauthorized.
Common Operations
Both APIs support the same core operations:Error Handling
gRPC Error Codes
HTTP Status Codes
Data Types
Vector
A dense vector of floating-point values:- gRPC (Protobuf)
- HTTP (JSON)
Payload
Metadata attached to vectors:- gRPC (Protobuf)
- HTTP (JSON)
Similarity Metric
Distance function for search:Rate Limiting
VortexDB does not implement built-in rate limiting. For production deployments, use a reverse proxy or API gateway to enforce limits.Next Steps
gRPC Reference
Complete gRPC API documentation
HTTP Reference
Complete HTTP API documentation