---
title: "Send task event"
method: POST
path: "/api/v1/task/{task_id}/event"
---

# Send task event

`POST /api/v1/task/{task_id}/event`

Send an event to a running task.

## Path parameters

- `task_id` string, required

## Cookies

- `apikey` string

## Request body

- TaskEvent — Task event model.
  - `name` string, required — The name of the event.
  - `payload` object, required — The payload of the event.
  - `id` string, nullable — The ID of the event.
  - `timestamp` integer, nullable — The timestamp of the event.

## Response `200`

Successful Response

- ApiResponseTaskEventResponse
  - `r` TaskEventResponse, required — Task event response model.
    - `id` string, required — The ID of the event.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/smooth/apis/circlemind-zero.md) · [All operations](https://skmtc.dev/smooth/apis/circlemind-zero/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smooth/circlemind-zero/revisions/472956a12adf/schema)
