Skip to main content
POST
/
text
cURL
curl --request POST \
  --url https://api.contiguity.com/send/text \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "to": "+1234567890",
  "message": "Hello, world!"
}'
{
  "id": "req_xxxxxxxxxxxxxxxx",
  "timestamp": 1757916599341,
  "api_version": "v2025.9.15",
  "object": "response",
  "data": {
    "message_id": "text_1234567890"
  }
}
Phone numbers must be in E.164 format with country codes. The API will attempt to convert other formats like NANP, but will throw an error if conversion fails.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
to
string
required

Recipient's phone number. Must be in E.164 format

Example:

"+1234567890"

message
string
required

The text message to send

Example:

"Hello, world!"

from
string

If you lease a phone number from Contiguity, you can use a specific one by providing it here.

Example:

"+15555555555"

attachments
string[]

Attachments to send. Must be HTTPS-secured URLs with file extensions. Max 3 attachments, 5MB cumulative size.

Maximum length: 3
Example:
["https://example.com/image.png"]

Response

Send a text message

id
string
required
Example:

"req_xxxxxxxxxxxxxxxx"

timestamp
number
required
Example:

1757916599341

api_version
string
required
Example:

"v2025.9.15"

object
string
required
Example:

"response"

data
object
required
I