Fetch a MessageItem
get
https://api.reach.talkylabs.com/rest/messaging/v1/fetch
This operation allows to fetch the API record associated to a message.
This operation needs the messageId
of the message to be fetched.
Parameters
messageIdstringrequired
The identifier of the message to be fetched.
Example 1: Fetch a message
curl -X GET https://api.reach.talkylabs.com/rest/messaging/v1/fetch?messageId=MIDXXXXXXXXXXXXXX -H "ApiUser: $REACH_TALKYLABS_API_USER" -H "ApiKey: $REACH_TALKYLABS_API_KEY"
Output example
{
"appletId": "AIDXXXXXXXXXXXX",
"apiVersion": "1.0.0",
"body": "Hello World! This is a sms message.",
"dest": "+237671234567",
"src": "+237691234567",
"bulkId": "myBulkGroup",
"numSegments": 1,
"numMedia": 0,
"price": 25.0,
"priceUnit": "xaf",
"messageId": "MIDXXXXXXXXXXXX",
"status": "sent",
"messageType": "outbound",
"errorCode": null,
"errorMessage": null,
"dateCreated": "2016-08-29T09:12:33.001Z",
"dateSent": "2016-08-29T09:12:34.001Z",
"dateUpdated": "2016-08-29T09:12:35.001Z"
}