v1
latestSwagger 2.02026-07-13151175.7 KBShow Message
Get a the message by id.
GET /v1/messages/4023457654
Path parameters
The id of the message you want to retrieve
Response
The message detail
A unique identifier that is assigned when the message is created.
The message direction
The address part of the sender id
The phone number of the recipient
The content of the message
The type of the content. See the encoding field for more information.
See the protocolId field for more information.
See the messageClass field for more information.
The number of parts. If this is a concatenated message, the number of parts will be more than 1. Note that this field does not have a value in the submission response.
The cost of the message (in credits). Note that this field does not have a value in the submission response.
This field has a value only if the type is RECEIVED. With SMS messages, it is not possible to link a reply directly with a specific sent message. However, if you specified REPLIABLE in the from property, BulkSMS will link any reply to the most recent message sent to a given phone number.
The relatedSentMessageId property keeps the information about this link.
You can use this property to derive an implicit conversation from a set of messages.
- If a received reply message has a relatedSentMessageId, you can use it to retrieve the last message that was sent before the reply was received.
- If you have the id of the sent message and you want all the received messages that relate to it, you can use the List Related Messages Operation.
This is the value you supplied in the userSuppliedId field. Has a value only if the type is SENT.