Neo4j
Cypher queries on graph databases (Query API)
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- Your Neo4j instance URLRequiredHTTPS URL
- DatabaseOptionalIdentifier
- UsernameOptional
- PasswordSecretRequired
Where to find them
- In Neo4j Aura (console.neo4j.io) open your instance and copy the “Connection URI”, changing neo4j+s:// to https:// (e.g. https://abc12345.databases.neo4j.io); for a self-hosted install use https://server:7473.
- Username and password: on Aura, the user neo4j and the password shown when the instance was created (if you lost it, reset it from the console); on a self-hosted install, a user with permissions on the database.
- The Query API is used; Aura has it enabled, and on self-hosted installs it is available from Neo4j 5.19 (before 5.25 you must enable it with server.http_enabled_modules=QUERY_API_ENDPOINTS).
Tools (1)
Neo4j API request
NEO4J_SEND_REQUESTAuthenticated call to the Neo4j API ({url}/db/{database}). Any endpoint of the API is allowed. Examples (Query API; the statement goes on a single line and queries with errors return 202 with “errors”): POST /query/v2 {"statement": "MATCH (n) RETURN n LIMIT 5"}, POST /query/v2 {"statement": "MATCH (p:Person {name: $name}) RETURN p", "parameters": {"name": "…"}}, POST /query/v2 {"statement": "CALL db.labels()"}. The response includes data.fields and data.values.
Required scopes
No scopes required
Input
Neo4j API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

