Send text messages using the Contiguity JavaScript SDK.
Contiguity expects the recipient phone number to be formatted in E.164. The SDK does not convert formats.
Send SMS/MMS
const res = await contiguity.text.send({ to: "+1234567890", message: "Hello from Contiguity!", // from: "+15555555555", // attachments: ["https://example.com/image.png"] // optional, max 3});
Fetch a message
const res = await contiguity.text.get("msg_...");// Get a message by ID, optionally with trackingconst res = await contiguity.text.get("msg_...", { tracking: true });