Method: users.settings.sendAs.verify
Sends a verification email to the specified send-as alias address. The verification status must be pending
.
This method is only available to service account clients that have been delegated domain-wide authority.
HTTP request
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
userId |
string
User's email address. The special value "me" can be used to indicate the authenticated user.
|
sendAsEmail |
string
The send-as alias to be verified.
|
Request body
The request body must be empty.
Response body
If successful, the response body is empty.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/gmail.settings.sharing
For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-04 UTC.
[null,null,["Last updated 2024-09-04 UTC."],[[["Sends a verification email to a specified send-as alias address which must have a 'pending' verification status."],["This method is exclusively for service account clients that have been delegated domain-wide authority."],["The request is sent as a POST request to the specified URL with path parameters for user ID and send-as email address."],["Requires the `https://www.googleapis.com/auth/gmail.settings.sharing` OAuth scope for authorization."]]],["This content outlines how to send a verification email to a specified send-as alias in Gmail using the API. The core action is a `POST` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify`. The `userId` and `sendAsEmail` are specified as path parameters. No request body is required. A successful request returns an empty response. This operation is for service account clients with domain-wide authority, and requires the `https://www.googleapis.com/auth/gmail.settings.sharing` authorization scope.\n"]]