> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.13/configure-cortex-xsoar/integrations/add-an-integration-instance.md).

# Add an integration instance

Configure an integration instance to connect and communicate with other products.

When you define an integration instance for your third-party security and incident management vendors events triggered by this integration instance can become incidents in Cortex XSOAR. When incidents are created, you can run playbooks on these incidents to enrich them with information from other products in your system. For indicators, you can run enrich those indicators depending on the integration instance and add to an incident if required.

Although you can view the integration documents when adding an instance, the [Developer Hub](https://xsoar.pan.dev/docs/welcome) has more detailed information about the integrations including commands, outputs, and recommended permissions. You can also see more information about content packs, playbooks, scripts, and Marketplace documentation.

Before you begin

* From Marketplace, download and install the relevant content pack, which includes your integration.
* Consider whether you want to add credentials, which enable you to save login information without exposing usernames, passwords, certificates, and SSH keys. For more information, see [Manage credentials](/cortex-xsoar-8-on-prem/8.13/configure-cortex-xsoar/integrations/manage-credentials.md).

1. Go to **Settings & Info** → **Settings** → **Integrations** → **instances** and search for the integration.
2. In the integration you want to add, click **Add instance**.
3. Add the parameters, as required.
4. If you want to fetch incidents, select the **Fetches incidents**.

   For more information, see [Fetch incidents from an integration instance](/cortex-xsoar-8-on-prem/8.13/configure-cortex-xsoar/integrations/add-an-integration-instance/fetch-incidents-from-an-integration-instance.md).
5. (Optional) To check that the integration instance is working correctly, click **Test**.
6. Save & Exit.

   Expand the integration to see more details such as the number of pulled incidents/indicators or error messages.

   ![integration-details.png](/files/SdvlSehEvev81S6KVvqj)

   You can also enable/disable the integration instance, copy the instance, and view the integration fetch history.

   If you encounter an error, see [Troubleshoot integrations](/cortex-xsoar-8-on-prem/8.13/configure-cortex-xsoar/integrations/add-an-integration-instance/troubleshoot-integrations.md).
7. (Optional) To manage access to specific commands, see [Configure integration permissions](/cortex-xsoar-8-on-prem/8.13/configure-cortex-xsoar/integrations/add-an-integration-instance/configure-integration-permissions.md).
8. (Optional) If you want to set up notifications on an incident fetch error, see [Receive notifications on an incident fetch error](/cortex-xsoar-8-on-prem/8.13/configure-cortex-xsoar/integrations/add-an-integration-instance/receive-notifications-on-an-incident-fetch-error.md).

   After initially ingesting incidents/indicators, you may need to customize incident/indicator types, fields, and layouts. If relevant to your integration, review and customize classifiers and mappers. Classification determines the type of incident/indicator ingested into Cortex XSOAR from a specific integration. You create a classifier and define that classifier in an integration, if applicable, mapping enables you to map the fields from your third-party integration to the fields in your layouts. For more information, see [Classification and mapping](/cortex-xsoar-8-on-prem/8.13/configure-cortex-xsoar/incident-configuration/classification-and-mapping.md).

#### Collect Settings fields

| Field             | Description                                                                                                                                                                                                                                                                                                                           |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Fetches incidents | <p>Fetches incidents from Cortex XDR. We recommend only fetching incidents when everything is set up.</p><p>When enabled, Cortex XSOAR searches for events that occurred within the time frame set for the integration, which is based on the specific integration. The default is 10 incidents per minute.</p>                       |
| Classifier        | Determines which type of incident type is created. For more information about classifiers, see [Classification and mapping](/cortex-xsoar-8-on-prem/8.13/configure-cortex-xsoar/incident-configuration/classification-and-mapping.md).                                                                                                |
| Incident type     | If a classifier does not exist, specify an incident type. If a classifier is specified it takes precedence when assigning an incident type to the fetched incident. Incident types determine what playbooks are running on the fetched incident.                                                                                      |
| Mapper (Incoming) | Determines how incoming data is mapped to the Cortex XSOAR incident fields. In this integration, we are given a default incoming and outgoing mapper. For more information about mappers, see [Classification and mapping](/cortex-xsoar-8-on-prem/8.13/configure-cortex-xsoar/incident-configuration/classification-and-mapping.md). |
| Mapper (Outgoing) | Specifies how Cortex XSOAR incident data should be mapped to external integrations (Cortex XDR). This is important when using incident mirroring.                                                                                                                                                                                     |

#### How to configure the Cortex XDR - Investigation and Response instance integration

In this example, set up the **Palo Alto Networks Cortex XDR - Investigation and Response** integration. If you have not done so, download the Cortex XDR content pack from Marketplace. Most integrations follow a similar configuration.

1. Go to **Settings & Info** → **Settings** → **Integrations** → **instances** and search for **Palo Alto Networks Cortex XDR - Investigation and Response**.
2. Click **Add Instance**.

   You can see the mandatory fields (with an asterisk) and on the right side, the documentation that contains a link to the full documentation including available commands. See [Palo Alto Networks Cortex XDR - Investigation and Response](https://xsoar.pan.dev/docs/reference/packs/palo-alto-networks-cortex-xdr---investigation-and-response).
3. In the **Incident Mirroring** field, specify the incident direction.
   * **Incoming:** Changes made to an incident in Cortex XDR are reflected in the fetched event in Cortex XSOAR.
   * **Outgoing:** Changes made in Cortex XSOAR for XDR incidents are reflected in the Cortex XDR tenant.
   * **Both:** Changes made in either platform are to be reflected in either Cortex XDR/XSOAR.
4. Add the **Server URL**, **API Key ID**, and the **API key** that you obtained from Cortex XDR.
5. Add the maximum number of incidents to fetch. By default, there is a maximum number of 10 incidents per minute.
6. Select whether you want only starred incidents from Cortex XDR and the number of days to fetch. By default, fetching is 3 days ago.
7. In the **First fetch timestamp** field, specify when the first fetch occurs. By default, fetching is 3 days ago.
8. Select the following:
   * Sync incident owners between Cortex XDR and Cortex XSOAR.
   * Whether to trust certificates not signed by a trusted security authority, such as self-signed certificates.
   * Whether to use the system proxy settings.
   * Whether to run on Prevent Only Mode to match the Cortex XDR tenant.
   * The incident status to fetch.
   * Incidents fetch interval. By default, the incidents are fetched every one minute.
   * The engine to run on.
   * When troubleshooting the instances troubleshooting adjust the default setting from off to a higher debugging level.
9. Specify how Cortex XSOAR collects, classifies, and maps fetched data. Configure the relevant **Collect Settings** fields.
10. Click **Test** and **Save & Exit**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.13/configure-cortex-xsoar/integrations/add-an-integration-instance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
