myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Delete voice agent

DELETE

/api/v1/ext/voice-agents/{id}

Remove a voice agent; its call history stays.

Auth: Bearer access_token
Scope: voice_agents.write

Its past calls remain in *List voice calls* with voice_agent_deleted: true. The AI agent itself is untouched.

Parameters

NameInTypeRequiredDescription
id
path
string
yes
The voice agent id.
workspace_id
query
number
yes
A workspace of the installer.

Responses

StatusWhen
200
OK
401
Missing or invalid token
403
Voice agents are switched off for the account
403
Missing scope
404
Voice agent does not exist or is not the installer's (same response for both)
Request
curl -X DELETE "https://backend.mysmsgateway.app/api/v1/ext/voice-agents/{id}" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"
Responses
OK
{
  "success": true,
  "message": "Voice agent deleted",
  "data": {
    "id": "va_01HZX4Q8K2"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

The voice agent id.

Query parameters

A workspace of the installer.

Request URL
DELETEhttps://backend.mysmsgateway.app/api/v1/ext/voice-agents/%7Bid%7D
Previous

« Update voice agent

Next

Get inbound voice agent »