Retrieves a Message object.
Authorization
authorization AuthorizationBearer <token>
In: header
Path Parameters
id*string
The ID of the message to retrieve.
Response Body
application/json
application/json
curl -X GET "https://api.surge.app/messages/msg_01j9e0m1m6fc38gsv2vkfqgzz2"{
"attachments": [
{
"id": "att_01j9e0m1m6fc38gsv2vkfqgzz2",
"type": "image",
"url": "https://api.surge.app/attachments/att_01jbwyqj7rejzat7pq03r7fgmf"
}
],
"blast_id": null,
"body": "Thought you could leave without saying goodbye?",
"conversation": {
"contact": {
"first_name": "Dominic",
"id": "ctc_01j9dy8mdzfn3r0e8x1tbdrdrf",
"last_name": "Toretto",
"phone_number": "+18015551234"
},
"id": "cnv_01j9e0dgmdfkj86c877ws0znae",
"phone_number": {
"id": "pn_01jsjwe4d9fx3tpymgtg958d9w",
"number": "+18015552345",
"type": "local"
}
},
"id": "msg_01j9e0m1m6fc38gsv2vkfqgzz2",
"metadata": {
"external_id": "12345"
}
}{
"error": {
"message": "The requested resource could not be found.",
"type": "not_found"
}
}