REST API Reference
Base URL
Section titled “Base URL”- Production:
https://api.graphdb-labs.com(viaedge-gateway) - Local dev:
http://localhost:8787(viagraphdb dev)
Authentication
Section titled “Authentication”In production, all requests require an API key:
Authorization: Bearer gdb_live_xxxxxxxxIn local dev (graphdb dev), include X-Tenant-Id header:
X-Tenant-Id: dev-tenantEndpoints
Section titled “Endpoints”Health
Section titled “Health”GET /healthProjects
Section titled “Projects”POST /v1/projects # Create projectGET /v1/projects # List projectsGET /v1/projects/{projectId} # Get projectGraphs
Section titled “Graphs”POST /v1/projects/{projectId}/graphs # Create graphGET /v1/projects/{projectId}/graphs # List graphsGET /v1/graphs/{graphId} # Get graphDELETE /v1/graphs/{graphId} # Delete graphSchema
Section titled “Schema”POST /v1/graphs/{graphId}/schema/node-types # Create node typeGET /v1/graphs/{graphId}/schema/node-types # List node typesPOST /v1/graphs/{graphId}/schema/edge-types # Create edge typeGET /v1/graphs/{graphId}/schema/edge-types # List edge typesPOST /v1/graphs/{graphId}/nodes # Create nodeGET /v1/graphs/{graphId}/nodes # List nodes (?type=X&limit=100&offset=0)GET /v1/graphs/{graphId}/nodes/{nodeId} # Get nodePUT /v1/graphs/{graphId}/nodes/{nodeId} # Update node propertiesDELETE /v1/graphs/{graphId}/nodes/{nodeId} # Delete nodePOST /v1/graphs/{graphId}/edges # Create edgeGET /v1/graphs/{graphId}/edges # List edges (?nodeId=X&direction=both)GET /v1/graphs/{graphId}/edges/{edgeId} # Get edgeDELETE /v1/graphs/{graphId}/edges/{edgeId} # Delete edgeTraversal
Section titled “Traversal”POST /v1/graphs/{graphId}/traverse # BFS traversalAgentic Query
Section titled “Agentic Query”POST /v1/graphs/{graphId}/agentic-query # Vector + graph hybrid queryError format
Section titled “Error format”All errors follow a consistent JSON format:
{ "error": "validation_error", "details": { "fieldErrors": { "type": ["Required"] }, "formErrors": [] }}| HTTP Status | Error code | Meaning |
|---|---|---|
| 400 | validation_error | Request body failed Zod validation |
| 403 | UNTRUSTED_REQUEST | Missing or invalid trust signature |
| 404 | graph_not_found | Graph ID not found for this tenant |
| 404 | node_not_found | Node ID not found in graph |
| 500 | internal_server_error | Unexpected server error |