---
title: "POST /projects/{project_id}/environments/{environment_id}/workflows/events"
method: POST
path: "/projects/{project_id}/environments/{environment_id}/workflows/events"
tags: ["Workflows"]
---

# POST /projects/{project_id}/environments/{environment_id}/workflows/events

`POST /projects/{project_id}/environments/{environment_id}/workflows/events`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/environments/{environment_id}/workflows/events`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `environment_id` integer, required

## Request body

- SendWorkflowEventRequest
  - `key` string, nullable: Narrows delivery to runs waiting on this key.
  - `name` string, required
  - `payload` object

## Response `200`

Event stored and delivered to the runs waiting on it

- SendWorkflowEventResponse
  - `delivered` integer, required: Runs woken by this event.
  - `event_id` integer, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Environment not found
- `413`: Payload too large
- `500`: Internal server error

## 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/projects/:project_id/environments/:environment_id/workflows/events/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)
