Fetch a Message

This operation fetches a single Message using its ID.

Authentication

AuthorizationBasic

Basic authentication of the form Basic <account_id:auth_token>.

OR
AuthorizationBasic

Basic authentication of the form Basic <api_key:api_key_secret>.

Path parameters

messageIdstringRequired

Response

OK
attemptslist of objects
The list of attempts Twilio executed to process the Message.
contentobject
The resolved content of the Message.
createdAtstringformat: "date-time"
The date and time when the entity was created.
fromobject
The sender of the Message.
idstringformat: "^comms_message_[0-7][a-hjkmnpqrstv-z0-9]{25,34}"
A reference to a Message.
relatedlist of objects
A list of resources that are associated with the Message.
scheduledForstring or null

The scheduled send time of the Message. This field is only present if the Message was created with a schedule.

statusenum
The status of a `Message`. The status can be one of the following: - `SCHEDULED` The `Message` is scheduled to be sent by Twilio in the future. - `QUEUED` The `Message` is queued in Twilio for sending. - `SENT` The `Message` has been sent by Twilio. - `DELIVERED` The `Message` has been successfully delivered to the recipient. - `READ` The `Message` has been read by the recipient. - `UNDELIVERED` The `Message` was successfully sent by Twilio but have not been delivered to the recipient. - `FAILED` The `Message` processing failed inside Twilio. Use `GET /Messages/Operations/{operationId}/Errors` for more details. - `CANCELED` The `Message` was canceled via API request. - `GROUP` The `Message` is part of a group communication. To get the status for each Recipient of the group communication, use the `Receipts` endpoint e.g. GET `/Messages/comms_message_01h2xcejqtf2nbrexx3vqjhp41/Receipts` - `INBOUND` The `Message` was received by Twilio from an external source.
tagsmap from strings to strings
Custom metadata in the form of key-value pairs. Maximum size of a tag key is 128 characters. Maximum size of a tag value is 256 characters. There can be a maximum of 10 key-value pairs. This field can be templated with [Liquid](https://shopify.github.io/liquid/). Specify `variables` with each recipient for personalization.
tolist of objects
The list of recipient(s) that the Message was directed to. - This list is always of size 1, except for Group Messaging usage, where the number of recipients plus the sender will match the group size.
updatedAtstringformat: "date-time"
The date and time when the entity was last updated.

Errors

400
Bad Request Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error