Outbound Messages
Get history
<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Messages%3A%20Send%0A/getOutboundMessagesHistory" target="_blank">Try in sandbox</a><br>Get the outbound messages history.
get/api/v2/history
Request
- Base URLhttps://rest.textmagic.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
limitinteger
The number of results per page.
lastIdinteger
Filter results by ID, selecting all values lesser than the specified ID.
querystring
Find message by specified search query.
orderBy'id' | 'phone' | 'sender' | 'firstName' | 'lastName' | 'messageTime'
Order results by some field. Default is id.
direction'asc' | 'desc'
Order direction. Default is desc.
Response
Returned when successful.
Example response
{
"lastId": 1,
"nextLastId": 1,
"limit": 10,
"resources": [
{
"id": 4991,
"text": "I love Textmagic!",
"status": "d",
"rejectReason": "a",
"contactId": 2764,
"sessionId": 3122,
"messageTime": "2019-08-12T11:43:37+0000",
"avatar": "avatars/dummy_avatar.png",
"deliveredAt": "2026-05-18T19:25:45+0000",
"charset": "ISO-8859-1",
"charsetLabel": "ISO-8859-1",
"firstName": "John",
"lastName": "Conway",
"country": "US",
"phone": "447624800500",
"price": 0.025,
"partsCount": 6,
"fromEmail": "test@email.com",
"fromNumber": "447624800500"
}
]
}Changes
No recorded changes to this operation across all 4 revisions of this API.