Appearance
Send Virtual SMS
POST /api/sms/virtual
This endpoint allows you to send a virtual SMS message to a phone number you own.
Example
sh
curl --request POST \
--url https://api.mailisk.com/api/sms/virtual \
--header 'Accept: application/json' \
--header 'X-Api-Key: {Api Key}' \
--data '{"from_number": "1234567890", "to_number": "1234567890", "body": "Hello, world!"}' \
--header 'Content-Type: application/json'js
const smsResponse = await mailisk.sendVirtualSms({
from_number: "15551234567",
to_number: "15557654321",
body: "Test message",
});Response
json
NoneRequest
Body
| Name | Description |
|---|---|
from_number | The phone number to send the SMS from. E.g. 1234567890 |
to_number | The phone number to send the SMS to (must be a number you own). E.g. 1234567890 |
body | The body of the SMS message. E.g. Hello, world! |
