# Method: projects.notificationChannels.verify

- [HTTP request](https://docs.cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels/verify#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels/verify#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels/verify#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels/verify#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels/verify#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels/verify#body.aspect)
- [Try it!](https://docs.cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels/verify#try-it)

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](https://cloud.google.com/iam/docs/) 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 `https://docs.cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels#NotificationChannel`.

### 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 the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).