#Legacy endpoints
Still supported. New integrations should use the other endpoints in this reference.
#Send a message (older path)
POST
/sms/sendThe same send as POST /v1/messages, with the text in message.
Body parameters
toE.164 stringRequired- Recipient. A 10-digit US number is treated as +1.
messagestringRequired- The text. Same length limits as
bodyon/v1/messages. consent_attestedbooleanRequired- Your promise that this recipient agreed to get texts from you.
Details
Enforced the same way as on/v1/messages: required, not refused yet. fromE.164 stringOptional- One of your numbers.
Details
Unlike/v1/messages, a number that isn't on your account is ignored here and Ready picks one. from_phone_number_idintegerOptional- Send from this number id instead (the
phone_number_idfrom a purchase). from_strategyenumOptionalDefaultlocallocal,even(ordeliverability) orrandom. Ignored whenfrom_phone_number_idis set.media_urlstringOptional- As on
/v1/messages. confirm_empty_mergebooleanOptional- As on
/v1/messages. conversation_idintegerOptional- As on
/v1/messages. quoted_message_idintegerOptional- As on
/v1/messages. override_quiet_hoursbooleanOptional- As on
/v1/messages.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | no code | to missing, or no message and no media_url. |
| 400 | MESSAGE_TOO_LONG | Too long. |
| 402 | insufficient_balance | Balance too low. |
| 4xx, 5xx | others | As on POST /v1/messages, except invalid_from. |
#Message log (dashboard)
GET
/sms/logsThe dashboard's message log. Use GET /v1/messages instead: rows here are raw and can change.
Query parameters
limitintegerOptionalDefault50Max1000- Page size.
offsetintegerOptionalDefault0- Rows to skip.
directionenumOptionalinboundoroutbound. Anything else returns no rows, with no error.statusstringOptional- Internal values:
sent,pending,delivered,failed,received.queuedmatches nothing here. searchstringOptional- A number or message text. Text searches cover only your most recent 10,000 messages.
Returns
data[]object[]- Message rows, without the
message_ida send returned.Details
Stable fields:id(integer),direction,from_number,to_number,body,status,segments,cost,created_at,delivered_at. hasMoreboolean- camelCase here.
totalis alwaysnull.
Errors
| HTTP | Code | When |
|---|---|---|
| 500 | no code | The log couldn't be loaded. Retry. |