Create Agentic Tokens

Learn how to connect a cardholder's card to AI agents and create payment credentials for each purchase.

How it works

Agentic tokens are created from a card you have already issued on Lithic: either the cardholder's existing card, or a card you created for agent payments in a dedicated agent program. See Two types of agent programs. Each agent connection gets its own network token in place of the card's number. For each purchase, you request payment credentials (a token number, expiration date, and dynamic security code) that the agent enters at checkout.

Three parties are involved, and only your backend talks to Lithic:

  • The cardholder uses your app to enable agent payments and approve purchases.
  • The agent (for example, Claude or ChatGPT) talks to your agent-facing layer, usually an MCP server you build. It never calls Lithic.
  • Your backend calls Lithic's APIs and hands the agent only the payment credentials it needs.

The cardholder experience at a glance

sequenceDiagram
    autonumber
    actor C as Cardholder
    participant App as Your app
    participant A as Agent
    participant MCP as Your MCP / backend
    participant L as Lithic

    Note over C,L: One time: enroll the card
    C->>App: Enables agent payments and consents
    App->>L: POST /cards/{card_token}/tokenizations
    L-->>App: Tokenization (PENDING_2FA)
    App->>C: Asks for the one-time code
    C->>App: Enters the code
    App->>L: Select 2FA method, then submit the code

    Note over C,L: Each purchase
    C->>A: "Buy this for me"
    A->>MCP: Request to pay (merchant, amount)
    MCP->>App: Pending approval
    App->>C: Approve this purchase?
    C->>App: Approves (or edits limits)
    MCP->>L: POST /tokenizations/{token}/payment_credentials
    L-->>MCP: Credentials + mandate
    MCP-->>A: Token number, expiry, security code
    A->>A: Checks out at the merchant
StepWhat the cardholder seesWhat you doLithic API
1. Enroll the cardAn opt-in screen with your card art, terms, and privacy policyCollect and record consent, then create the tokenizationCreate a tokenization
2. Verify the cardholderEnters a one-time codeComplete 2FASelect and submit 2FA
3. Approve a purchaseAn approval prompt for the merchant, amount, and expiryHold the agent's request until the cardholder approvesNone
4. Create credentialsNothingRequest credentials using the approved limitsCreate payment credentials
5. Make the purchaseThe agent completes checkoutPass the credentials to the agentNone
6. AuthorizationThe purchase succeeds or is declinedApply your rules or ASAStandard authorization flow
7. Manage accessCan see and disconnect agentsPause, resume, or deactivate the tokenPause, unpause, deactivate

Key objects

ObjectWhat it isWhen you create it
TokenizationLinks a card to an agent configured for your programOnce per card and agent
Payment credentialsThe token number, expiration date, and dynamic security code for a purchaseFor each purchase
MandateWhat the cardholder approved: merchant, amount, frequency, and expiryWith each set of payment credentials

Before you begin

  • Have an active card for the cardholder: their existing card, or a card created for agent payments.
  • Contact your Lithic representative to configure agentic tokenization for your program and card network, and to get your configured agent's token.
  • Subscribe to tokenization.updated webhooks through the Events API.
  • Plan for the card network's review before going live. See Go-live requirements.

1. Enroll the card in agent payments

In your app, the cardholder opts their card in to agent payments. Show your card art, terms of use, and privacy policy, and record the cardholder's consent. An agent can prompt the cardholder to start this from a chat, but the cardholder completes it in your app.

Then call Create a tokenization with type: AGENT and your configured agent's token. If the card is already enrolled for this agent, skip this step.

POST https://api.lithic.com/v1/cards/16a410c9-7f5c-43e9-8108-bb8a72c063f7/tokenizations
{
  "type": "AGENT",
  "agent_token": "20f418a7-27c2-486c-aeee-3ad2beb87c91"
}

Example 201 Created response (excerpt):

{
  "token": "3e9a10da-11be-4a62-a510-d43548bfcec1",
  "card_token": "16a410c9-7f5c-43e9-8108-bb8a72c063f7",
  "status": "PENDING_2FA",
  "tfa_methods": [
    { "method": "SMS", "destination": "XXXX1234" },
    { "method": "EMAIL", "destination": "h***@example.com" }
  ],
  "token_requestor_name": "Some AI Assistant",
  "tokenization_channel": "AGENT_PAY"
}

Save the tokenization's token and continue to step 2.

2. Verify the cardholder

Verify the cardholder with a one-time code before you request payment credentials.

  1. Show the cardholder the available tfa_methods and masked destinations. Call Select a tokenization authentication method with the selected method. The cardholder receives the code at the selected destination. See 2FA for Tokenization if you send codes yourself.
  2. Ask the cardholder for the code and call Submit a tokenization authentication code. Send value as a string to preserve leading zeros. Check success in the response, even when the HTTP status is 200.
  3. Wait for a tokenization.updated webhook with status: ACTIVE before requesting payment credentials. The network activates the token asynchronously.
POST https://api.lithic.com/v1/tokenizations/3e9a10da-11be-4a62-a510-d43548bfcec1/select_tfa_method
{
  "method": "SMS"
}
POST https://api.lithic.com/v1/tokenizations/3e9a10da-11be-4a62-a510-d43548bfcec1/submit_tfa
{
  "value": "01929"
}

3. Get the cardholder's approval

This step happens entirely in your systems. No Lithic API is involved.

Before each purchase, the cardholder approves what the agent may buy: the merchant, the maximum amount, and how long the approval lasts. The request can come from the agent, the cardholder, or be set up in advance for AUTONOMOUS and RECURRING purchases, but the cardholder always approves it in your app.

A common pattern for your MCP server:

  1. The agent calls a tool with the purchase it wants to make.
  2. Your app prompts the cardholder, who can accept or edit the limits.
  3. Until the cardholder responds, the tool returns a pending status and the agent checks back.
  4. Once approved, your backend creates payment credentials with the approved limits.

Store each approval (cardholder, limits, time, and device). It becomes the mandate in the next step and your record if the purchase is disputed.

4. Create payment credentials

Call Create payment credentials with the active tokenization, the purchase type, the approved mandate, and the cardholder's device that approved the purchase.

Purchase types and mandates

Set type to describe how the cardholder approved the purchase. Lithic passes it to the card network with the mandate.

typeUse whenExample
HUMAN_IN_THE_LOOPThe cardholder approves this purchase before the agent makes itThe cardholder asks the agent to buy a specific pair of shoes and confirms the order
AUTONOMOUSThe cardholder pre-approved a category of purchase, and the agent decides when to buyThe agent reorders milk when the cardholder runs out
RECURRINGThe cardholder approves a subscription the agent sets up. Create payment credentials once, when the agent signs up. The merchant stores the token number for later charges.A monthly streaming subscription
FieldWhat to set
merchant.name, merchant.urlThe merchant where the agent will make the purchase
amountThe maximum amount in USD cents for each purchase. For RECURRING, the maximum for each charge.
frequencyONE_TIME for HUMAN_IN_THE_LOOP and AUTONOMOUS. WEEKLY, MONTHLY, or YEARLY for RECURRING.
expires_atWhen the cardholder's approval ends. For RECURRING, when the subscription should stop.

The card network checks each purchase, including renewals, against the mandate and declines purchases that fall outside it.

POST https://api.lithic.com/v1/tokenizations/3e9a10da-11be-4a62-a510-d43548bfcec1/payment_credentials
{
  "type": "HUMAN_IN_THE_LOOP",
  "mandate": {
    "frequency": "ONE_TIME",
    "expires_at": "2026-10-31T15:00:00Z",
    "amount": 1250,
    "merchant": {
      "name": "Example merchant",
      "url": "https://merchant.example"
    }
  },
  "device": {
    "ip_address": "192.0.2.1",
    "type": "Mobile",
    "brand": "Example brand",
    "application_name": "Example app"
  }
}

Example 201 Created response (excerpt):

{
  "token": "da186f0c-535f-4dde-9c4f-a122621a4874",
  "status": "ACTIVE",
  "type": "HUMAN_IN_THE_LOOP",
  "mandate": {
    "token": "5c988775-c23c-4c43-b2d1-a263515495aa",
    "status": "PENDING",
    "amount": 1250,
    "expires_at": "2026-10-31T15:00:00Z"
  },
  "credentials": {
    "value": "4111111111111111",
    "expiration_month": "12",
    "expiration_year": "2027",
    "cvv": "123",
    "expires_at": "2026-10-30T15:13:00Z"
  }
}
📘

The credential value, expiration date, and CVV are only returned in this response and cannot be retrieved later.

5. Give the credentials to the agent

Return credentials.value, expiration_month, expiration_year, and cvv to the agent. The agent enters them at checkout like a card number. This is the only Lithic data the agent needs.

Two expiry times apply:

  • credentials.expires_at is when the dynamic security code stops working. The agent should check out before then, or request new credentials.
  • mandate.expires_at is when the cardholder's approval ends.

If the merchant does not accept the agent token, create a single-use virtual card on the same account for the same approved purchase and let the agent retry. See Use Single-Use Virtual Cards.

6. Decide the authorization

When the merchant submits the purchase, the card network checks it against the mandate first. Your program then decides it like any other card-not-present authorization, with Authorization Rules or ASA.

  • Compare the purchase with what the cardholder approved in step 3, for example the merchant and amount.
  • Review existing thresholds, such as network risk score cutoffs, in shadow mode. Agent purchases can score differently from purchases a person makes directly.

7. Manage the agent's access

Give cardholders a way to see which agents can pay with their card and to disconnect them.

Cardholder actionAPI
Temporarily stop an agent from payingPause a tokenization, then unpause
Disconnect an agentDeactivate a tokenization

Deactivating a tokenization stops future purchases on it, including RECURRING charges a merchant has stored. Tell the cardholder before they disconnect an agent that manages subscriptions.

Go-live requirements

Before production, the card network reviews your solution. Plan for:

  • A video of your consent experience, showing the cardholder enabling agent payments (with card art, privacy policy, and terms of use) and approving a purchase or task for an agent.
  • Completed solution approval details. Your Lithic representative will share what your program needs to provide.

You can build and test steps 1 through 4 in sandbox. Authorizing purchases with an agent token requires production access.


Did this page help you?