> ## Documentation Index
> Fetch the complete documentation index at: https://docs-xcor.paloaltonetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Notifier connections

> Credentials for notification delivery, referenced from notification policies.

A notifier connection is a Palo Alto Networks Cortex XCOR configuration
object that stores credentials and connection details for a third-party system
used when sending alert notifications. In the [Cortex XCOR API](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md),
Chronoctl, and Terraform, this resource is named `external_connection`. Each
notifier connection has a stable `slug` that other resources use to refer to it.
The display `name` can be updated later, but the `slug` cannot be changed after
creation.

## Supported integrations

In the [Cortex XCOR API](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md), the `external_connection` resource
includes optional blocks for supported integration types. Each stored connection
configures one integration:

* Slack: API URL and token for posting messages.
* PagerDuty: Events API routing or service key for outbound alerts, an optional
  REST API token for related polling, and an Events API version selector.
* Webhook: target URL and optional HTTP settings such as basic authentication,
  bearer token, or TLS verification behavior.
* VictorOps: API key and API URL.
* OpsGenie: API key, API URL, and optional HTTP settings similar to a webhook
  connection.

You can create multiple notifier connections, including more than one for the
same integration type when you need separate credentials. Cortex XCOR
sets `created_at` and `updated_at`.

## Create a notifier connection

Select from the following methods to create a notifier connection.

> [tab] Web
>
> Only
> [administrators](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/user-accounts.md#grant-system-administrator-sysadmin-privileges-to-users)
> can create notifier connections.
>
> To create a notifier connection:
>
> 1. In the navigation menu, select
>    \*\* Alerting >
>    Notifiers\*\*, then select the **Notifier connections** tab.
> 2. Click **Create connection**.
> 3. In the **Create notifier connection** drawer, enter a **Name**.
> 4. Select a **Notifier connection type**.
> 5. Complete the **Connection configuration** fields for the selected
>    type.
> 6. Click **Create**.

> [tab] Chronoctl
>
> To create a notifier connection with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl):
>
> 1. Run the following command to generate a sample configuration you can use
>    as a template:
>
>    ```shell theme={null}
>    chronoctl external-connections scaffold
>    ```
>
> 2. Complete the definition file, then submit it:
>
>    ```shell /FILE_NAME/ theme={null}
>    chronoctl external-connections create -f FILE_NAME
>    ```
>
>    Replace *`FILE_NAME`* with the name of your YAML definition file.
>
> For flags such as `--dry-run`, use the same patterns as other configuration
> resources in [Configuration commands](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl#configuration-commands).

> [tab] Terraform
>
> > [!NOTE]
> >
> > When you run `terraform plan` to generate an execution plan, Cortex XCOR automatically
> > tests configurations that include notification policies by submitting them as dry runs.
> > For details, see the
> > [Terraform provider](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform#validate-plans-with-dry-runs)
> > documentation.
>
> To create a notifier connection with [Terraform](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform),
> use an integration-specific resource type such as
> `chronosphere_slack_external_connection` or
> `chronosphere_pagerduty_external_connection`. Treat the Config API
> `ExternalConnection` schema in the [Cortex XCOR API](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md) reference
> as the canonical field description. For arguments that exist only in Terraform,
> consult the provider schema bundled with your version.
>
> 1. Add the resource definition to a Terraform file.
> 2. Run the following command to apply the changes:
>
>    ```shell theme={null}
>    terraform apply
>    ```

> [tab] API
>
> To create a notifier connection with the Cortex XCOR API, use the
> [`CreateExternalConnection`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/CreateExternalConnection)
> endpoint. Put the integration block under `external_connection`. Use the optional
> `dry_run` parameter to validate the request without persisting the connection.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

## View notifier connections

Select from the following methods to view notifier connections.

> [tab] Web
>
> In the navigation menu, select
> \*\* Alerting >
> Notifiers\*\*, then select the **Notifier connections** tab.
>
> The **Notifier connections** tab lists all connections with their
> **Connection type**, **Name**, and **Source**. Use **Filter by type** or
> **Search name** to narrow the list. Click a connection row to open it in the
> **Edit notifier connection** drawer.
>
> If a connection has recent delivery failures, the list marks it with a
> **Delivery failing** badge. Hold the pointer over the badge to view the causes.
> Select the connection to view banners with diagnostic messages, the number of
> affected monitors, and the failure duration. For remediation steps, see
> [Identify failed notification
> delivery](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications#identify-failed-notification-delivery).

> [tab] Chronoctl
>
> To list all notifier connections with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl), use the
> following command:
>
> ```shell theme={null}
> chronoctl external-connections list
> ```
>
> To view a single connection by slug, use `read`:
>
> ```shell /SLUG/ theme={null}
> chronoctl external-connections read SLUG
> ```
>
> Replace *`SLUG`* with the slug of the connection you want to view.

> [tab] Terraform
>
> [Use the Code config tool](https://docs-xcor.paloaltonetworks.com/tooling/gitops.md#use-the-code-config-tool) in
> Cortex XCOR to view the Terraform representation of a notifier
> connection.

> [tab] API
>
> To list all notifier connections, use the
> [`ListExternalConnections`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListExternalConnections)
> endpoint.
>
> To retrieve a single connection by slug, use
> [`ReadExternalConnection`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadExternalConnection).
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

## Update a notifier connection

Select from the following methods to update a notifier connection.

> [tab] Web
>
> To update a notifier connection:
>
> 1. In the navigation menu, select
>    \*\* Alerting >
>    Notifiers\*\*, then select the **Notifier connections** tab.
> 2. Click the connection you want to edit.
> 3. In the **Edit notifier connection** drawer, update the connection
>    fields. You can't change the connection type after creation.
> 4. Click **Save**.

> [tab] Chronoctl
>
> To update a notifier connection with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl):
>
> 1. Edit the definition file for the connection.
> 2. Run the following command to submit the changes:
>
>    ```shell /FILE_NAME/ theme={null}
>    chronoctl external-connections update -f FILE_NAME
>    ```
>
>    Replace *`FILE_NAME`* with the name of your YAML definition file.
>
> Chronoctl matches the connection to update by `slug`.

> [tab] Terraform
>
> To update a notifier connection with [Terraform](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform):
>
> 1. Edit the resource definition in your Terraform file.
> 2. Run the following command to apply the changes:
>
>    ```shell theme={null}
>    terraform apply
>    ```

> [tab] API
>
> To update a notifier connection with the Cortex XCOR API, use the
> [`UpdateExternalConnection`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/UpdateExternalConnection)
> endpoint. The optional `create_if_missing` parameter creates the connection if no
> match for the slug exists. Use `dry_run` to validate without persisting.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

## Delete a notifier connection

Select from the following methods to delete a notifier connection.

> [tab] Web
>
> Only administrators can delete notifier connections.
>
> To delete a notifier connection:
>
> 1. In the navigation menu, select
>    \*\* Alerting >
>    Notifiers\*\*, then select the **Notifier connections** tab.
> 2. Click the connection you want to delete.
> 3. In the **Edit notifier connection** drawer, click
>    **Delete notifier connection**.
> 4. Click **Delete** to confirm.

> [tab] Chronoctl
>
> To delete a notifier connection with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl):
>
> ```shell /SLUG/ theme={null}
> chronoctl external-connections delete SLUG
> ```
>
> Replace *`SLUG`* with the slug of the connection you want to delete.

> [tab] Terraform
>
> To delete a resource that's managed by [Terraform](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform):
>
> 1. Edit your Terraform configuration file to remove the pre-existing resource
>    definition.
> 2. Run this command to remove the resource from Cortex XCOR:
>
>    ```shell theme={null}
>    terraform apply
>    ```

> [tab] API
>
> To delete a notifier connection with the Cortex XCOR API, use the
> [`DeleteExternalConnection`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/DeleteExternalConnection)
> endpoint.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

## Notification policies and notifier connections

[Notification policies](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/policies.md) route alerts
to recipients. In the Cortex XCOR API, each severity on a route uses a notifier
list. For the notification policy JSON shape in the Config API, see
[`ReadNotificationPolicy`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadNotificationPolicy).
That list can reference existing notifier resources by `notifier_slugs`, or define
inline `destinations` that reference notifier connections. You can't set both on
the same notifier list.

For all notifiers except email, each destination sets `external_connection_slug`
to the slug of a notifier connection that stores the credentials for that
delivery. For email, set `addresses` only without referencing a notifier
connection.

Cortex XCOR validates that every `external_connection_slug` you
reference exists before accepting the policy.

Field-level routing for policies appears in
[Notifier connections and route destinations](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/policies.md#notifier-connections-and-route-destinations).

## Lifecycle and safety

Deleting a notifier connection fails if a notification policy or other
resource still references its slug, so credentials remain addressable until
you remove those references.

## Notifier resource migration

While you still use `notifier_slugs`, separate notifier resources apply. Field
reference for that model lives under
[Notifiers](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/notifiers), including
[Slack](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/notifiers/slack.md),
[PagerDuty](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/notifiers/pagerduty.md),
[Webhook](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/notifiers/webhook.md),
[VictorOps](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/notifiers/victorops.md), and
[OpsGenie](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/notifiers/opsgenie.md). To move a route
to notifier connections, create connections for those credentials, switch the
route to `destinations` and `external_connection_slug`, then drop `notifier_slugs`
one notifier list at a time.


## Related topics

- [Notifiers](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/notifiers.md)
- [Notification policies](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/policies.md)
- [Alert notifications](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications.md)
- [Monitor details](https://docs-xcor.paloaltonetworks.com/investigate/alerts/monitors/monitor-details.md)
- [Create a discard notifier](https://docs-xcor.paloaltonetworks.com/investigate/alerts/notifications/notifiers/discard.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.