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

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

Share Tapfiliate with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 43 tools (18 read-only).

---

To give your team Tapfiliate in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Tapfiliate integration in a Metorial portal, and each person connects with an API key. Agents can manage affiliate marketing programs, affiliates, customers, conversions, and commissions. The integration has 43 tools, 18 read-only, 20 write and 5 destructive, plus 3 triggers.

**What you will learn**

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

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from Tapfiliate 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 |
| --- | --- | --- |
| **API Key** | API token | `token` |

### API Key

To connect, a person enters:

- `token`: Your Tapfiliate API key. Found in Profile Settings > API Key.

## Admin: share Tapfiliate 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 Tapfiliate. For how members connect, choose **Each person connects** so everyone enters their own API key, or **Shared connection** to enter one API key for everyone.

3. **Limit the tools**

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

4. **Choose who gets it**

   Add the access groups that should see Tapfiliate. 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 Tapfiliate integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search tapfiliate
```

## Employee: connect Tapfiliate

### In the portal

1. **Open Tapfiliate in the catalog**

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

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API key (token).

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 tapfiliate
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Tapfiliate 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 tapfiliate
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 18 read-only tools, such as `get_payment` and `get_program`, and lose the 20 write tools, such as `create_click` or `create_payment`, and the 5 destructive tools, such as `cancel_payment` or `delete_customer`.

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 tapfiliate
metorial tools <integration-id>
metorial call <integration-id> list_affiliate_groups -d '{}'
```

`metorial tools` lists the 43 tools, minus any you rejected. `list_affiliate_groups` takes no input. It lists all affiliate groups.

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

## Tools

### Read-only tools (18)

- `list_customers`: List referred customers with optional filters by program, customer ID, affiliate, and date range.
- `list_affiliate_groups`: List all affiliate groups.
- `list_conversions`: List conversions with optional filters by program, affiliate, external ID, pending status, and date range.
- `list_clicks`: List tracked clicks with optional filters by affiliate, program, asset, source, and date range.
- `get_conversion`: Retrieve detailed information about a specific conversion, including its commissions, affiliate, program, and metadata. Needs `conversionId`.
- `list_programs`: List all affiliate programs.
- `list_program_affiliates`: List all affiliates enrolled in a specific program. Needs `programId`.
- `list_payments`: List payment history with optional filters by affiliate and date range.
- `get_commission`: Retrieve detailed information about a specific commission including its amount, approval status, associated affiliate, and payout details. Needs `commissionId`.
- `get_affiliate`: Retrieve an affiliate's personal data, company, address, and metadata. Needs `affiliateId`.
- `get_program`: Retrieve detailed information about a specific affiliate program, including its commission types, MLM levels, and bonuses. Needs `programId`.
- `list_commissions`: List commissions with optional filters by program, affiliate, approval status, pending status, and date range.
- `list_balances`: View affiliate balances across all affiliates or for a specific affiliate.
- `get_customer`: Retrieve detailed information about a specific customer, including their status, referring affiliate, program, and metadata. Needs `customerId`.
- `list_affiliates`: List affiliates with optional filters.
- `list_affiliate_prospects`: List potential affiliate prospects with optional program filtering.
- `list_affiliate_payout_methods`: List an affiliate's configured payout methods with their IDs, details, and primary status.
- `get_payment`: Retrieve a recorded affiliate payment, including its amount, currency, affiliate, and timestamp.

### Write tools (20)

- `create_conversion`: Create a new conversion (sale/transaction) in Tapfiliate.
- `create_customer`: Create a new referred customer in Tapfiliate. Needs `customerId`.
- `manage_affiliate_group`: Assign an affiliate to a group or remove them from their current group. Needs `affiliateId` and `action`.
- `create_affiliate_prospect`: Create a potential affiliate prospect. Needs `firstname`, `lastname` and `email`.
- `manage_mlm_parent`: Set or remove a parent-child relationship between affiliates for multi-level marketing (MLM). Needs `affiliateId` and `action`.
- `create_affiliate_group`: Create a new affiliate group for organizing affiliates with shared commission rules or management purposes. Needs `title`.
- `create_affiliate`: Create a new affiliate in Tapfiliate with personal information, company details, and custom fields. Needs `firstname`, `lastname` and `email`.
- `update_conversion`: Update an existing conversion's amount, external ID, or metadata. Needs `conversionId`.
- `create_payment`: Record an affiliate payment for an explicit amount and currency. Needs `affiliateId`.
- `manage_program_affiliate`: Add, approve, disapprove, or update an affiliate within a program. Needs `programId`, `affiliateId` and `action`.
- `update_affiliate_metadata`: Set or replace metadata on an affiliate. Needs `affiliateId` and `metaData`.
- `update_commission`: Update a commission's amount or comment. Needs `commissionId`.
- `add_commission_to_conversion`: Add additional commission(s) to an existing conversion. Needs `conversionId` and `conversionSubAmount`.
- `update_affiliate_group`: Update an existing affiliate group's title. Needs `groupId`.
- `disapprove_commission`: Disapprove a commission, typically used when an order is canceled or refunded. Needs `commissionId`.
- `approve_commission`: Approve a pending commission, making it eligible for payout to the affiliate. Needs `commissionId`.
- `update_customer_status`: Cancel or uncancel a customer. Needs `customerId` and `action`.
- `create_click`: Create a click programmatically for REST-only integrations (without JavaScript tracking). Needs `referralCode`.
- `manage_affiliate_payout_method`: Get or set a payout method for an affiliate. Needs `affiliateId` and `action`.
- `update_customer`: Update a referred customer's external identifier or metadata, preserving the original affiliate relationship.

### Destructive tools (5)

- `delete_affiliate_prospect`: Permanently delete an affiliate prospect. Needs `prospectId`.
- `cancel_payment`: Cancel a payment, reversing the settled commissions back to the affiliate's balance. Needs `paymentId`.
- `delete_customer`: Permanently delete a customer record from Tapfiliate. Needs `customerId`.
- `delete_conversion`: Permanently delete a conversion and its associated commissions. Needs `conversionId`.
- `delete_affiliate`: Permanently delete an affiliate from Tapfiliate. Needs `affiliateId`.

## Triggers

Tapfiliate has 3 triggers, which fire on events in Tapfiliate:

- `payment_events`: Triggered when an affiliate's balance is settled (payment created).
- `affiliate_events`: Triggered when an affiliate is created, added to a program, or approved for a program.
- `customer_events`: Triggered when a customer is created or their status changes.

## 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 Tapfiliate there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Tapfiliate on metorial.com](https://metorial.com/integrations/tapfiliate): the integration overview