---
title: "Launch workflow"
method: POST
path: "/workflow/launch"
tags: ["workflows"]
---

# Launch workflow

`POST /workflow/launch`

Submits a workflow execution.

## Query parameters

- `workspaceId` integer
- `sourceWorkspaceId` integer, nullable

## Request body

- SubmitWorkflowLaunchRequest
  - `launch` WorkflowLaunchRequest
    - `commitId` string
    - `computeEnvId` string
    - `configProfiles` string[]
    - `configText` string
    - `dateCreated` string, date-time
    - `entryName` string
    - `headJobCpus` integer
    - `headJobMemoryMb` integer
    - `id` string
    - `labelIds` integer[]
    - `launchContainer` string
    - `mainScript` string
    - `nextflowVersion` string, nullable — Nextflow release version to run this workflow with; must exist in the system catalog and satisfy the minimum configured for the compute environment's type.
    - `optimizationId` string
    - `optimizationTargets` string
    - `outputDir` string, nullable — Per-run output directory passed as Nextflow -output-dir (requires Nextflow 24.10.0 or later and workflow outputs syntax).
    - `paramsText` string
    - `pipeline` string
    - `pipelineSchemaId` integer
    - `postRunScript` string
    - `preRunScript` string
    - `pullLatest` boolean
    - `resume` boolean
    - `revision` string
    - `runName` string
    - `schemaName` string
    - `sessionId` string
    - `stubRun` boolean
    - `syntaxParser` 'v1' | 'v2', nullable
    - `towerConfig` string
    - `userSecrets` string[]
    - `workDir` string
    - `workspaceSecrets` string[]

## Response `200`

OK

- SubmitWorkflowLaunchResponse
  - `workflowId` string

## Other responses

- `400` — Bad request — single-failure launches return `ErrorResponse`; multi-failure launches return `WorkflowLaunchValidationErrorResponse` with a per-blocker `errors[]` array
- `403` — Operation not allowed

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/13316c9fe5ff/schema)
