myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Create voice agent

POST

/api/v1/ext/voice-agents

Give an AI agent a voice.

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

NameInTypeRequiredDescription
workspace_id
body
number
yes
A workspace of the installer.
name
body
string
yes
Up to 255 characters.
agent_id
body
string
yes
The AI agent it speaks for (*List AI agents*).
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.
status
body
enumnoDefault active.

Responses

StatusWhen
201
Created
400
Missing name, agent_id or settings; a setting the AI service refused
401
Missing or invalid token
403
Voice agents are switched off for the account
403
Missing scope
404
AI agent does not exist or is not the installer's (same response for both)
409
That AI agent already has a voice agent
Request
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/voice-agents" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "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
  }
}'
Responses
Created
{
  "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"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/voice-agents
Previous

« Get voice agent

Next

Update voice agent »