List messages
Changed onReturns one page of every text message your dedicated phones have received and sent, across conversations, newest first, each with its full body and its conversation_id; direction tells them apart. Filter by phone_id, direction and when the platform stored the message (created_after, created_before), for example to collect everything since your last read. To read a conversation, use GET /conversations/{conversation_id}/messages. Only dedicated phones with a current rental receive messages; texts arriving on shared phones, or after a rental lapses, are never stored.
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-Axilio-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
max items per page
pagination offset
only messages on this phone
only messages stored at or after this time (RFC 3339)
only messages stored at or before this time (RFC 3339)
only received (inbound) or sent (outbound) messages
Sort expression '<field> [asc|desc]', direction defaulting to desc. field is created_at (when the platform stored the message), sent_at (when it was sent) or received_at (when the phone received it); messages without that time come last.
Response
OK
Example response
{
"$schema": "/api/v1/PhoneMessageListResponse.json",
"messages": [
{
"$schema": "/api/v1/PhoneMessage.json"
}
]
}Changes
- info
endpoint added
- info