---
title: "Attach a Deepgram Voice Agent to a room"
method: POST
path: "/rooms/{id}/agent/deepgram"
tags: ["Rooms"]
---

# Attach a Deepgram Voice Agent to a room

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

The agent joins as a virtual participant, hearing all participants (mixed-minus-self) and speaking to everyone.

## Request body

- DeepgramAgentRequest
  - `settings` object — Full Deepgram agent settings object (agent.listen, agent.think, agent.speak, etc.). When omitted, sensible defaults are used (nova-3 STT, gpt-4o-mini LLM, aura-2-asteria-en TTS).
  - `greeting` string — Agent greeting message
  - `language` string — Language code (e.g. "en", "es")
  - `api_key` string — API key override (falls back to DEEPGRAM_API_KEY env var)

## Response `200`

Agent started

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

## Other responses

- `400` — Invalid JSON
- `404` — Room not found
- `409` — Agent already attached to this room
- `503` — No Deepgram API key provided

---

[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/revisions/126565efa2b4/schema)
