# Create voice agent

> Give an AI agent a voice.

Source: https://docs.mycrmsim.com/docs/voice-agents/create-voice-agent

```http
POST https://backend.mysmsgateway.app/api/v1/ext/voice-agents
```

- Category: myCRMSIM Calls / Voice Agents
- Auth: Bearer access token
- Scope: `voice_agents.write`

An AI agent can have one voice agent: a second answers **409**. The settings are checked by the AI service (the same rules as the Voice Agents page); a provider the workspace cannot use is refused with the reason. New voice agents are `active` unless `status: "paused"`.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | body | number | yes | A workspace of the installer. Example: `7` |
| `name` | body | string | yes | Up to 255 characters. Example: `Sales Voice` |
| `agent_id` | body | string | yes | The AI agent it speaks for (*List AI agents*). Example: `0f3b2c1d-7e8a-4b9c-a1d2-3e4f5a6b7c8d` |
| `settings` | body | object | yes | The voice: `mode` pipeline (stt + llm + tts) or realtime (one realtime model); `stt` { provider, model, language }, `llm` { model, temperature }, `tts` { provider, model, voice, speed }, `realtime` { provider, model, voice }; `greeting` (up to 600 characters), `voice_description`, `instructions` (up to 4000, added to the AI agent's prompt for calls), `responsiveness`, `allow_interruptions`, `disclose_ai`, `max_call_seconds` 60–3600, `inbound_answer_after_seconds` 5–60, `inbound_hours`. Providers, models and voices are in *Catalog*; a provider that needs the workspace's own key (`key_source: "tenant"`) must be connected in Settings first. Example: `{"mode":"pipeline","stt":{"provider":"deepgram","model":"nova-3","language":"en"},"llm":{"model":"gpt-4.1-mini","temperature":0.4},"tts":{"provider":"cartesia","model":"sonic-2","voice":"a0e99841-438c-4a64-b679-ae501e7d6091","speed":1},"greeting":"Hi, this is Sam from Acme. Is now a good time?"}` |
| `status` | body | enum | no | Default active. One of: `active`, `paused`. |

## Request body

```json
{
  "workspace_id": 7,
  "name": "Sales Voice",
  "agent_id": "0f3b2c1d-7e8a-4b9c-a1d2-3e4f5a6b7c8d",
  "settings": {
    "mode": "pipeline",
    "stt": {
      "provider": "deepgram",
      "model": "nova-3",
      "language": "en"
    },
    "llm": {
      "model": "gpt-4.1-mini",
      "temperature": 0.4
    },
    "tts": {
      "provider": "cartesia",
      "model": "sonic-2",
      "voice": "a0e99841-438c-4a64-b679-ae501e7d6091",
      "speed": 1
    },
    "greeting": "Hi, this is Sam from Acme. Is now a good time?",
    "max_call_seconds": 600
  }
}
```

## Response 201

Created

```json
{
  "success": true,
  "message": "Voice agent created",
  "data": {
    "id": "va_01HZX4Q8K2",
    "workspace_id": 7,
    "name": "Sales Voice",
    "agent_id": "0f3b2c1d-7e8a-4b9c-a1d2-3e4f5a6b7c8d",
    "agent_name": "Sales Agent",
    "status": "active",
    "answers_inbound": true,
    "settings": {
      "mode": "pipeline",
      "template_id": "receptionist",
      "stt": {
        "provider": "deepgram",
        "model": "nova-3",
        "language": "en"
      },
      "llm": {
        "model": "gpt-4.1-mini",
        "temperature": 0.4
      },
      "tts": {
        "provider": "cartesia",
        "model": "sonic-2",
        "voice": "a0e99841-438c-4a64-b679-ae501e7d6091",
        "speed": 1
      },
      "realtime": null,
      "greeting": "Hi, this is Sam from Acme. Is now a good time?",
      "voice_description": "Warm, unhurried, Australian.",
      "instructions": "Confirm the appointment and offer to reschedule if needed.",
      "responsiveness": "balanced",
      "allow_interruptions": true,
      "disclose_ai": true,
      "max_call_seconds": 600,
      "inbound_answer_after_seconds": 15,
      "inbound_hours": {
        "enabled": false,
        "timezone": "Australia/Sydney",
        "days": {
          "mon": {
            "enabled": true,
            "open": "09:00",
            "close": "17:00"
          }
        }
      }
    },
    "created_at": "2026-11-01T00:00:00+00:00",
    "updated_at": "2026-11-02T00:00:00+00:00"
  }
}
```

## Response 400

Missing name, agent_id or settings; a setting the AI service refused

```json
{
  "success": false,
  "code": "invalid_request",
  "message": "settings.tts.voice: a voice is required for cartesia"
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Voice agents are switched off for the account

```json
{
  "success": false,
  "code": "voice_agents_off",
  "message": "Voice agents are not enabled for this account."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): voice_agents.write. This integration was granted: …"
}
```

## Response 404

AI agent does not exist or is not the installer's (same response for both)

```json
{
  "success": false,
  "message": "AI agent not found or not accessible to this token"
}
```

## Response 409

That AI agent already has a voice agent

```json
{
  "success": false,
  "code": "agent_taken",
  "message": "This AI agent already has a voice agent."
}
```
