List Send From devices
/api/v1/ext/send-from-options
The devices a workspace can send from — pass one as `send_from` on Send message.
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | query | number | yes | The workspace whose devices to list. Must belong to the installer. |
Responses
| Status | When |
|---|---|
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_optionsobjectAutomatic first, then each connected device
labelstringWhat to show for this option — the channel, device name and number, as in the dashboard.
WhatsApp · WhatsApp 179160 · 923001234567 #wa12valuestringWhat to pass as `send_from` on Send message. `""` = Automatic.
WhatsApp · WhatsApp 179160 · 923001234567 #wa12channelstringThe channel this device sends on: "sms", "whatsapp", "imessage" or "rcs". Null for Automatic.
whatsappcurl -X GET "https://backend.mysmsgateway.app/api/v1/ext/send-from-options" \
-H "Authorization: Bearer <ACCESS_TOKEN>"{
"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"
}
]
}The workspace whose devices to list. Must belong to the installer.
« List messages
Send message »
