Fetch a specific Message
Fetch a specific Message
Path parameters
The SID of the Account associated with the Message resource
The SID of the Message resource to be fetched
Response
OK
The text content of the message
The number of segments that make up the complete message. SMS message bodies that exceed the character limit are segmented and charged as multiple messages. Note: For messages sent via a Messaging Service, num_segments is initially 0, since a sender hasn't yet been assigned.
The direction of the message. Can be: inbound for incoming messages, outbound-api for messages created by the REST API, outbound-call for messages created during a call, or outbound-reply for messages created in response to an incoming message.
The sender's phone number (in E.164 format), alphanumeric sender ID, Wireless SIM, short code, or channel address (e.g., whatsapp:+15554449999). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
The recipient's phone number (in E.164 format) or channel address (e.g. whatsapp:+15552229999)
The RFC 2822 timestamp (in GMT) of when the Message resource was last updated
The amount billed for the message in the currency specified by price_unit. The price is populated after the message has been sent/received, and may not be immediately availalble. View the Pricing page for more details.
The description of the error_code if the Message status is failed or undelivered. If no error was encountered, the value is null. The value returned in this field for a specific error cause is subject to change as Twilio improves errors. Users should not use the error_code and error_message fields programmatically.
The URI of the Message resource, relative to https://api.twilio.com.
The SID of the Account associated with the Message resource
The number of media files associated with the Message resource.
The status of the Message. Possible values: accepted, scheduled, canceled, queued, sending, sent, failed, delivered, undelivered, receiving, received, or read (WhatsApp only). For more information, See detailed descriptions.
The SID of the Messaging Service associated with the Message resource. A unique default value is assigned if a Messaging Service is not used.
The unique, Twilio-provided string that identifies the Message resource.
The RFC 2822 timestamp (in GMT) of when the Message was sent. For an outgoing message, this is when Twilio sent the message. For an incoming message, this is when Twilio sent the HTTP request to your incoming message webhook URL.
The RFC 2822 timestamp (in GMT) of when the Message resource was created
The error code returned if the Message status is failed or undelivered. If no error was encountered, the value is null. The value returned in this field for a specific error cause is subject to change as Twilio improves errors. Users should not use the error_code and error_message fields programmatically.
The currency in which price is measured, in ISO 4127 format (e.g. usd, eur, jpy).
The API version used to process the Message
A list of related resources identified by their URIs relative to https://api.twilio.com