> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Dpd 2 in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/dpd2
Last updated: 2026-11-24

Share Dpd 2 with your team in Claude, ChatGPT and Cursor through Metorial: DPD API basic auth sign-in, 14 tools (13 read-only).

---

To give your team Dpd 2 in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Dpd 2 integration in a Metorial portal, and each person connects with a DPD API basic auth. Agents can read paged storefront, product, purchase, customer and subscriber data from DPD (Digital Product Delivery), verify notifications and subscription status, check API credentials, and submit acknowledged purchase reactivation with an exact readback. The integration has 14 tools, 13 read-only and 1 destructive, plus 1 trigger.

**What you will learn**

- How an admin shares Dpd 2 in a portal and how each person connects
- What Dpd 2 asks for when you connect, and where to find it
- How to keep the 13 read-only tools and reject the other 1

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- A DPD API basic auth from Dpd 2 for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **DPD API Basic Auth** | Custom credentials | `username` and `apiPassword` |

### DPD API Basic Auth

To connect, a person enters these values:

- `username`: Your DPD account username
- `apiPassword`: Your DPD API password (found in Profile > DPD API Credentials)

## Admin: share Dpd 2 in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Dpd 2. For how members connect, choose **Each person connects** so everyone enters their own DPD API basic auth, or **Shared connection** to enter one DPD API basic auth for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Dpd 2.

4. **Choose who gets it**

   Add the access groups that should see Dpd 2. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Dpd 2 integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "dpd 2"
```

## Employee: connect Dpd 2

### In the portal

1. **Open Dpd 2 in the catalog**

   Sign in to your portal and open Dpd 2. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your DPD API basic auth (username and apiPassword).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search "dpd 2"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Dpd 2 connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list "dpd 2"
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 13 read-only tools, such as `get_product` and `get_customer`, and lose the destructive tool `reactivate_purchase`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list "dpd 2"
metorial tools <integration-id>
metorial call <integration-id> list_storefronts -d '{}'
```

`metorial tools` lists the 14 tools, minus any you rejected. `list_storefronts` takes no input. It retrieves one page of storefronts (stores/websites) associated with your DPD account.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (13)

- `list_subscribers`: Retrieve subscribers for a specific subscription storefront. Needs `storefrontId`.
- `verify_subscriber`: Retrieve a subscriber's current subscription status within an exact storefront. Needs `storefrontId`.
- `get_purchase`: Retrieve detailed information about a specific purchase/order, including buyer details, line items with product keys, exact money strings, custom fields, coupons, and shipping counts when provided. Needs `purchaseId`.
- `get_subscriber`: Retrieve detailed information about a specific subscriber in a subscription storefront, including subscription status, pricing, trial details, and payment schedule. Needs `storefrontId` and `subscriberId`.
- `list_customers`: Search and filter customer records in your DPD account.
- `get_customer`: Retrieve detailed information about a specific DPD customer by their ID, including name, email, and newsletter subscription status. Needs `customerId`.
- `get_product`: Retrieve detailed information about a specific DPD product including pricing, description, SKU, file info, and image details. Needs `productId`.
- `list_products`: Retrieve one page of products in your DPD account.
- `list_purchases`: Search and filter purchase/order records in your DPD account.
- `list_storefronts`: Retrieve one page of storefronts (stores/websites) associated with your DPD account.
- `get_storefront`: Retrieve detailed information about a specific DPD storefront by its ID, including contact details, currency, type, and subdomain. Needs `storefrontId`.
- `verify_notification`: Verify that an incoming purchase notification (IPN) genuinely originated from DPD. Needs `notificationParams`.
- `get_api_status`: Check the connected Digital Product Delivery API credentials with its authenticated ping endpoint.

### Destructive tools (1)

- `reactivate_purchase`: Reactivate a purchase in DPD. Needs `purchaseId`.

## Triggers

Dpd 2 has 1 trigger, which fire on events in Dpd 2:

- `purchase_notification`: Triggers when a customer completes a purchase.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Dpd 2 there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Dpd 2 on metorial.com](https://metorial.com/integrations/dpd2): the integration overview