/gmail/v1/users/{userId}/settings/autoForwarding
GET
/gmail/v1/users/{userId}/settings/autoForwardingGets the auto-forwarding setting for the specified account.
Request
Path Params
userId
stringÂ
required
User's email address. The special value "me" can be used to indicate the authenticated user.
Request samples
Responses
Successful response(200)
Successful response
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
Auto-forwarding settings for an account.
disposition
enum<string>Â
optional
The state that a message should be left in after it has been forwarded.
Allowed values:
dispositionUnspecifiedleaveInInboxarchivetrashmarkRead
emailAddress
stringÂ
optional
Email address to which all incoming messages are forwarded. This email address must be a verified member of the forwarding addresses.
enabled
booleanÂ
optional
Whether all incoming mail is automatically forwarded to another address.
Example
{
"disposition": "dispositionUnspecified",
"emailAddress": "string",
"enabled": true
}
Last modified: 2 years ago