# Send a message to a task

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

Continues asynchronous work. Supplying attachments additionally requires files:write; each uploadId must come from POST /v1/uploads.

Required OAuth scopes: `tasks:write`

## Parameters

- `Idempotency-Key` (header, string, required): Required unique key. For 24 hours, retries with the same key and body replay the original response.
- `taskId` (path, string (uuid), required)

## Request body

- `content` (string)
- `attachments` (object[])
  - `uploadId` (string, required)
- `model` (object)
  - `slug` (string, required)
  - `fast` (boolean)
  - `effort` ("low" | "medium" | "high" | "xhigh" | "max" | null)

```json
{
  "content": "Make the wall thickness 3 mm and add fillets.",
  "model": {
    "fast": false,
    "slug": "pro",
    "effort": "high"
  }
}
```

## Responses

- `202`
  - `accepted` (true, required)
  - `task` (object, required)
    - `id` (string, required)
    - `title` (string, required)
    - `status` ("idle" | "queued" | "running" | "awaiting_input" | "completed" | "cancelled" | "failed", required)
    - `executionMode` ("adam" | "external")
    - `projectId` (string | null, required)
    - `model` (object | null, required)
    - `pendingInteraction` (object | null, required)
    - `createdAt` (string, required)
    - `updatedAt` (string, required)
- `400`: Invalid request
- `401`: Missing or invalid Bearer credential
- `402`: Payment or subscription required
- `403`: Credential is missing a required scope
- `404`: Resource not found
- `409`: Request conflict
- `429`: Rate limit exceeded
- `500`: Internal API error
