myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Set inbound voice agent

PUT

/api/v1/ext/voice-agents/inbound

Choose the voice agent that answers inbound calls, or none.

Auth: Bearer access_token
Scope: voice_agents.write

Parameters

NameInTypeRequiredDescription
workspace_id
body
number
yes
A workspace of the installer.
voice_agent_id
body
string
yes
A voice agent of the workspace, or null so nobody answers automatically.

Responses

StatusWhen
200
OK
401
Missing or invalid token
403
Voice agents are switched off for the account
403
Missing scope
404
The workspace is not the installer's, or the voice agent is not on it
Request
curl -X PUT "https://backend.mysmsgateway.app/api/v1/ext/voice-agents/inbound" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7,
  "voice_agent_id": "va_01HZX4Q8K2"
}'
Responses
OK
{
  "success": true,
  "message": "Inbound voice agent set",
  "data": {
    "workspace_id": 7,
    "inbound_voice_agent_id": "va_01HZX4Q8K2"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Body (JSON)
Request URL
PUThttps://backend.mysmsgateway.app/api/v1/ext/voice-agents/inbound
Previous

« Get inbound voice agent

Next

List voice calls »