---
title: "Queue a bounded pilot or production run"
method: POST
path: "/credits/workflows/{workflowId}/runs"
tags: ["Hosted Workflows"]
---

# Queue a bounded pilot or production run

`POST /credits/workflows/{workflowId}/runs`

## Request

- Base URL: `https://api.paywithlocus.com/api`
- URL: `https://api.paywithlocus.com/api/credits/workflows/{workflowId}/runs`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

The run is a constrained child of the current connection and does not create another client or reusable credential.

## Path parameters

- `workflowId` string, uuid, required

## Request body

- WorkflowRunRequest
  - `version` integer, required
  - `input` object
  - `input_artifact_id` string, uuid
  - `mode` 'pilot' | 'run', required
  - `max_charge_credits` string, required: Non-negative exact decimal string with at most six fractional digits. Endpoint-specific positivity and amount limits still apply.
  - `max_rows` integer
  - `idempotency_key` string, required

## Response `200`

Idempotent replay of the original run

## Other responses

- `202`: Tenant-scoped durable Workflow run envelope
- `409`: Idempotency or saved-version conflict

---

[API](https://skmtc.dev/paywithlocus/apis/locus-pro-api.md) - [All operations](https://skmtc.dev/paywithlocus/apis/locus-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paywithlocus/apis/locus-pro-api/revisions/aab8fa5d6cef?raw)
