> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tolmo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run a Cypher query

> Execute an openCypher query (org-scoped, read-only, temporary)



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/orgs/{orgSlug}/cypher
openapi: 3.0.3
info:
  title: Tolmo API
  version: 1.0.0
  description: >-
    The Tolmo REST API. Every endpoint is scoped to one organization and
    authenticated with an API token.
servers:
  - url: https://api.tolmo.com
    description: Production
security:
  - bearerAuth: []
paths:
  /api/v1/orgs/{orgSlug}/cypher:
    post:
      tags:
        - cypher
      summary: Run a Cypher query
      description: Execute an openCypher query (org-scoped, read-only, temporary)
      parameters:
        - schema:
            type: string
          in: path
          name: orgSlug
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  minLength: 1
                  maxLength: 10000
                parameters:
                  type: object
                  additionalProperties: {}
              required:
                - query
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  rows:
                    type: array
                    items:
                      type: object
                      additionalProperties: {}
                  metadata:
                    type: object
                    properties:
                      executionTimeMs:
                        type: number
                      rowCount:
                        type: number
                    required:
                      - executionTimeMs
                      - rowCount
                    additionalProperties: false
                required:
                  - rows
                  - metadata
                additionalProperties: false
        '412':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
components:
  schemas:
    HttpError:
      type: object
      properties:
        statusCode:
          type: number
        code:
          type: string
        error:
          type: string
        message:
          type: string
      title: HttpError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Tolmo API token, sent as `Authorization: Bearer <token>`. Either a
        user token (`usr_tok.*`, minted by `tolmo auth login`, scoped to your
        own permissions) or an org API token created in the Tolmo app, for CI
        and automation.

````