---
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`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/v1/workflows/runs/{run_id}/events`
- Auth: API key in header `x-litellm-api-key`

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

## Changes

- **2026-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/v1/workflows/runs/:run_id/events/post.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/1ba9123c189a?raw)
