---
title: "Send a Message to a Task"
method: POST
path: "/v1/ai/agents/tasks/{taskId}/messages"
tags: ["AI Agent Tasks"]
---

# Send a Message to a Task

`POST /v1/ai/agents/tasks/{taskId}/messages`

Sends a follow-up message to a running or stopped task, resuming agent execution.

## Path parameters

- `taskId` string, uuid, required

## Request body

- SendMessageRequest — unresolved $ref

## Response `202`

Message sent successfully

- SendMessageResponse
  - `taskId` string, uuid — The unique identifier of the task

## Other responses

- `400` — Invalid request body
- `401` — Missing or invalid authentication token
- `403` — Insufficient permissions to send a message
- `404` — Task not found
- `502` — Upstream service error
- `504` — Upstream service timeout

---

[API](https://skmtc.net/maia/apis/maia-public-rest-api.md) · [All operations](https://skmtc.net/maia/apis/maia-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maia/maia-public-rest-api/revisions/6239825f68eb/schema)
