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

# Validate a query

> Validates a SQL query without creating a pipeline. Returns the execution graph or validation errors.



## OpenAPI

````yaml /openapi/ingest.yaml post /pipelines/validate_query
openapi: 3.1.0
info:
  title: Ingest Engine HTTP API
  version: '1.0'
  description: >
    The Ingest Engine exposes an HTTP API for managing pipelines, connections,
    and jobs programmatically.


    All responses are JSON. Errors return an object with an `error` message.


    List endpoints use cursor-based pagination. Responses contain a `data` array
    and a `has_more` flag.

    Pass `?starting_after=<last_id>&limit=10` to get the next page.
servers:
  - url: http://{controllerHost}:8000/api/v1
    description: The Ingest Engine controller.
    variables:
      controllerHost:
        default: localhost
        description: Host name of the Ingest Engine controller.
security:
  - bearerAuth: []
tags:
  - name: Pipelines
    description: Create, update, restart, and delete pipelines.
  - name: Jobs
    description: >-
      A job is a single execution of a pipeline. Each time a pipeline starts or
      restarts, a new job is created.
  - name: Connection profiles
    description: >-
      A connection profile stores reusable connection credentials, such as Kafka
      bootstrap servers and authentication.
  - name: Connection tables
    description: >-
      A connection table defines a specific source or sink, binding a connector,
      connection profile, schema, and table-specific configuration together.
  - name: Connectors
    description: Metadata about available connectors.
  - name: Health
    description: Health checks.
paths:
  /pipelines/validate_query:
    post:
      tags:
        - Pipelines
      summary: Validate a query
      description: >-
        Validates a SQL query without creating a pipeline. Returns the execution
        graph or validation errors.
      operationId: validateQuery
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - query
              properties:
                query:
                  type: string
                  description: SQL query to validate.
            example:
              query: INSERT INTO sink SELECT * FROM source
      responses:
        '200':
          description: The execution graph and any validation errors.
          content:
            application/json:
              schema:
                type: object
                properties:
                  graph:
                    $ref: '#/components/schemas/Graph'
                  errors:
                    type: array
                    description: Validation errors. Empty when the query is valid.
                    items: {}
              example:
                graph:
                  nodes: []
                  edges: []
                errors: []
        default:
          $ref: '#/components/responses/Error'
components:
  schemas:
    Graph:
      type: object
      properties:
        nodes:
          type: array
          items: {}
        edges:
          type: array
          items: {}
    Error:
      type: object
      properties:
        error:
          type: string
          description: Descriptive error message.
      example:
        error: descriptive error message
  responses:
    Error:
      description: Error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Send the API token as `Authorization: Bearer <token>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.