Get Message by ID

Retrieve a previously sent message.

Path parameters

idintegerRequired>=1
Unique identifier of the message.

Headers

PINNACLE-API-KEYstringRequired

Response

Successfully retrieved the message.
contentobject
Content type of the message.
costdouble or null

Total cost charged for sending the message.

Null means the message incurred no cost or has not been charged yet.

deliveredAtstring or null

Timestamp indicating when the message was successfully delivered to the recipient.

Null indicates the message has not yet been delivered.

errorstring or null

Detailed explanation of any errors that occurred while delivering the message.

Null indicates no errors.

idinteger
Unique identifier of the message.
methodenum
Method used to send the message.
Allowed values:
numSegmentsinteger
Number of segments the message was split into for delivery.
receiverstring
Phone number that received the message in E.164 format.
senderstring
Phone number or agent that sent the message.
sentAtstring or null

Timestamp indicating when the message was submitted for delivery.

Null indicates the message is still in the queue.

statusenum
Current status of the message.
typeenum
Delivery protocol used for sending this message.
Allowed values:

Errors