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

# Validate campaign draft

> Validate the stored editor draft graph for an already-created campaign by `campaignId` and return blocking errors plus non-blocking warnings. Use this to inspect an existing saved draft, including incomplete or complex internal drafts. This does not validate an arbitrary request payload.

This endpoint validates a campaign that already exists in Enginy. It reconstructs the stored draft graph for the requested `campaignId` and does not validate a newly submitted campaign payload.

Responses include direct Enginy app URLs when available. Responses include an `appUrl` that opens the campaign in Enginy. MCP agents should return those URLs to users whenever they are present in the response.

    > **Required scope:** `CAMPAIGNS_READ`
    >
    > **Rate limit:** 100 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json get /v1/campaign/{campaignId}/validate-draft
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/campaign/{campaignId}/validate-draft:
    get:
      tags:
        - Campaigns
      summary: Validate campaign draft
      description: >-
        Validate the stored editor draft graph for an already-created campaign
        by `campaignId` and return blocking errors plus non-blocking warnings.
        Use this to inspect an existing saved draft, including incomplete or
        complex internal drafts. This does not validate an arbitrary request
        payload.


        This endpoint validates a campaign that already exists in Enginy. It
        reconstructs the stored draft graph for the requested `campaignId` and
        does not validate a newly submitted campaign payload.


        Responses include direct Enginy app URLs when available. Responses
        include an `appUrl` that opens the campaign in Enginy. MCP agents should
        return those URLs to users whenever they are present in the response.

            > **Required scope:** `CAMPAIGNS_READ`
            >
            > **Rate limit:** 100 requests per minute
      parameters:
        - schema:
            type: string
            description: The campaign ID
          required: true
          description: The campaign ID
          name: campaignId
          in: path
      responses:
        '200':
          description: Stored campaign draft validated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      campaignId:
                        type: number
                        description: Unique identifier for the campaign.
                      appUrl:
                        type: string
                        format: uri
                        description: Direct Enginy app URL for opening the campaign.
                      campaignName:
                        type: string
                        description: Name of the campaign that was validated.
                      status:
                        type: string
                        enum:
                          - DRAFT
                          - PENDING
                          - ACTIVE
                          - COMPLETED
                          - DELETED
                        description: Current campaign status.
                      isValid:
                        type: boolean
                        description: >-
                          Whether the stored campaign draft currently passes
                          shared validation.
                      errors:
                        type: array
                        items:
                          type: string
                        description: >-
                          Blocking validation issues found in the stored
                          campaign draft.
                      warnings:
                        type: array
                        items:
                          type: string
                        description: >-
                          Non-blocking warnings found in the stored campaign
                          draft.
                    required:
                      - campaignId
                      - appUrl
                      - campaignName
                      - status
                      - isValid
                      - errors
                      - warnings
                required:
                  - status
                  - message
                  - data
        '400':
          description: Bad request - invalid campaign ID
        '404':
          description: Campaign not found
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````