myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

End call

POST

/api/v1/ext/calls/{call_id}/end

Hang up a call this token placed — a person's or an AI's.

Auth: Bearer access_token
Scope: calls.write

For an AI call this stops the voice agent and hangs the device up. Repeating it on a call that already ended answers 200 with already_ended: true. channel helps find a call the server no longer tracks (after a restart): only that kind of device is asked to hang up.

Parameters

NameInTypeRequiredDescription
call_id
path
string
yes
The call id.
channel
body
enumnoHow the call was placed.

Responses

StatusWhen
200
OK
401
Missing or invalid token
403
Missing scope
404
Call does not exist or is not the installer's (same response for both)
Request
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/calls/{call_id}/end" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "channel": "imessage"
}'
Responses
OK
{
  "success": true,
  "message": "Call ended",
  "data": {
    "call_id": "c7f1a2b3-4d5e-4f60-8a9b-0c1d2e3f4a5b",
    "already_ended": false
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

The call id.

Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/calls/%7Bcall_id%7D/end
Previous

« Place a call

Next

Place an AI call »