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
- A portal 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, 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
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:
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
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.
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 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. NeedsprogramId.list_locations: Lists all Locations in a specific Program. NeedsprogramId.get_program: Retrieves details of a specific Program by its ID, including its name, status, and metadata. NeedsprogramId.get_card: Retrieves details of a specific enrolled card by its ID. NeedscardIdandprogramId.get_transaction: Retrieves details of a specific transaction by its ID. NeedstransactionIdandprogramId.get_brand: Retrieves details of a specific Brand by its ID. NeedsbrandId.list_brands: Lists all Brands in your Fidel API account.list_transactions: Lists transactions for a Program or a specific Card. NeedsprogramId.get_offer: Retrieves details of a specific Offer by its ID, including its type, value, status, and date range. NeedsofferId.get_location: Retrieves details of a specific Location by its ID, including its address, status, and onboarding information. NeedslocationIdandprogramId.list_webhooks: Lists all webhooks configured for a specific Program. NeedsprogramId.list_offers: Lists all Offers in a specific Program. NeedsprogramId.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. NeedsprogramId,eventandurl.create_program: Creates a new Program in Fidel API. Needsname.update_program: Updates an existing Program's name or metadata. NeedsprogramId.update_webhook: Updates an existing webhook's URL or event type. NeedswebhookIdandprogramId.create_brand: Creates a new Brand in Fidel API. Needsname.enroll_card: Enrolls a payment card in a Fidel API Program. NeedsprogramId,number,expMonth,expYearandcountryCode.manage_offer_locations: Links or unlinks a Location to/from an Offer. NeedsofferId,locationIdandaction.manage_offer_card: Activates or deactivates an Offer on a specific Card. NeedsofferId,cardIdandaction.create_test_transaction: Creates a test transaction for development and testing purposes. NeedsprogramId,cardId,locationId,amountandcurrency.update_brand: Updates an existing Brand's logo, website, or metadata. NeedsbrandId.create_offer: Creates a card-linked Offer for a Brand. NeedsprogramId,brandId,name,countryCode,offerTypeandofferValue.create_location: Creates a new Location under a Program for a specific Brand. NeedsprogramId,brandId,address,city,countryCodeandpostcode.update_offer: Updates an existing Offer's name, date range, max reward, or metadata. NeedsofferId.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. NeedsbrandId.delete_location: Deletes a Location from a Program. NeedslocationIdandprogramId.delete_card: Unlinks and deletes an enrolled card from a Program. NeedscardIdandprogramId.delete_webhook: Deletes a webhook subscription from a Program. NeedswebhookIdandprogramId.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, Cursor, Codex and ChatGPT: connect each client to your portal and use Fidel API there
- Tool permissions: tool filters and what employees see
- Fidel API on metorial.com: the integration overview