Skip to main content
POST

Body

string
required
Recipient phone number in E.164 format (e.g., +14155559999).
string
required
Message text. Maximum 1600 characters. SMS segments are 160 characters each (153 for multi-segment messages). Each segment costs 2 credits for US numbers.
string
ID of the Commune phone number to send from. Format: pn_.... If omitted, Commune uses the first active phone number on your account.
string[]
Array of publicly accessible media URLs for MMS (maximum 10 URLs). MMS costs 5 credits per message for US numbers. MMS is supported on US and CA numbers only.
number
Message expiry in seconds. If the message is not delivered within this window, it is marked failed. Range: 1–14400 (4 hours max).

Response

object
STOP/UNSTOP compliance: Commune automatically handles STOP, STOPALL, UNSUBSCRIBE, CANCEL, END, and QUIT keywords. Inbound STOP messages suppress the sender’s number — subsequent outbound messages to that number are silently blocked and return a 422 recipient_suppressed error. Inbound START, YES, or UNSTOP removes the suppression.
Rate limits:
  • 500 messages/day per phone number
  • 2,000 messages/day total per organization
  • 20,000 messages/month per organization
Exceeding these limits returns 429 rate_limit_exceeded.
Credit costs by country (outbound SMS):
Last modified on March 19, 2026