OriginChainDB
Database endpoints

Execute Cypher

Run an openCypher query and receive matching rows or write counts.

POST /v1/tenants/{tenant}/cypher

Run a graph pattern with CypherExplain previews read plans; it cannot explain a write here.
  1. Prepare the patternSupply Cypher and named parameter values.
  2. Execute the queryMatch graph patterns or apply the requested writes.
  3. Read the result kindDistinguish returned rows from write counts.

Before you start

Use your database bearer token.

Connection setup

For this example, register and populate demo.people. default_schema resolves node patterns that do not name a label.

Path parameters

FieldTypeRequired
tenantstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • default_schema (namespace.table) is used for node patterns without a label.
  • params supplies $name values as scalars (string, number, bool or null).
  • explain=true (default false) returns the plan a read would run without executing it, and is refused with 400 for a query that writes.
FieldTypeRequired
cypherstringRequired
default_schemastringOptional
explainbooleanOptional
paramsobjectOptional

Read the result

Check kind to distinguish returned rows from a write result. params supplies named values such as $name. explain: true previews a read plan and cannot be used to explain a write on this endpoint.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
409Resolve the conflict before retrying.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
499The client cancelled the request.
500Check the outcome before retrying a write.
501Check deployment support for this operation.
502Check service availability and the write outcome.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd