---
title: "Send Event"
method: POST
path: "/deployments/{deployment_name}/tasks/{task_id}/events"
---

# Send Event

`POST /deployments/{deployment_name}/tasks/{task_id}/events`

## Request

- The document declares no server URL.
- Auth: none declared

Send a human response event to a service for a specific task and session.

## Path parameters

- `deployment_name` string, required
- `task_id` string, required

## Query parameters

- `session_id` string, required

## Request body

- EventDefinition: The definition of event. To be used as payloads for service endpoints when wanting to send serialized Events. Attributes: event_object_str (str): serialized string of event.
  - `service_id` string, required
  - `event_obj_str` string, required

## Response `200`

Successful Response

- EventDefinition: The definition of event. To be used as payloads for service endpoints when wanting to send serialized Events. Attributes: event_object_str (str): serialized string of event.
  - `service_id` string, required
  - `event_obj_str` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/run-llama/apis/llamaindex-llama-deploy-api.md) - [All operations](https://skmtc.dev/run-llama/apis/llamaindex-llama-deploy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/run-llama/apis/llamaindex-llama-deploy-api/revisions/5ceeacddc3ab?raw)
