---
title: "Cards · Tempo AI Platform docs"
description: "One-time prepaid cards for U.S. stores that take only cards, bought from a Tempo Key for the exact checkout total."
url: "https://gateway.tempo-dev.workers.dev/docs/cards"
---

> Every page of the Tempo AI Platform is Markdown at its URL with .md, or with Accept: text/markdown. The index of every page is https://gateway.tempo-dev.workers.dev/llms.txt, the API https://gateway.tempo-dev.workers.dev/openapi.json and the MCP server https://gateway.tempo-dev.workers.dev/mcp.

# A card for any checkout

> **Planned.** Cards aren't launched yet: this page previews them and may change. See the [changelog](https://gateway.tempo-dev.workers.dev/docs/changelog.md#planned).

When a store takes only cards, the agent buys a prepaid card for the exact checkout total from your budget, enters it and checks out. No fee on top, nothing to reload, and nothing kept here but the card's id.

[Get your Tempo Key](https://gateway.tempo-dev.workers.dev/key.md) · [Run it in a cloud agent](https://gateway.tempo-dev.workers.dev/docs/quickstart.md)

- **The exact total.** A prepaid card for U.S. merchants, loaded with what the checkout asks, from $5 to $1,000 in whole cents. Laso Finance issues it in about ten seconds.
- **No fee on top.** The card costs its amount: Laso adds no fee and Locus no markup. The gateway charges $0.001.
- **From your key.** The key pays Locus in USDC.e from its wallet, swapping OUSD or pathUSD on Tempo's DEX when it holds too little. MACH cannot buy cards yet.
- **Check the store first.** cards/merchants searches the stores where Laso's cards worked or were declined, so an agent does not buy a card a checkout will refuse.
- **Not stored here.** The gateway keeps the card's id and an encrypted Laso session, never its number, and only the key's wallet and app can read it.
- **Spent down, then done.** A card pays for several purchases until its balance runs out. It cannot be reloaded, and it expires six months after issue with whatever is left.

## Use it

Buy cards with your Tempo Key like any platform, or straight from Locus over MPP with a wallet that holds USDC.e.

### From your cloud agent

Give [your agent](https://gateway.tempo-dev.workers.dev/docs/quickstart.md) a turn. It already has these tools:

> Check that Namecheap takes the cards, then buy codecs.dev there in a browser with a one-time card for the exact total.

**Cloud agent**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/agents/$AGENT/turns \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H gateway-app:default \
  -H content-type:application/json \
  -H accept:text/event-stream \
  -d '{"prompt":"Check that Namecheap takes the cards, then buy codecs.dev there in a browser with a one-time card for the exact total."}'
```

### With your Tempo Key

Buy a card with your Tempo Key, and it belongs to the key's wallet and Gateway-App. create waits for Laso to issue it and answers its number, CVV, expiry and billing address, and get reads them again.

**Check the store**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/cards/merchants \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H gateway-app:default \
  -H content-type:application/json \
  -d '{"q":"namecheap"}'
```

**Buy a card**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/cards/create \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H gateway-app:default \
  -H content-type:application/json \
  -d '{"amount":12.98}'
```

**Read it**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/cards/get \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H gateway-app:default \
  -H content-type:application/json \
  -d '{"id":"<id>"}'
```

**List**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/cards/list \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H gateway-app:default \
  -H content-type:application/json \
  -d '{}'
```

### Straight from Locus, no account

Locus sells the same cards over MPP at laso.mpp.paywithlocus.com, so any MPP client holding USDC.e buys one without a key, and the answer carries a Laso session that reads the card at laso.finance. /v1/cards needs a key, because the gateway pays as it.

**tempo request**

```sh
tempo request -X POST \
  --json '{"amount":12.98}' \
  https://laso.mpp.paywithlocus.com/get-card
```

**Read it**

```sh
curl "https://laso.finance/get-card-data?card_id=$CARD_ID" \
  -H "authorization: Bearer $LASO_ID_TOKEN"
```

### As MCP tools

The same routes as MCP tools, for an MCP client that sends a Tempo Key and for the platform's own agents.

`cards_merchants`, `cards_create`, `cards_get`, `cards_list`

**Claude Code**

```sh
claude mcp add --transport http tempo https://gateway.tempo-dev.workers.dev/mcp \
  --header "authorization: Bearer $TEMPO_KEY"
```

**Codex**

```sh
curl -fsSL https://gateway.tempo-dev.workers.dev/codex | sh
```

## Cards

The cards are Laso Finance's U.S. prepaid cards, sold by Locus over MPP, for an agent that has to pay a store that takes only cards. Only a Tempo Key buys them through the gateway, paying the amount from its own wallet; the gateway never fronts a card.

- **Buying**\
  `amount` is 5 to 1,000 USD in whole cents. Before charging anything, `create` checks that the key can pay it in USDC.e, or in OUSD or pathUSD with 10 bps for the swap, within its balance and limits, and otherwise answers 402. Its $0.001 is refunded when Locus was not paid.
- **The card**\
  `create` answers `card` with `number`, `cvv`, `expMonth`, `expYear`, `balance` and `billingAddress` once Laso has issued it, usually in 7 to 10 s, or `status: pending` to read again with `get`. The billing name is Laso Finance, and any valid U.S. address works.
- **Who can buy**\
  An MPP session gets 401 `invalid_api_key` and an agent with a payer 403 `access_denied`, both before any payment. An agent on a key buys from the key, like any MCP client that sends one.
- **Keep it secret**\
  The number is a secret: enter it only on the checkout it was bought for. A key can buy cards up to its USDC.e, OUSD and pathUSD limits, so give agents a budget you are willing to see spent.
- **Expiry**\
  A card expires six months after issue, with whatever balance is left. The gateway forgets it then.

| Route                    | What it does                                                                         | Price                                                                     |
| ------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| POST /v1/cards/create    | Buy a one-time card loaded with amount, waiting up to 20 s for Laso to issue it      | $0.001 (plus the amount, paid to Locus in USDC.e)                         |
| POST /v1/cards/get       | A card's status, number, CVV, expiry, balance and transactions                       | $0.0001                                                                   |
| POST /v1/cards/list      | Your cards in this app with their last four digits and balances, never their numbers | $0.0005                                                                   |
| POST /v1/cards/merchants | Whether a store took the cards before: accepted, not_accepted or unknown             | $0.0001 (plus $0.005 to Locus for a wallet's first search without a card) |

[Changelog ->](https://gateway.tempo-dev.workers.dev/docs/changelog.md)
