---
title: "Launch a durable script workflow run"
method: POST
path: "/api/script-runs"
tags: ["Script Runs"]
---

# Launch a durable script workflow run

`POST /api/script-runs`

Foundation endpoint for Script Workflows v1. In PR 1 it persists the run and returns its dashboard URL; spawning is added by the supervisor PR.

## Request body

- object
  - `source` string, required
  - `args` unknown
  - `background` boolean
  - `idempotencyKey` string
  - `scriptName` string
  - `requestedByUserId` string

## Response `201`

Script run created

## Other responses

- `400` — Validation or label-lint failure
- `409` — Existing idempotent run returned
- `429` — Script run concurrency cap reached

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
