Guide
Helix Cloud runs one writer and two readers behind a routing
gateway. Applications send the same dynamic operation-tree request used in local and
embedded modes, or a Cypher or SQL statement to POST /v2/cypher or
POST /v2/sql, which the gateway routes by whether the statement writes.
Request flow
X-Helix-Require-Writer: true. With no reader
available, a read fails with 503 backend_unavailable rather than moving to the writer. See
Architecture.
Connect and send a request
Copy the endpoint and database ID from the database’s Connect panel in the dashboard, and create an API key. Send the database ID inX-Helix-Database-Id with every request;
without it, a shared (GA) gateway returns 400 tenant_id_required, and a dedicated
cluster returns 403 forbidden for a database key.
The TypeScript SDK (@helix-db/helix-db 3.2.0 and later) sends the header after
withDatabaseId:
400
tenant_id_not_allowed; omit it there. request.json holds the operation-tree body the SDKs send:
JSON
POST /v2/query. The same lookup as a Cypher statement goes in the query
field of a POST /v2/cypher body:
query_name is optional diagnostic metadata that names the query in
query insights. The query itself remains entirely inside the request;
there is no route deployment step.
Routing controls
SDK request builders expose advanced server-only controls, sent as headers:- Send a read to the writer (
X-Helix-Require-Writer: true) to read your own committed writes immediately. See read-after-write. - Warm caches without returning a result (
X-Helix-Warm: true). See Query warming. - Wait for durability (
X-Helix-Await-Durable). Helix Cloud writes always wait, and a write that sendsfalsereturns400invalid_request.
Query warming
Send an ordinary read request withX-Helix-Warm: true to execute it on every
eligible database backend without returning the query result. The gateway returns
204 No Content after at least one backend succeeds, including when another target
fails. If every target fails, the normal deterministic error response is returned.
Warming targets every database process that is currently serving, the writer included.
Add X-Helix-Require-Writer: true to target only the writer. Authentication, request rate limits,
retries, and the normal query timeout still apply before and during fanout.
Warming populates the storage and vector caches touched by the read; it does
not create a separate result cache. X-Helix-Warm: true or 1 enables warming;
false or 0 leaves the request on the ordinary query path. Invalid values and
warm write requests return 400 Bad Request; writes are rejected before backend
execution. A managed cluster with no eligible warming target returns
503 Service Unavailable.
Monitor queries
Give each query a stablequery_name. Query insights group runs by name; unnamed queries
group only with identical query JSON, so inlining different values splits them into separate
entries.
Users signed in to the Helix Cloud MCP can read the
same data with helix_get_query_insights, helix_get_query_latency (latency percentiles,
including p99), helix_list_query_recommendations, and helix_get_database_usage (hourly
or daily read and write counts).
Next steps
Architecture
Understand readers, the writer, storage, and routing.
Guarantees
Review transaction and durability behavior.
Security
Handle authentication and tenant isolation.
Cloud CLI workflow
Authenticate and connect a project.