---
title: "POST /workflow-runs/{run_id}/outcome"
method: POST
path: "/workflow-runs/{run_id}/outcome"
tags: ["Workflow Executor"]
---

# POST /workflow-runs/{run_id}/outcome

`POST /workflow-runs/{run_id}/outcome`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/workflow-runs/{run_id}/outcome`
- Auth: HTTP bearer

## Path parameters

- `run_id` string, uuid, required

## Request body

- WorkflowOutcomeRequest: `POST /workflow-runs/{run_id}/outcome` body.
  - `outcome` union, required: How an invocation ended.
    - object
      - `output` object
      - `type` 'completed', required
    - object
      - `error` string, required
      - `sequence` integer, nullable: The journal entry that failed, when a step did.
      - `type` 'failed', required
    - object: Suspended in `sleep`/`sleepUntil` until `until`.
      - `sequence` integer, required
      - `type` 'sleep', required
      - `until` string, date-time, required
    - object: Suspended in `waitForEvent`.
      - `event` string, required
      - `key` string, nullable
      - `sequence` integer, required
      - `timeout_at` string, date-time, nullable
      - `type` 'wait', required
    - object: A step attempt failed and is retried at `at`.
      - `at` string, date-time, required
      - `sequence` integer, required
      - `type` 'retry', required
    - object: Replay found a different step than the journal recorded.
      - `expected` string, required
      - `found` string, required
      - `sequence` integer, required
      - `type` 'incompatible', required

## Response `200`

Outcome applied (for executors that answered the invoke with 202)

- WorkflowOutcomeResponse
  - `status` 'queued' | 'running' | 'sleeping' | 'waiting' | 'retrying' | 'completed' | 'failed' | 'cancelled' | 'stuck', required: Where a run is in its lifecycle (ADR-106 §3).

## Other responses

- `400`: Invalid outcome
- `401`: Missing or invalid invocation token
- `404`: Run not found
- `409`: The token's lease is no longer current

## Changes

- **2026-11-15** `188ea295ffc6`: 1 info
  - endpoint added
- **2026-11-15** `72c32d8dee65`: 1 breaking
  - api path removed without deprecation
- **2026-11-14** `101ef74660bc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/workflow-runs/:run_id/outcome/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
