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

# Run a manually triggered workflow

> Runs a workflow whose trigger is **Manually**, with the values of its run form. Values are checked against the saved form and against the fields later steps use; a problem returns 400 with code `MANUAL_RUN_INPUTS_INVALID` and the list of fields in `details.fields`. File fields must be files uploaded through the run form in the app. The submitted values pre-fill the form next time. Needs edit access and enough credits.




## OpenAPI

````yaml /openapi/automations.yaml post /workflows/{workflowId}/run/manual
openapi: 3.1.0
info:
  title: Connie Automations API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for automations. They authenticate with
    your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Workflows
    description: List, create, read, update and delete workflows.
  - name: Runs
    description: >-
      Start, retry and stop workflow runs, switch a workflow Live, and read run
      counts.
  - name: Triggers
    description: A workflow's triggers and its schedule settings.
  - name: Templates
    description: The template gallery and copying a template into a workspace.
  - name: Agents
    description: Agents on the Agents page.
paths:
  /workflows/{workflowId}/run/manual:
    post:
      tags:
        - Runs
      summary: Run a manually triggered workflow
      description: >
        Runs a workflow whose trigger is **Manually**, with the values of its
        run form. Values are checked against the saved form and against the
        fields later steps use; a problem returns 400 with code
        `MANUAL_RUN_INPUTS_INVALID` and the list of fields in `details.fields`.
        File fields must be files uploaded through the run form in the app. The
        submitted values pre-fill the form next time. Needs edit access and
        enough credits.
      operationId: runWorkflowManual
      parameters:
        - $ref: '#/components/parameters/workflowId'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                values:
                  type: object
                  additionalProperties: true
                  description: Form values keyed by each field's key.
                waitForResult:
                  type: boolean
                  default: false
                  description: Wait up to 30 seconds for the run to finish.
      responses:
        '200':
          description: The run started.
          content:
            application/json:
              schema:
                type: object
                properties:
                  runId:
                    type: string
                  status:
                    type: string
                    enum:
                      - running
                      - success
                      - error
                  started:
                    type: integer
                  error:
                    type:
                      - string
                      - 'null'
        '400':
          description: >
            The workflow has no Manually trigger ("Flow has no Manually trigger
            configured"), the saved form is invalid, or the submitted values
            don't pass the form's checks.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            The run form was changed while this request ran. Nothing was
            started; run again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          $ref: '#/components/responses/EngineUnavailable'
components:
  parameters:
    workflowId:
      name: workflowId
      in: path
      required: true
      description: >-
        The workflow's id, as in
        `https://connie.ai/<workspace-id>/workflows/<workflow-id>`.
      schema:
        type: string
        format: uuid
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
        details:
          description: Extra detail, for example the invalid fields.
      required:
        - error
  responses:
    Unauthorized:
      description: >-
        Not signed in (`UNAUTHORIZED`), or the session cookie has expired
        (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InsufficientCredits:
      description: Not enough credits to run (`INSUFFICIENT_CREDITS`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        You aren't a member of the workspace, or don't have the access this
        needs.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found, or not visible to you.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    EngineUnavailable:
      description: >-
        The workflow engine is briefly unavailable: "Flow server is currently
        unavailable. Please try again later."
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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