Skip to content

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
None

Request

Body

NameDescription
from_numberThe phone number to send the SMS from. E.g. 1234567890
to_numberThe phone number to send the SMS to (must be a number you own). E.g. 1234567890
bodyThe body of the SMS message. E.g. Hello, world!