---
title: "Append Workflow Event"
method: POST
path: "/v1/workflows/runs/{run_id}/events"
tags: ["workflow management"]
---

# Append Workflow Event

`POST /v1/workflows/runs/{run_id}/events`

Append an event to the run's event log. Also updates run.status if event_type maps to a status.

Sequence numbers use optimistic concurrency: on a unique-constraint collision
(concurrent append), retries up to _MAX_SEQUENCE_RETRIES times with a fresh MAX+1.
The event+status update is atomic in a single DB transaction.

## Path parameters

- `run_id` string, required

## Request body

- WorkflowEventCreateRequest
  - `event_type` string, required
  - `step_name` string, required
  - `data` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/flock/apis/litellm-api.md) · [All operations](https://skmtc.net/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flock/litellm-api/revisions/8fbaab4fc7c5/schema)
