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"
}
'
{
  "id": "req_xxxxxxxxxxxxxxxx",
  "timestamp": 1772129047728,
  "api_version": "v2026.2.26",
  "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"

from
string | null

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

Example:

"+15555555555"

message
string

Message to send. Required unless attachments are provided.

Example:

"Hello, world!"

attachments
string[] | null

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

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

Fast-track your request (bypassing any recommended rate limiting). Only available on leased numbers. Requires acceptance of the Fast Track Terms.

Response

Send a text message

id
string
required
Example:

"req_xxxxxxxxxxxxxxxx"

timestamp
number
required
Example:

1772129047728

api_version
string
required
Example:

"v2026.2.26"

object
string
required
Example:

"response"

data
object
required