Inbound Messages
Find inbound messages
<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Messages%3A%20Receive%0A/searchInboundMessages" target="_blank">Try in sandbox</a><br>Find inbound messages by given parameters.
get/api/v2/replies/search
Request
- Base URLhttps://rest.textmagic.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pageinteger
Fetch specified results page.
limitinteger
The number of results per page.
idsstring
Find message by ID(s).
querystring
Find recipients by specified search query.
orderBy'id' | 'sender' | 'receiver' | 'messageTime' | 'firstName' | 'lastName'
Order results by some field. Default is id.
direction'asc' | 'desc'
Order direction. Default is desc.
expand0 | 1
Expand by adding firstName, lastName and contactId.
Response
Returned when successful.
Example response
{
"page": 1,
"pageCount": 10,
"limit": 10,
"resources": [
{
"id": 1782832,
"sender": "447860021130",
"receiver": "447624800500",
"messageTime": "2012-11-28T18:38:28+0000",
"text": "I Love Textmagic!",
"contactId": 1,
"firstName": "Charles",
"lastName": "Conway",
"avatar": "avatars/dummy_avatar.png",
"email": "charles@example.com"
}
]
}Changes
No recorded changes to this operation across all 4 revisions of this API.