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

# Submit a workflow for execution



## OpenAPI

````yaml api-reference/endpoints/executions/api-reference/openapi.json post /api/v1/workflows/{workflow_id}/run
openapi: 3.1.0
info:
  title: Polos Orchestrator API
  description: API for the Polos durable execution platform for AI agents
  contact:
    name: Polos Team
    url: https://github.com/polos-dev/polos
  license:
    name: ''
  version: 1.0.0
servers:
  - url: /
    description: Current server
security: []
tags:
  - name: Health
    description: Health check endpoints
  - name: Projects
    description: Project management endpoints
  - name: Agents
    description: Agent definition management
  - name: Tools
    description: Tool definition management
  - name: Workflows
    description: Workflow management
  - name: Executions
    description: Workflow execution management
  - name: Traces
    description: Observability traces
  - name: Events
    description: Event publishing and streaming
  - name: Event Triggers
    description: Event-based workflow triggers
  - name: Schedules
    description: Scheduled workflow execution
  - name: Workers
    description: Worker registration and management
  - name: Deployments
    description: Deployment management
paths:
  /api/v1/workflows/{workflow_id}/run:
    post:
      tags:
        - Executions
      summary: Submit a workflow for execution
      operationId: submit_workflow
      parameters:
        - name: workflow_id
          in: path
          description: Workflow ID to execute
          required: true
          schema:
            type: string
        - name: X-Project-ID
          in: header
          description: Project ID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitWorkflowRequest'
        required: true
      responses:
        '200':
          description: Workflow submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitWorkflowResponse'
        '400':
          description: Bad request
        '404':
          description: Project or deployment not found
        '500':
          description: Internal server error
      security:
        - bearer_auth: []
        - cookie_auth: []
components:
  schemas:
    SubmitWorkflowRequest:
      type: object
      description: Request to submit a workflow for execution
      required:
        - payload
      properties:
        concurrency_key:
          type:
            - string
            - 'null'
          description: Concurrency key for deduplication
        deployment_id:
          type:
            - string
            - 'null'
          description: Deployment ID (optional, uses latest if not provided)
        initial_state:
          description: Initial state for the workflow
        otel_traceparent:
          type:
            - string
            - 'null'
          description: OpenTelemetry trace parent (deprecated)
        parent_execution_id:
          type:
            - string
            - 'null'
          description: Parent execution ID (deprecated)
        payload:
          description: Input payload for the workflow
        queue_concurrency_limit:
          type:
            - integer
            - 'null'
          format: int32
          description: Queue concurrency limit
        queue_name:
          type:
            - string
            - 'null'
          description: Queue name for execution
        root_execution_id:
          type:
            - string
            - 'null'
          description: Root execution ID (deprecated)
        run_timeout_seconds:
          type:
            - integer
            - 'null'
          format: int32
          description: 'Timeout in seconds (default: 3600 = 60 minutes)'
        session_id:
          type:
            - string
            - 'null'
          description: Session ID for grouping executions
        step_key:
          type:
            - string
            - 'null'
          description: Step key identifier (deprecated)
        user_id:
          type:
            - string
            - 'null'
          description: User ID associated with the execution
        wait_for_subworkflow:
          type:
            - boolean
            - 'null'
          description: Whether to wait for subworkflow completion (deprecated)
    SubmitWorkflowResponse:
      type: object
      description: Response after submitting a workflow
      required:
        - execution_id
        - created_at
      properties:
        created_at:
          type: string
          description: Creation timestamp (RFC3339)
        execution_id:
          type: string
          description: Execution ID
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
    cookie_auth:
      type: apiKey
      in: cookie
      name: polos_auth

````