myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Delete AI agent

DELETE

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

Delete an agent.

Auth: Bearer access_token
Scope: ai_agents.write

It stops answering at once. Cannot be undone; to stop it for now, set status to paused instead.

Parameters

NameInTypeRequiredDescription
id
path
string
yes
Agent id.
workspace_id
query
number
yes
A workspace of the installer.

Responses

StatusWhen
200
OK
401
Missing or invalid token
403
Missing scope
404
workspace_id does not exist or is not the installer's (same response for both)
404
The agent does not exist or is in another workspace
Request
curl -X DELETE "https://backend.mysmsgateway.app/api/v1/ext/ai-agents/{id}" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"
Responses
OK
{
  "success": true,
  "message": "AI agent deleted",
  "data": {
    "id": "a3f1c2d4-5b6e-4f70-8a91-b2c3d4e5f607"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

Agent id.

Query parameters

A workspace of the installer.

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

« Duplicate AI agent

Next

Preflight »