Verifies a NotificationChannel by proving receipt of the code delivered to the channel as a result of calling notificationChannels.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 following IAM permission on the specified resource name:
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 the notificationChannels.sendVerificationCode API method or that was retrieved from a verified channel via notificationChannels.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 of NotificationChannel.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-23 UTC."],[],[],null,["# Method: projects.notificationChannels.verify\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nVerifies a `NotificationChannel` by proving receipt of the code delivered to the channel as a result of calling `notificationChannels.sendVerificationCode`.\n\n### HTTP request\n\n`POST https://monitoring.googleapis.com/v3/{name}:verify`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [NotificationChannel](/monitoring/api/ref_v3/rest/v3/projects.notificationChannels#NotificationChannel).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/monitoring`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]