Appearance
Search SMS messages
GET
/api/sms/{phone_number}/messages
This endpoint returns the latest SMS messages for a specific phone number.
When the wait query flag is set to true and no messages are found yet, the endpoint waits briefly and redirects back to the same URL so the client can retry the same request automatically.
Authorizations
ApiKey
Type
API Key (header: X-Api-Key)
Parameters
Path Parameters
phone_number*
Type
Requiredstring
Query Parameters
limit*
Type
Requirednumber
Minimum
1Maximum
100Default
20offset*
Type
Requirednumber
Minimum
0Default
0body
Type
string
from_number
Type
string
from_date
Type
string
to_date
Type
string
wait
Type
boolean
Default
falseResponses
application/json
JSON "total_count": 0, "options": { }, "data": [ { "id": "string", "sms_phone_number_id": "string", "body": "string", "from_number": "string", "to_number": "string", "provider_message_id": "string", "created_at": "string", "direction": "string" } ]
{
}
