MetorialDocs

Set up Fidel API in Metorial for Claude, ChatGPT and Cursor

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'll 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

Sign-in method

MethodTypeWhat a person provides
Secret API KeyAPI tokentoken

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

Open Shared Resources

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

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.

Limit the tools

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

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:

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

Employee: connect Fidel API

In the portal

Open Fidel API in the catalog

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

Authenticate

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

Confirm

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

With the CLI

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.

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.

Check it worked

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