Send SMS
Send SMS messages through the iOS device.
Interface Description
Interface Type
execShortcutParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
directive | string | ✅ | Fixed value 'sendSms' |
payload | object | ✅ | SMS parameters object |
payload.to | string/number | ✅ | Recipient phone number |
payload.content | string | ✅ | SMS content |
Return Value
javascript
true // Returns true on successful sendBasic Usage
javascript
// Send SMS
await apiInvoke('execShortcut', {
deviceId: 'P72578581E07',
directive: 'sendSms',
payload: {
to: '13800138000',
content: 'Hello World!'
}
});