---
title: "Send message to agent"
method: POST
path: "/workspaces/{id}/agent"
tags: ["agent"]
---

# Send message to agent

`POST /workspaces/{id}/agent`

## Path parameters

- `id` string, required

## Request body

- ProtoAgentMessage
  - `attachments` ProtoAttachment[]
    - `content` integer[]
    - `file_name` string
    - `file_path` string
    - `mime_type` string
  - `prompt` string
  - `run_id` string
  - `session_id` string

## Response `202`

Accepted

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.dev/charmbracelet/apis/crush-api.md) · [All operations](https://skmtc.dev/charmbracelet/apis/crush-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/charmbracelet/crush-api/revisions/81bee9ef86c6/schema)
