---
title: "Inject a message into a running agent session on a room"
method: POST
path: "/rooms/{id}/agent/message"
tags: ["Rooms"]
---

# Inject a message into a running agent session on a room

`POST /rooms/{id}/agent/message`

Sends a context message or instruction to the running agent. Supported by Deepgram (InjectAgentMessage), Pipecat (TextFrame), and VAPI (control URL). Returns 501 for ElevenLabs.

## Request body

- AgentMessageRequest
  - `message` string, required — Context or instruction to inject into the running agent session

## Response `200`

Message sent

- StatusResponse
  - `instance_id` string — Instance identifier
  - `status` string, required

## Other responses

- `400` — Invalid JSON or missing message
- `404` — No agent attached to this room
- `409` — Agent session not running
- `501` — Provider does not support message injection

---

[API](https://skmtc.net/voiceblender/apis/voiceblender-api.md) · [All operations](https://skmtc.net/voiceblender/apis/voiceblender-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voiceblender/voiceblender-api/versions/ad30827d3b57/schema)
