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

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

Share Fidel API with your team in Claude, ChatGPT and Cursor through Metorial: secret API key sign-in, 42 tools (20 read-only).

---

To give your team Fidel API in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Fidel API integration in a Metorial portal, and each person connects with a secret API key. Link payment cards to programs and monitor transactions in real-time across Visa, Mastercard, and American Express networks. The integration has 42 tools, 20 read-only, 17 write and 5 destructive, plus 6 triggers.

**What you will learn**

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

**Before you start**

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

### Secret API Key

To connect, a person enters:

- `token`: Your Fidel API secret key. Prefixed with sk_test_ (test mode) or sk_live_ (live mode). Found in your Fidel dashboard account page.

### Setup settings

Setup also asks for:

- `environment` (optional): Whether to use test or live mode. Determines which API keys and data are used. One of "test", "live".

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

4. **Choose who gets it**

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

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

## Employee: connect Fidel API

### In the portal

1. **Open Fidel API in the catalog**

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

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your secret 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 "fidel api"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Fidel API 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 "fidel api"
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 20 read-only tools, such as `get_card` and `get_brand`, and lose the 17 write tools, such as `enroll_card` or `create_brand`, and the 5 destructive tools, such as `delete_card` or `delete_brand`.

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 "fidel api"
metorial tools <integration-id>
metorial call <integration-id> list_brands -d '{}'
```

`metorial tools` lists the 42 tools, minus any you rejected. `list_brands` takes no input. 

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

## Tools

### Read-only tools (20)

- `list_programs`: Lists all Programs in your Fidel API account.
- `list_cards`: Lists all enrolled cards in a specific Program. Needs `programId`.
- `list_locations`: Lists all Locations in a specific Program. Needs `programId`.
- `get_program`: Retrieves details of a specific Program by its ID, including its name, status, and metadata. Needs `programId`.
- `get_card`: Retrieves details of a specific enrolled card by its ID. Needs `cardId` and `programId`.
- `get_transaction`: Retrieves details of a specific transaction by its ID. Needs `transactionId` and `programId`.
- `get_brand`: Retrieves details of a specific Brand by its ID. Needs `brandId`.
- `list_brands`: Lists all Brands in your Fidel API account.
- `list_transactions`: Lists transactions for a Program or a specific Card. Needs `programId`.
- `get_offer`: Retrieves details of a specific Offer by its ID, including its type, value, status, and date range. Needs `offerId`.
- `get_location`: Retrieves details of a specific Location by its ID, including its address, status, and onboarding information. Needs `locationId` and `programId`.
- `list_webhooks`: Lists all webhooks configured for a specific Program. Needs `programId`.
- `list_offers`: Lists all Offers in a specific Program. Needs `programId`.
- `list_cards_by_metadata`: Find enrolled cards across programs using their metadata.id index, for customer reconciliation.
- `list_offer_locations`: List the merchant locations linked to an offer and their onboarding details.
- `get_missing_transaction_request`: Retrieve a missing transaction investigation and any network result.
- `list_offer_cards`: List cards on which an offer is activated.
- `check_offer_card`: Check whether an offer is active on a card, without changing its activation.
- `get_webhook`: Retrieve an account or program webhook by its ID, including its URL, event, and verification secret.
- `list_missing_transaction_requests`: List missing transaction investigations in a program, optionally filtering by card, location, brand, or status.

### Write tools (17)

- `create_webhook`: Creates a new webhook subscription for a specific event type in a Program. Needs `programId`, `event` and `url`.
- `create_program`: Creates a new Program in Fidel API. Needs `name`.
- `update_program`: Updates an existing Program's name or metadata. Needs `programId`.
- `update_webhook`: Updates an existing webhook's URL or event type. Needs `webhookId` and `programId`.
- `create_brand`: Creates a new Brand in Fidel API. Needs `name`.
- `enroll_card`: Enrolls a payment card in a Fidel API Program. Needs `programId`, `number`, `expMonth`, `expYear` and `countryCode`.
- `manage_offer_locations`: Links or unlinks a Location to/from an Offer. Needs `offerId`, `locationId` and `action`.
- `manage_offer_card`: Activates or deactivates an Offer on a specific Card. Needs `offerId`, `cardId` and `action`.
- `create_test_transaction`: Creates a test transaction for development and testing purposes. Needs `programId`, `cardId`, `locationId`, `amount` and `currency`.
- `update_brand`: Updates an existing Brand's logo, website, or metadata. Needs `brandId`.
- `create_offer`: Creates a card-linked Offer for a Brand. Needs `programId`, `brandId`, `name`, `countryCode`, `offerType` and `offerValue`.
- `create_location`: Creates a new Location under a Program for a specific Brand. Needs `programId`, `brandId`, `address`, `city`, `countryCode` and `postcode`.
- `update_offer`: Updates an existing Offer's name, date range, max reward, or metadata. Needs `offerId`.
- `create_missing_transaction_request`: Ask the card network to investigate a missing transaction for a linked card at a known location.
- `link_all_offer_locations`: Request linking all locations of the offer brand in a program to the offer.
- `update_card_metadata`: Replace the metadata on an enrolled card.
- `update_location`: Update a merchant location address, metadata, or known merchant IDs.

### Destructive tools (5)

- `delete_brand`: Deletes a Brand from your Fidel API account. Needs `brandId`.
- `delete_location`: Deletes a Location from a Program. Needs `locationId` and `programId`.
- `delete_card`: Unlinks and deletes an enrolled card from a Program. Needs `cardId` and `programId`.
- `delete_webhook`: Deletes a webhook subscription from a Program. Needs `webhookId` and `programId`.
- `delete_offer`: Delete a self-sourced offer created by a publisher.

## Triggers

Fidel API has 6 triggers, which fire on events in Fidel API:

- `brand_consent_events`: Triggers when a brand consent status changes, indicating whether a brand has given or revoked consent for transaction tracking.
- `program_status_events`: Triggers when a program status changes.
- `marketplace_offer_events`: Triggers when a marketplace offer goes live or is updated.
- `card_events`: Triggers when a card is successfully linked to a program or when a card linking attempt fails.
- `transaction_events`: Triggers when transaction events occur, including authorizations, clearings, refunds, and offer-qualified transactions on linked cards.
- `location_status_events`: Triggers when a location onboarding status changes with the card networks (Visa, Mastercard, American Express).

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