Send Event
Send an event to a running task.
POST
Send Event to Task
Content Types
TextPart
DataPart
Path Parameters
Body
application/json
Request for POST /tasks/{task_id}/events
Content accepts TextPart or DataPart only. Other message types (tool calls, reasoning, etc.) are agent-generated and sent via the /raw-events endpoint.
Response
Successful Response
Event returned from the events API.
Content is TextPart or DataPart (human-readable content only).
The UUID of the agent that the event belongs to
The UUID of the event
The sequence ID of the event
The UUID of the task that the event belongs to
Text content part.
- TextPart
- DataPart
The timestamp of the event
Server-advertised stream lifecycle capabilities for this event
Previous
Stream EventsStream events for a task by its unique ID using Server-Sent Events (SSE).
Supports automatic reconnection with Last-Event-ID header. When the client
reconnects, it sends the Last-Event-ID header with the last received event ID,
and the server resumes from that point.
Returns TextStreamPart events (Vercel AI SDK compatible format).
Next
Send Event to Task