Send single text message
Retrieve status of a sent SMS message
npx @superfaceai/cli install communication/send-sms
const { SuperfaceClient } = require('@superfaceai/one-sdk');
const sdk = new SuperfaceClient();
async function run() {
// Load the installed profile
const profile = await sdk.getProfile('communication/send-sms');
// Use the profile
const result = await profile
.getUseCase('SendMessage')
.perform({
to: '+12127290149',
from: '+4915207955279',
text: 'Your order is ready to be picked up!'
});
return result.unwrap();
}
run();
Switching providers Learn how to use automatic failover or switch between providers manually.
Missing your favorite provider? Tell us which provider you'd like to use.