Send text messages using the Contiguity JavaScript SDK.
Contiguity expects the recipient phone number to be formatted in E.164. You can attempt to pass numbers in formats like NANP, and the SDKs will try their best to convert it.
Copy
const res = await contiguity.text.send({ to: "+1234567890", message: "Hello from Contiguity!", // from: "+15555555555" // if you lease a number from Contiguity, you can provide it here});