Skip to main content

Installing the SDK

1

Install the SDK

2

Initialize the Client

Sending a message

Contiguity expects the recipient phone number to be formatted in E.164. The JavaScript SDK does not convert formats.

Response

string
Unique identifier for the sent text message, used for tracking and delivery status.
object
Request metadata including ID, timestamp, and API version.

Parameters

text.send(params)

string
required
The recipient’s phone number in E.164 format (e.g., “+1234567890”).
string
The text message content to send to the recipient. Required unless attachments are provided.
string
Optionally, if you lease a number from Contiguity, you can provide it here to send from.
string[]
Optional array of HTTPS attachment URLs (max 3, 5MB cumulative) for MMS.