### Generate an API Key and API Key ID <~XSIAM> 1. Go to Settings -> Configurations -> API Keys. 2. Click the **+New Key** button in the top right corner. 3. Generate a key of type **Advanced**. 4. Copy and paste the key. 5. From the ID column, copy the Key ID. <~XSOAR_SAAS> 1. Go to Settings -> API Keys. 2. Click the **+New Key** button in the top right corner. 3. Generate a key of type **Advanced**. 4. Copy and paste the key. 5. From the ID column, copy the Key ID. <~XSOAR_ON_PREM> 1. Go to Settings -> Integrations -> API Keys. 2. Click the **Get your key** button in the top left corner. 3. Generate a key. 4. Copy and paste the key. ### URL <~XSIAM> 1. Go to **Settings** -> API Keys. 2. Click the **Copy URL** button in the top right corner. <~XSOAR_SAAS> 1. Go to **Settings & Info** > **Settings** > **Integrations** > **API Keys**. 2. Click the **Copy URL** button in the top right corner. <~XSOAR_ON_PREM> Enter the server URL. ### NOTES: <~XSOAR_ON_PREM> You do not need to provide an API Key ID. <~XSOAR_SAAS> Make sure your API key has the proper permissions. For more information, please refer to the [Roles Management](https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/8/Cortex-XSOAR-Cloud-Documentation/Roles-management) documentation. <~XSIAM> Make sure your API key has the proper permissions. For more information, please refer to the [Roles Management](https://docs-cortex.paloaltonetworks.com/r/Cortex-XSIAM/Cortex-XSIAM-Administrator-Guide/Manage-Roles) documentation.