myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Place a missed call

POST

/api/v1/ext/calls/missed-call

Ring a contact for a few seconds, then hang up.

Auth: Bearer access_token
Scope: calls.write

The Missed Call automation action: the first line in the workspace's Call Routing that can (the Android phone, the Mac, Twilio or the WhatsApp line) rings the contact for ring_seconds and hangs up before they can answer, so they see a missed call and call back or read the text that follows. Nothing is said on the line. 202 means the ring was queued on a device; a line that is offline moves on to the next one.

Parameters

NameInTypeRequiredDescription
workspace_id
body
number
yes
A workspace of the installer.
contact_id
body
numbernoThe contact to call: its phone number, or its email over FaceTime when it has none. One of contact_id, phone or email.
phone
body
stringnoA phone number with country code; filed against its contact when there is one.
ring_seconds
body
numberno3–60, default 3.

Responses

StatusWhen
202
Ringing
400
No recipient, ring_seconds out of range, no Call Routing, or no line that can ring
401
Missing or invalid token
403
Missing scope
404
Contact 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/missed-call" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7,
  "contact_id": 1234,
  "ring_seconds": 5
}'
Responses
Ringing
{
  "success": true,
  "message": "Missed call placed",
  "data": {
    "call_id": "mc-7a1b2c3d",
    "channel": "mac",
    "to": "+61412345678",
    "contact_id": 1234,
    "workspace_id": 7,
    "ring_seconds": 5,
    "from_number": null
  }
}
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/calls/missed-call
Previous

« Get WhatsApp call

Next

List lines »