HTTP REST API
Complete REST API reference for NexaDB HTTP interface.
Note: Binary Protocol Recommended
For production applications, we recommend using the binary protocol which is 3-13x faster than HTTP/REST. See Binary Protocol docs.
Base URL
http://localhost:6970Endpoints
POST
/api/createCreate a new document in a collection
{
"collection": "users",
"data": {
"name": "Alice",
"email": "alice@example.com"
}
}GET
/api/get/:collection/:idRetrieve a document by ID
GET /api/get/users/doc_123PUT
/api/updateUpdate an existing document
{
"collection": "users",
"id": "doc_123",
"data": {
"name": "Alice Smith"
}
}DELETE
/api/delete/:collection/:idDelete a document
DELETE /api/delete/users/doc_123POST
/api/queryQuery documents with filters
{
"collection": "users",
"filter": { "age": { "$gt": 18 } },
"limit": 10
}