user: getMailTips
Namespace: microsoft.graph
Get the MailTips of one or more recipients as available to the signed-in user.
Note that by making a POST
call to the getMailTips
action, you can request specific types of MailTips to
be returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Mail.Read, Mail.Read.Shared |
Delegated (personal Microsoft account) | Mail.Read |
Application | Mail.Read |
HTTP request
POST /me/getMailTips
POST /users/{id|userPrincipalName}/getMailTips
Optional query parameters
This method supports the OData Query Parameters to help customize the response.
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. |
Content-Type | application/json |
Request body
In the request body, provide a JSON object with the following parameters.
Property | Type | Description |
---|---|---|
EmailAddresses | String collection | A collection of SMTP addresses of recipients to get MailTips for. |
MailTipsOptions | String | A enumeration of flags that represents the requested mailtips. Possible values are: automaticReplies , customMailTip , deliveryRestriction , externalMemberCount , mailboxFullStatus , maxMessageSize , moderationStatus , recipientScope , recipientSuggestions , and totalMemberCount . |
Response
If successful, this method returns a 200 OK
response code and a collection of mailTips objects in the response body.
Example
Request
The following example gets MailTips for the specified recipients, for any automatic reply settings and the mailbox full status.
POST https://graph.microsoft.com/v1.0/me/getMailTips
Content-Type: application/json
{
"EmailAddresses": [
"danas@contoso.onmicrosoft.com",
"fannyd@contoso.onmicrosoft.com"
],
"MailTipsOptions": "automaticReplies, mailboxFullStatus"
}
Response
Here is an example of the response. Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.mailTips)",
"value":[
{
"emailAddress":{
"name":"",
"address":"danas@contoso.onmicrosoft.com"
},
"automaticReplies":{
"message":"<style type=\"text/css\" style=\"\">\r\n<!--\r\np\r\n\t{margin-top:0;\r\n\tmargin-bottom:0}\r\n-->\r\n</style>\r\n<div dir=\"ltr\">\r\n<div id=\"x_divtagdefaultwrapper\" style=\"font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif\">\r\n<p>Hi, I am on vacation right now. I'll get back to you after I return.<br>\r\n</p>\r\n</div>\r\n</div>",
"messageLanguage":{
"locale":"en-US",
"displayName":"English (United States)"
},
"scheduledStartTime": {
"dateTime": "2018-08-07T02:00:00.0000000",
"timeZone": "UTC"
},
"scheduledEndTime": {
"dateTime": "2018-08-09T02:00:00.0000000",
"timeZone": "UTC"
}
},
"mailboxFull":false
},
{
"emailAddress":{
"name":"",
"address":"fannyd@contoso.onmicrosoft.com"
},
"automaticReplies":{
"message":""
},
"mailboxFull":false
}
]
}
Feedback
Submit and view feedback for