---
title: Create a Notification policy
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Alerting](https://developers.cloudflare.com/api/go/resources/alerting)

[Policies](https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Create a Notification policy

client.Alerting.Policies.New(ctx, params) (\*[PolicyNewResponse](<https://developers.cloudflare.com/api/go/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20PolicyNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/alerting/v3/policies

Creates a new Notification policy.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Notifications Write``Account Settings Write`

##### ParametersExpand Collapse

<details>

<summary>

params PolicyNewParams

</summary>

AccountID param.Field\[string]

Path param: The account id

maxLength32

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

<details>

<summary>

AlertType param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a>]

Body param: Refers to which event will trigger a Notification dispatch. You can use the endpoint to get available alert types which then will give you a list of possible values.

</summary>

const PolicyNewParamsAlertTypeAbuseReportAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "abuse\_report\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const PolicyNewParamsAlertTypeAccessCustomCertificateExpirationType <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "access\_custom\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const PolicyNewParamsAlertTypeAdvancedDDoSAttackL4Alert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "advanced\_ddos\_attack\_l4\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

const PolicyNewParamsAlertTypeAdvancedDDoSAttackL7Alert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "advanced\_ddos\_attack\_l7\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

const PolicyNewParamsAlertTypeAdvancedHTTPAlertError <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "advanced\_http\_alert\_error"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

const PolicyNewParamsAlertTypeBGPHijackNotification <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "bgp\_hijack\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

const PolicyNewParamsAlertTypeBillingUsageAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "billing\_usage\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

const PolicyNewParamsAlertTypeBlockNotificationBlockRemoved <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "block\_notification\_block\_removed"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

const PolicyNewParamsAlertTypeBlockNotificationNewBlock <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "block\_notification\_new\_block"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

const PolicyNewParamsAlertTypeBlockNotificationReviewRejected <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "block\_notification\_review\_rejected"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

const PolicyNewParamsAlertTypeBotTrafficBasicAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "bot\_traffic\_basic\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

const PolicyNewParamsAlertTypeBrandProtectionAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "brand\_protection\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

const PolicyNewParamsAlertTypeBrandProtectionDigest <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "brand\_protection\_digest"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

const PolicyNewParamsAlertTypeClickhouseAlertFwAnomaly <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "clickhouse\_alert\_fw\_anomaly"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

const PolicyNewParamsAlertTypeClickhouseAlertFwEntAnomaly <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "clickhouse\_alert\_fw\_ent\_anomaly"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

const PolicyNewParamsAlertTypeCloudforceOneRequestNotification <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "cloudforce\_one\_request\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2015">Link to this property</a>

const PolicyNewParamsAlertTypeCNIMaintenanceNotification <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "cni\_maintenance\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2016">Link to this property</a>

const PolicyNewParamsAlertTypeCustomAnalytics <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "custom\_analytics"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2017">Link to this property</a>

const PolicyNewParamsAlertTypeCustomBotDetectionAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "custom\_bot\_detection\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2018">Link to this property</a>

const PolicyNewParamsAlertTypeCustomSSLCertificateEventType <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "custom\_ssl\_certificate\_event\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2019">Link to this property</a>

const PolicyNewParamsAlertTypeDedicatedSSLCertificateEventType <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "dedicated\_ssl\_certificate\_event\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2020">Link to this property</a>

const PolicyNewParamsAlertTypeDeviceConnectivityAnomalyAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "device\_connectivity\_anomaly\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2021">Link to this property</a>

const PolicyNewParamsAlertTypeDosAttackL4 <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "dos\_attack\_l4"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2022">Link to this property</a>

const PolicyNewParamsAlertTypeDosAttackL7 <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "dos\_attack\_l7"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2023">Link to this property</a>

const PolicyNewParamsAlertTypeExpiringServiceTokenAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "expiring\_service\_token\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2024">Link to this property</a>

const PolicyNewParamsAlertTypeFailingLogpushJobDisabledAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "failing\_logpush\_job\_disabled\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2025">Link to this property</a>

const PolicyNewParamsAlertTypeFbmAutoAdvertisement <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "fbm\_auto\_advertisement"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2026">Link to this property</a>

const PolicyNewParamsAlertTypeFbmDosdAttack <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "fbm\_dosd\_attack"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2027">Link to this property</a>

const PolicyNewParamsAlertTypeFbmVolumetricAttack <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "fbm\_volumetric\_attack"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2028">Link to this property</a>

const PolicyNewParamsAlertTypeHealthCheckStatusNotification <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "health\_check\_status\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2029">Link to this property</a>

const PolicyNewParamsAlertTypeHostnameAopCustomCertificateExpirationType <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "hostname\_aop\_custom\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2030">Link to this property</a>

const PolicyNewParamsAlertTypeHTTPAlertEdgeError <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "http\_alert\_edge\_error"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2031">Link to this property</a>

const PolicyNewParamsAlertTypeHTTPAlertOriginError <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "http\_alert\_origin\_error"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2032">Link to this property</a>

const PolicyNewParamsAlertTypeImageNotification <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "image\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2033">Link to this property</a>

const PolicyNewParamsAlertTypeImageResizingNotification <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "image\_resizing\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2034">Link to this property</a>

const PolicyNewParamsAlertTypeIncidentAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "incident\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2035">Link to this property</a>

const PolicyNewParamsAlertTypeLoadBalancingHealthAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "load\_balancing\_health\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2036">Link to this property</a>

const PolicyNewParamsAlertTypeLoadBalancingPoolEnablementAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "load\_balancing\_pool\_enablement\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2037">Link to this property</a>

const PolicyNewParamsAlertTypeLogoMatchAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "logo\_match\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2038">Link to this property</a>

const PolicyNewParamsAlertTypeMagicTunnelHealthCheckEvent <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "magic\_tunnel\_health\_check\_event"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2039">Link to this property</a>

const PolicyNewParamsAlertTypeMagicWANTunnelHealth <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "magic\_wan\_tunnel\_health"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2040">Link to this property</a>

const PolicyNewParamsAlertTypeMaintenanceEventNotification <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "maintenance\_event\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2041">Link to this property</a>

const PolicyNewParamsAlertTypeMTLSCertificateStoreCertificateExpirationType <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "mtls\_certificate\_store\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2042">Link to this property</a>

const PolicyNewParamsAlertTypePagesEventAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "pages\_event\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2043">Link to this property</a>

const PolicyNewParamsAlertTypeRadarNotification <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "radar\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2044">Link to this property</a>

const PolicyNewParamsAlertTypeRealOriginMonitoring <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "real\_origin\_monitoring"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2045">Link to this property</a>

const PolicyNewParamsAlertTypeScriptmonitorAlertNewCodeChangeDetections <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "scriptmonitor\_alert\_new\_code\_change\_detections"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2046">Link to this property</a>

const PolicyNewParamsAlertTypeScriptmonitorAlertNewHosts <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "scriptmonitor\_alert\_new\_hosts"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2047">Link to this property</a>

const PolicyNewParamsAlertTypeScriptmonitorAlertNewMaliciousHosts <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "scriptmonitor\_alert\_new\_malicious\_hosts"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2048">Link to this property</a>

const PolicyNewParamsAlertTypeScriptmonitorAlertNewMaliciousScripts <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "scriptmonitor\_alert\_new\_malicious\_scripts"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2049">Link to this property</a>

const PolicyNewParamsAlertTypeScriptmonitorAlertNewMaliciousURL <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "scriptmonitor\_alert\_new\_malicious\_url"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2050">Link to this property</a>

const PolicyNewParamsAlertTypeScriptmonitorAlertNewMaxLengthResourceURL <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "scriptmonitor\_alert\_new\_max\_length\_resource\_url"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2051">Link to this property</a>

const PolicyNewParamsAlertTypeScriptmonitorAlertNewResources <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "scriptmonitor\_alert\_new\_resources"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2052">Link to this property</a>

const PolicyNewParamsAlertTypeSecondaryDNSAllPrimariesFailing <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "secondary\_dns\_all\_primaries\_failing"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2053">Link to this property</a>

const PolicyNewParamsAlertTypeSecondaryDNSPrimariesFailing <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "secondary\_dns\_primaries\_failing"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2054">Link to this property</a>

const PolicyNewParamsAlertTypeSecondaryDNSWarning <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "secondary\_dns\_warning"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2055">Link to this property</a>

const PolicyNewParamsAlertTypeSecondaryDNSZoneSuccessfullyUpdated <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "secondary\_dns\_zone\_successfully\_updated"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2056">Link to this property</a>

const PolicyNewParamsAlertTypeSecondaryDNSZoneValidationWarning <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "secondary\_dns\_zone\_validation\_warning"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2057">Link to this property</a>

const PolicyNewParamsAlertTypeSecurityInsightsAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "security\_insights\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2058">Link to this property</a>

const PolicyNewParamsAlertTypeSentinelAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "sentinel\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2059">Link to this property</a>

const PolicyNewParamsAlertTypeStreamLiveNotifications <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "stream\_live\_notifications"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2060">Link to this property</a>

const PolicyNewParamsAlertTypeSyntheticTestLatencyAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "synthetic\_test\_latency\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2061">Link to this property</a>

const PolicyNewParamsAlertTypeSyntheticTestLowAvailabilityAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "synthetic\_test\_low\_availability\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2062">Link to this property</a>

const PolicyNewParamsAlertTypeTrafficAnomaliesAlert <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "traffic\_anomalies\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2063">Link to this property</a>

const PolicyNewParamsAlertTypeTunnelHealthEvent <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "tunnel\_health\_event"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2064">Link to this property</a>

const PolicyNewParamsAlertTypeTunnelUpdateEvent <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "tunnel\_update\_event"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2065">Link to this property</a>

const PolicyNewParamsAlertTypeUniversalSSLEventType <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "universal\_ssl\_event\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2066">Link to this property</a>

const PolicyNewParamsAlertTypeWebAnalyticsMetricsUpdate <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "web\_analytics\_metrics\_update"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2067">Link to this property</a>

const PolicyNewParamsAlertTypeZoneAopCustomCertificateExpirationType <a href="https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)">PolicyNewParamsAlertType</a> = "zone\_aop\_custom\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2068">Link to this property</a>

</details>

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_type">Link to this property</a>

Enabled param.Field\[bool]

Body param: Whether or not the Notification policy is enabled.

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20enabled">Link to this property</a>

Mechanisms param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)">Mechanism</a>]

Body param: List of IDs that will be used when dispatching a notification. IDs for email type will be the email address.

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20mechanisms">Link to this property</a>

Name param.Field\[string]

Body param: Name of the policy.

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20name">Link to this property</a>

AlertInterval param.Field\[string]Optional

Body param: Optional specification of how often to re-alert from the same incident, not support on all alert types.

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20alert_interval">Link to this property</a>

Description param.Field\[string]Optional

Body param: Optional description for the Notification policy.

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20description">Link to this property</a>

Filters param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)">PolicyFilter</a>]Optional

Body param: Optional filters that allow you to be alerted only on a subset of events for that alert type based on some criteria. This is only available for select alert types. See alert type documentation for more details.

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20filters">Link to this property</a>

</details>

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(method)%20create%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type PolicyNewResponse struct{…}

</summary>

ID stringOptional

UUID

maxLength32

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20PolicyNewResponse%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(model)%20PolicyNewResponse%20%3E%20(schema)>)

### Create a Notification policy

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/alerting"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  policy, err := client.Alerting.Policies.New(context.TODO(), alerting.PolicyNewParams{
    AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
    AlertType: cloudflare.F(alerting.PolicyNewParamsAlertTypeUniversalSSLEventType),
    Enabled: cloudflare.F(true),
    Mechanisms: cloudflare.F(alerting.MechanismParam{

    }),
    Name: cloudflare.F("SSL Notification Event Policy"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", policy.ID)
}
```

200 example

```
{
  "errors": [
    {
      "message": "message",
      "code": 1000
    }
  ],
  "messages": [
    {
      "message": "message",
      "code": 1000
    }
  ],
  "success": true,
  "result": {
    "id": "f174e90afafe4643bbbc4a0ed4fc8415"
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "message": "message",
      "code": 1000
    }
  ],
  "messages": [
    {
      "message": "message",
      "code": 1000
    }
  ],
  "success": true,
  "result": {
    "id": "f174e90afafe4643bbbc4a0ed4fc8415"
  }
}
```