> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-ai-for-work-dev.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring the DHL Action

<Badge icon="arrow-left" color="gray">[Back to Actions Integrations](/ai-for-service/integrations/overview#actions)</Badge>

Connect the Platform to DHL to find DHL locations and track shipments. See [DHL documentation](https://developer.dhl.com/documentation) for details.

***

## Supported Authorization Types

The platform supports Basic Auth for DHL integration. See [App Authorization Overview](/ai-for-service/app-settings#authorization-profiles) for details.

| Authorization Type                       | Supported |
| ---------------------------------------- | --------- |
| Pre-Authorize the Integration            | Yes       |
| Allow Users to Authorize the Integration | Yes       |

***

## Prerequisites

Before enabling the DHL action:

* Create a [DHL Developer](https://developer.dhl.com/documentation) account.
* Create a custom app on the DHL admin page.
* Copy your DHL API Key.

***

## Enable the DHL Action

Go to **App Settings > Integrations > Actions** and select **DHL** from the Available actions list.

### Pre-authorize the Integration (Basic Auth)

1. In the **Configurations** dialog, select the **Authorization** tab.

2. Set **Authorization Type** to **Pre-authorize the Integration** > **Basic Auth**.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/dhl-action-img2.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=62a86b8bf9a187bfa90c07056c78acf6" alt="Auth type" width="1052" height="817" data-path="ai-for-service/integrations/actions/images/dhl-action-img2.png" />

3. Enter your **API Key**.

4. Click **Enable**. On first configuration, the Integration Successful pop-up appears.

<Note>The DHL action moves from Available to Configured.</Note>

5. Click **Skip for Now** to install templates later.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/dhl-action-img4.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=0cff4cf0a8e368d2a3490e08f6bad21b" alt="Skip for now" width="787" height="306" data-path="ai-for-service/integrations/actions/images/dhl-action-img4.png" />

### Allow End Users to Authorize (Basic Auth)

1. In the **Configurations** dialog, select the **Authorization** tab.

2. Set **Authorization Type** to **Allow Users to Authorize the Integration** > **Basic Auth**.

3. Click **Select Authorization** > **Create New**.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/dhl-action-img5.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=38fa5d1a02b4612dfc16078ff9116224" alt="Create new auth profile" width="1071" height="827" data-path="ai-for-service/integrations/actions/images/dhl-action-img5.png" />

4. Select the authorization mechanism (for example, **API Key**).

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/dhl-action-img6.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=481a6c57ffbdba630f293528cb6c029b" alt="Auth mechanism" width="1079" height="907" data-path="ai-for-service/integrations/actions/images/dhl-action-img6.png" />

   See [App Authorization Overview](/ai-for-service/app-settings#authorization-profiles) for creating Basic Auth profiles.

5. Enter the following credentials:

   | Field                   | Description                              |
   | ----------------------- | ---------------------------------------- |
   | Name                    | Name for the Basic Auth profile          |
   | Tenancy URLs            | Select Yes if tasks require tenancy URLs |
   | Base URL                | Base tenant URL for the DHL instance     |
   | Authorization Check URL | Auth check URL                           |
   | Description             | Description of the auth profile          |

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/dhl-action-img7.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=56cd47fe201c6947c4d3a10ba072e573" alt="Auth credentials" width="632" height="503" data-path="ai-for-service/integrations/actions/images/dhl-action-img7.png" />

6. Click **Save Auth**, then select the new profile.

7. Click **Enable**. The Integration Successful pop-up appears.

***

## Install DHL Action Templates

1. On the Integration Successful dialog, click **Explore Templates**.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/dhl-action-img8.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=a6b7adf8f4b83afb66e62f58544f0bd8" alt="Explore templates" width="787" height="306" data-path="ai-for-service/integrations/actions/images/dhl-action-img8.png" />

2. Click **Install** for the desired template.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/dhl-action-img9.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=7a34515e915b2e14efa3afad0b13a194" alt="Begin installation" width="791" height="495" data-path="ai-for-service/integrations/actions/images/dhl-action-img9.png" />

3. The associated dialog task is auto-created. Click **Go to Dialog** or navigate to **Automation AI > Use Cases > Dialogs**.

4. To use the templates, see [Using DHL Action Templates](/ai-for-service/integrations/actions/using-the-dhl-action-templates).
