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

# Check a launch before running it

> Run the launch pre-flight for a project template against the targets in the body, without launching anything and without any side effect. The body is the same shape POST /library/project_template/{project_template}/_launch takes.
Returns every finding, each with a severity: a "blocker" refuses the launch, a "warning" does not. `ok` is false when any blocker is present. The same checks run inside _launch, so a launch cannot be started by skipping this call.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /library/project_template/{project_template}/_preflight
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /library/project_template/{project_template}/_preflight:
    post:
      tags:
        - library
      summary: Check a launch before running it
      description: >-
        Run the launch pre-flight for a project template against the targets in
        the body, without launching anything and without any side effect. The
        body is the same shape POST
        /library/project_template/{project_template}/_launch takes.

        Returns every finding, each with a severity: a "blocker" refuses the
        launch, a "warning" does not. `ok` is false when any blocker is present.
        The same checks run inside _launch, so a launch cannot be started by
        skipping this call.
      parameters:
        - description: Project template ID
          name: project_template
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
        description: Launch request to check
        required: true
      responses:
        '200':
          description: Findings, empty when the launch is ready
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_library_project_templates.PreflightResponse
        '400':
          description: Bad request - malformed body or template id
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: The template does not exist or you don't have access to it
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: The template or the checks could not be loaded
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_library_project_templates.PreflightResponse:
      type: object
      properties:
        email_estimate:
          $ref: >-
            #/components/schemas/pkg_routes_library_project_templates.EmailEstimate
        findings:
          type: array
          items:
            $ref: '#/components/schemas/pkg_routes_library_project_templates.Finding'
        ok:
          type: boolean
    pkg_routes_library_project_templates.EmailEstimate:
      type: object
      properties:
        exact:
          type: boolean
        senders:
          type: array
          items:
            $ref: >-
              #/components/schemas/pkg_routes_library_project_templates.EmailEstimateSender
    pkg_routes_library_project_templates.Finding:
      type: object
      properties:
        client:
          description: >-
            Client and Role say which role on which company would fix an
            unresolved

            assignment, so the wizard can offer to assign it on the spot rather
            than

            keeping a second, plan-blind role check of its own to do that.
          type: string
        code:
          type: string
        field:
          description: Field is the project data field a finding is about.
          type: string
        link:
          description: Link is somewhere to go and fix it, such as the bulk emails page.
          type: string
        message:
          type: string
        role:
          $ref: >-
            #/components/schemas/pkg_routes_library_project_templates.FindingRole
        severity:
          $ref: '#/components/schemas/pkg_routes_library_project_templates.severity'
        target:
          type: string
        task:
          type: string
    pkg_routes_library_project_templates.EmailEstimateSender:
      type: object
      properties:
        count:
          type: integer
        user:
          type: string
    pkg_routes_library_project_templates.FindingRole:
      type: object
      properties:
        kind:
          type: string
        name:
          type: string
    pkg_routes_library_project_templates.severity:
      type: string
      enum:
        - blocker
        - warning
      x-enum-varnames:
        - severityBlocker
        - severityWarning
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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