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

# Validate a change to a pipeline

> Runs the same checks as replace without saving anything. A successful response is `{"valid": true}`.



## OpenAPI

````yaml /cdc-openapi.yaml post /pipelines/{id}/definition/validate
openapi: 3.0.3
info:
  title: Integrate.io ELT & CDC REST API
  description: >
    The Integrate.io ELT & CDC REST API lets you manage sources, destinations,
    and pipelines from

    outside the dashboard. Pipelines are described by a declarative definition
    document (YAML or

    JSON), so the same configuration can be version-controlled, reviewed, and
    reapplied across

    environments.


    ## Base URL

    All endpoints live under `/api/public/v1`.


    ## Authentication

    Requests are authenticated with a bearer API key:

    ```

    Authorization: Bearer fdk_<your-key>

    ```

    Every Integrate.io API key is prefixed with `fdk_`. The full key value is
    shown only once at

    creation time. Store it in a secret manager. If a key is lost or leaked,
    revoke it and create a

    new one.


    **Create a key:** in the dashboard, go to **Settings > API Keys**, click
    **Create API key**, give

    it a name (for example `terraform-prod`), and choose its access. Copy the
    value from the

    confirmation dialog; it is not shown again. Only account admins can create
    or revoke keys.


    **Access:** a **Read only** key can make `GET` requests, validate
    definitions, test connections,

    and read source schemas. A **Read and write** key can also create, change,
    start, stop, and

    archive. A request the key's access doesn't cover returns `403`.


    **Revoke a key:** from **Settings > API Keys**, open the action menu next to
    a key and choose

    **Revoke**. Revoked keys stop authenticating immediately and cannot be
    reactivated.


    ## Typical workflow

    1. Find the connector you need with `GET /connector-types`, and the settings
    it takes with
       `GET /connector-types/{type}`.
    2. Create a source and a destination with `POST /sources` and `POST
    /destinations`. Each is
       tested before it is saved.
    3. Read the source's tables with `POST /sources/{id}/schema`.

    4. Create a pipeline with `POST /pipelines`, then start it with `POST
    /pipelines/{id}/start`.

    5. Follow it with `GET /pipelines/{id}/status` and `GET
    /pipelines/{id}/events`.


    ## Pipeline definition document

    Create, replace, and validate requests take a declarative definition
    document. For the full

    schema, supported transformation types, and examples, see

    [Pipeline definition import and
    export](/cdc/pipeline-definition-import-export#pipeline-definition-document).


    ## Pagination

    List endpoints take `page` (starting at 1) and `page_size` (default 50,
    maximum 100), and return

    a `pagination` object with `page`, `page_size`, `total`, and `total_pages`.


    ## Rate limits

    Each key can make 300 requests per minute, and each account 600. Calls that
    reach out to a

    source or destination (creating, updating, or testing a connection, reading
    a source schema,

    and starting, stopping, or archiving a pipeline) are limited further, to 20
    per minute per key

    and 40 per account. Every response carries `X-RateLimit-Limit`,
    `X-RateLimit-Remaining`, and

    `X-RateLimit-Reset`. Over the limit, the API returns `429` with a
    `Retry-After` header giving the

    seconds to wait.


    ## Errors

    Error responses have a human-readable `detail` and a stable,
    machine-readable `code`:

    ```json

    {"detail": "Resource does not exist", "code": "not_found"}

    ```

    Branch on `code`, not `detail`, which may be reworded. Common codes:
    `bad_request`,

    `unauthorized`, `forbidden`, `not_found`, `conflict`, `invalid_request` (the
    body has the wrong

    shape; `detail` lists each problem), `request_too_large` (the body is over 5
    MB),

    `rate_limited`, and `connection_test_failed` (the checks are under `test`).
    Unknown IDs and IDs

    that belong to another account both return `404`.
  version: '1.0'
  contact:
    name: Integrate.io Support
    url: https://www.integrate.io
servers:
  - url: https://{host}/api/public/v1
    variables:
      host:
        default: console.flydata.app
        description: >-
          API host. Confirm with the Integrate.io team; the API may instead be
          served from a dedicated host such as api.flydata.app. The public API
          lives under the /api/public/v1 base path.
security:
  - bearerAuth: []
tags:
  - name: Connector Types
    description: >-
      The source and destination types you can create, and the settings each
      takes.
  - name: Sources
    description: Create, test, and manage the sources pipelines read from.
  - name: Destinations
    description: Create, test, and manage the destinations pipelines write to.
  - name: Pipelines
    description: Manage ELT & CDC pipelines, their definitions, and their activity.
paths:
  /pipelines/{id}/definition/validate:
    parameters:
      - $ref: '#/components/parameters/PipelineId'
    post:
      tags:
        - Pipelines
      summary: Validate a change to a pipeline
      description: >-
        Runs the same checks as replace without saving anything. A successful
        response is `{"valid": true}`.
      operationId: validatePipelineDefinition
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PipelineDefinition'
          application/yaml:
            schema:
              $ref: '#/components/schemas/PipelineDefinition'
      responses:
        '200':
          description: The definition is valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationResult'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    PipelineId:
      name: id
      in: path
      required: true
      description: Pipeline ID.
      schema:
        type: integer
  schemas:
    PipelineDefinition:
      type: object
      description: >-
        A customer-facing description of the pipeline. It omits credentials and
        internal fields. Unknown keys are rejected.
      required:
        - name
        - region
        - source_id
        - destination_id
        - sync
      properties:
        definition_version:
          type: integer
          description: Contract version. Currently 1.
          default: 1
        name:
          type: string
          example: orders-to-snowflake
        region:
          type: string
          description: Region the pipeline runs in. Set at creation only.
          example: us-east-1
        source_id:
          type: integer
          description: Existing source ID.
          example: 42
        destination_id:
          type: integer
          description: Existing destination ID.
          example: 17
        sync:
          $ref: '#/components/schemas/Sync'
        tables:
          type: array
          items:
            $ref: '#/components/schemas/Table'
        transformations:
          type: array
          description: Field-level transforms applied to records.
          items:
            $ref: '#/components/schemas/Transformation'
        hooks:
          type: array
          description: Existing notification hooks to attach to pipeline events.
          items:
            $ref: '#/components/schemas/Hook'
      additionalProperties: false
    ValidationResult:
      type: object
      properties:
        valid:
          type: boolean
          example: true
    Sync:
      type: object
      required:
        - frequency
      properties:
        frequency:
          type: integer
          description: How often data is loaded to the destination, in minutes.
          example: 5
        auto_sync_new_tables:
          type: boolean
          default: false
    Table:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          example: public.orders
        append_only:
          type: boolean
          default: false
        columns:
          type: object
          description: Select columns with `include` or `exclude` (not both).
          properties:
            include:
              type: array
              items:
                type: string
            exclude:
              type: array
              items:
                type: string
        sync_method:
          type: string
          readOnly: true
          description: Returned on reads. Set by the source, not settable.
    Transformation:
      type: object
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - exclude_fields
            - rename_fields
            - toggle_case
            - find_and_replace
            - replace_in_field_name
            - history_mode
            - change_timestamp
        table:
          type: string
        config:
          type: object
          additionalProperties: true
    Hook:
      type: object
      required:
        - id
      properties:
        id:
          type: integer
        events:
          type: array
          items:
            type: string
          example:
            - pipeline_errored
            - pipeline_stopped
    Error:
      type: object
      required:
        - detail
        - code
      properties:
        detail:
          description: Human-readable message. For `invalid_request`, a list of problems.
          oneOf:
            - type: string
            - type: array
              items:
                type: object
        code:
          type: string
          description: Stable, machine-readable error code.
          example: not_found
  responses:
    ValidationError:
      description: The definition failed validation. `detail` names the failing field.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The resource does not exist, or it belongs to another account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer API key, prefixed with fdk_.

````

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