myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

List Send From devices

GET

/api/v1/ext/send-from-options

The devices a workspace can send from — pass one as `send_from` on Send message.

Auth: Bearer access_token
Scope: messages.send

Lists the devices connected to a workspace, the same list as the Send From dropdown on a contact in app.mycrmsim.com → Conversations: its SIMs (Android/SMS), iMessage Macs, WhatsApp numbers and ready RCS devices. The first option is always Automatic (value = ""): the workspace Message Routing and the contact's assigned user decide the device, as when send_from is left out. To send from one device, take its value and pass it as send_from on Send message. The device also decides the channel — a WhatsApp device sends over WhatsApp, a SIM over SMS. channel tells you which before you send. Values are the device labels and can change when a device is renamed or reconnected, so read the list again rather than storing a value for long.

Parameters

NameInTypeRequiredDescription
workspace_id
query
number
yes
The workspace whose devices to list. Must belong to the installer.

Responses

StatusWhen
200
OK — Automatic first, then the workspace's devices
400
Validation — no workspace_id
401
Missing or invalid token
403
Missing scope (messages.send or messages.read)
404
workspace_id is not accessible to this token

Response schema

send_from_optionsobject

Automatic first, then each connected device

labelstring

What to show for this option — the channel, device name and number, as in the dashboard.

Example:WhatsApp · WhatsApp 179160 · 923001234567 #wa12
valuestring

What to pass as `send_from` on Send message. `""` = Automatic.

Example:WhatsApp · WhatsApp 179160 · 923001234567 #wa12
channelstring
nullable

The channel this device sends on: "sms", "whatsapp", "imessage" or "rcs". Null for Automatic.

Example:whatsapp
Request
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/send-from-options" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"
Responses
OK — Automatic first, then the workspace's devices
{
  "success": true,
  "data": [
    {
      "label": "Automatic (assigned user / default device)",
      "value": "",
      "channel": null
    },
    {
      "label": "SMS · SIM 2 · SIM 2 · +923015268400 #sm7-1",
      "value": "SMS · SIM 2 · SIM 2 · +923015268400 #sm7-1",
      "channel": "sms"
    },
    {
      "label": "WhatsApp · WhatsApp 179160 · 923001234567 #wa12",
      "value": "WhatsApp · WhatsApp 179160 · 923001234567 #wa12",
      "channel": "whatsapp"
    }
  ]
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Query parameters

The workspace whose devices to list. Must belong to the installer.

Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/send-from-options
Previous

« List messages

Next

Send message »