GET on Message

A GET on the Message endpoint returns a preview of the specified message. The message is returned regardless of the visibility timeout state on the queue. The visibility state is not modified when this action is called, therefore this action does not affect which messages are returned by a subsequent GET on MessageQueue request. See SetVisibilityTimeout for more information.

GET requests on a message are validated on the following:

Returns Success, the message body, and the message ID of the message specified if successful. It returns an error response if unsuccessful.

NameDescriptionTypeValue
MessageIdRequired. The message ID of the message to return.String.17VXQHSGX0SG4ZEPPK7R%7C0QE42ST4KW7RK9HSY074%7C0Z4AN912X0H2EP8BV6XJ

The following example of a GET action on a Message returns the message specified by the message ID.

See PeekMessage (Query) for sample response information.

ErrorDescription
MissingParameterMessageId parameter was not present in the request.
MessageNotFoundNo message exists with the MessageId specified.
InvalidURIThe URL for the queue is not valid or was not a URL returned by a POST or GET request on QueueService.