Method: projects.notificationChannels.verify

Verifies aNotificationChannel by proving receipt of the code delivered to the channel as a result of callingnotificationChannels.sendVerificationCode.

HTTP request

POST https://monitoring.googleapis.com/v3/{name}:verify

Path parameters

Parameters
name

string

Required. The notification channel to verify.

Authorization requires the followingIAM permission on the specified resourcename:

  • monitoring.notificationChannels.verify

Request body

The request body contains data with the following structure:

JSON representation
{"code":string}
Fields
code

string

Required. The verification code that was delivered to the channel as a result of invoking thenotificationChannels.sendVerificationCode API method or that was retrieved from a verified channel vianotificationChannels.getVerificationCode. For example, one might have "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only guaranteed that the code is valid UTF-8; one should not make any assumptions regarding the structure or format of the code).

Response body

If successful, the response body contains an instance ofNotificationChannel.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring

For more information, see theAuthentication Overview.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-23 UTC.