Crypto cards for your users, in minutes.
Issue virtual Mastercard cards (Apple Pay & Google Pay ready) and load them from your own product, under your brand. No KYC for your cardholders. Free to start: sign up, create an API key, add funds in USDC and go live right away.
Integrate with one prompt
Using Claude Code, Cursor or another AI coding tool? Put your key in VIBED_API_KEY and paste this prompt into your project:
Integrate the Vibed Cards API into this project so my users can get a virtual card (Apple Pay / Google Pay ready) and top it up.
Read the full API reference first: https://vibed.cards/llms.txt (OpenAPI: https://vibed.cards/openapi.json).
- Call the API only from the server. The API key is in the environment variable VIBED_API_KEY (Authorization: Bearer). Never send it to the browser.
- Use my own user id as client_ref, and an Idempotency-Key header on every POST.
- Add: a "Get your card" button (POST /cards), a card page with balance, last 4 digits, transactions and a "Show card details" button (GET /cards/{id}?reveal=true, only to the card owner), a top-up form (POST /cards/{id}/topup, minimum 5 USD), freeze/unfreeze and close, and a verification codes panel (GET /cards/{id}/codes; call POST /cards/{id}/wallet-code before adding to Apple Pay / Google Pay).
- Add a webhook endpoint that verifies the X-Vibed-Signature header (hex HMAC-SHA256 of the raw body with my webhook secret in VIBED_WEBHOOK_SECRET) and updates the card on card.issued, card.transaction and card.otp.
- Show clear errors (402 = top up the API balance, 409 = card not ready).Prices
These are API prices, not the personal Vibed card prices. GET /api/v1/pricing always returns exactly what your key is charged.
Setup checklist
Basics
- Base URL:
https://vibed.cards/api/v1 - Auth:
Authorization: Bearer vbd_live_…. Call the API from your server only; never put the key in a browser or app. - Send an
Idempotency-Keyheader on every POST: a retry with the same key never charges twice. - Pass your own customer id as
client_ref: cards and money are tracked per customer in your dashboard. - No limit on cards per API account or per customer. A new card can be topped up once its status is
active(thecard.issuedwebhook); before that, top-ups answer 409. - Anything that couldn't be confirmed right away (status
processing) completes on its own, or its full price returns to your balance automatically.
const res = await fetch("https://vibed.cards/api/v1/cards", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VIBED_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": `card-${user.id}`,
},
body: JSON.stringify({ email: user.email, name: user.name, client_ref: user.id }),
});
const { card } = await res.json();Endpoints
/api/v1/cards· Issue a cardCreates a virtual Mastercard (Apple Pay / Google Pay ready) for one of your customers. The card price is taken from your API balance. Most cards are active within a minute: status is 'issuing' until then (you also get a card.issued webhook). Send an Idempotency-Key header so a retry never creates a second card.
email — Cardholder email (optional; recommended).name — Name on the card / label, up to 50 characters (optional).client_ref — Your own customer id, to group cards and money per customer (optional).{
"card": { "id": "card_8f2…", "status": "active", "client_ref": "user_42", "name": "Alice", "email": "alice@example.com", "created_at": "…" },
"charged_usd": 20.1,
"balance_usd": 479.9
}/api/v1/cards/{id}/topup· Top up a cardLoads exactly `amount` USD onto the card. The price (amount + fee) is taken from your API balance. Status 'completed' = on the card; 'processing' = being confirmed; you get a topup.completed webhook when it lands, or a topup.failed webhook and the full price back in your balance if it can't. Don't send the same top-up again while it is processing. Send an Idempotency-Key header.
amount — USD to put on the card (minimum 5).{ "card_id": "card_8f2…", "amount_usd": 50, "charged_usd": 51.92, "status": "completed", "balance_usd": 427.98 }/api/v1/cards/{id}· Get a cardStatus, last 4 digits, expiry and live balance. Add ?reveal=true to also get the full number, CVV and billing address (show these only to the cardholder, never log them).
reveal — true to include number, cvv and billing_address.{ "id": "card_8f2…", "status": "active", "last4": "4242", "expiry": "12/29", "balance_usd": 50, "frozen": false, "client_ref": "user_42", … }/api/v1/cards· List cardsYour cards, newest first. Filter by your customer id with ?client_ref=.
client_ref — Only this customer's cards (optional).{ "data": [ { "id": "card_8f2…", "status": "active", "client_ref": "user_42", … } ] }/api/v1/cards/{id}/transactions· Card transactionsPurchases, declines (with reason), refunds and top-ups on the card.
{ "data": [ { "id": "…", "description": "AMAZON", "amount_usd": -12.5, "status": "success", "decline_reason": null, "date": "…" } ] }/api/v1/cards/{id}/codes· Verification codesOne-time codes of the last 30 minutes: online payment checks (3-D Secure) and Apple Pay / Google Pay add codes. Show them to the cardholder.
{ "codes": [ { "code": "482913", "kind": "payment_3ds", "received_at": "…" } ], "wallet_code_status": "none" }/api/v1/cards/{id}/wallet-code· Prepare Apple Pay / Google PayCall this right before the cardholder adds the card to Apple Pay or Google Pay (choosing the email option). The next wallet code is matched to this card for 10 minutes; read it from /codes.
{ "id": "card_8f2…", "status": "waiting" }/api/v1/cards/{id}/freeze· Freeze a cardBlocks new payments until unfrozen. /unfreeze turns it back on.
{ "id": "card_8f2…", "status": "frozen" }/api/v1/cards/{id}/close· Close a cardCloses the card for good. Its whole remaining balance goes back to your API balance, with no fee.
{ "id": "card_8f2…", "status": "closed", "returned_usd": 42.5, "balance_usd": 470.48 }/api/v1/payments· Customer payment (earn your fee)Your customer pays for a new card or a top-up themselves, in USDC on Solana: you get a one-time address, the exact amount and a ready checkout page (checkout_url) to send them. The amount = API price + your fee (set 0–3% in your dashboard; it goes to your earnings). Once paid (usually seconds), the money lands in your API balance, the card is made / loaded from it automatically and you get a payment.completed webhook. No prepaid balance needed. Links are valid 24 hours.
type — "topup" (needs card_id) or "card" (a new card). Default: topup when card_id is sent.card_id — The card to load (type topup).amount_usd — What goes on the card, in USD (5–10,000).client_ref — Your own customer id (optional; shown per customer in your dashboard).email — Cardholder email for a new card (optional).name — Name on a new card (optional).{ "id": "8c1e…", "object": "payment", "status": "waiting", "purpose": "topup", "card_id": "card_8f2…", "amount_usd": 100, "price_usd": 103.72, "fee_usd": 2, "pay_amount": 105.72, "pay_currency": "USDC", "pay_network": "solana", "pay_address": "7xKX…", "checkout_url": "https://vibed.cards/pay/8c1e…", "solana_pay_url": "solana:7xKX…?amount=105.72&spl-token=EPjF…", "expires_at": "…" }/api/v1/payments/{id}· Payment statusChecks the payment on chain and returns it: waiting → paid → processing (card being made / loaded) → completed. failed = the card step was refused; the money stays in your API balance. expired = nothing paid in 24 h. underpaid = less than pay_amount arrived; it was added to your API balance without your fee. Poll every few seconds while your customer pays, or use the payment.* webhooks.
{ "id": "8c1e…", "status": "completed", "card_id": "card_8f2…", "received_usdc": 105.72, … }/api/v1/payments· List paymentsYour customer payments, newest first.
limit — 1–200 (default 50).{ "data": [ { "id": "8c1e…", "status": "completed", "amount_usd": 100, "fee_usd": 2, … } ] }/api/v1/balance· API balanceYour prepaid balance in USD. Add funds on vibed.cards/developers.
{ "balance_usd": 470.48 }/api/v1/ledger· Money flowEvery deposit, card, top-up, return and refund on your balance, newest first.
limit — 1–500 (default 100).{ "data": [ { "id": 812, "type": "card_topup", "amount_usd": -51.92, "balance_after_usd": 427.98, "card_id": "card_8f2…", "client_ref": "user_42", "status": "done", "created_at": "…" } ] }/api/v1/pricing· PricesCurrent prices (no API key needed).
{ "card_issue_usd": 20.1, "topup_fee_percent": 3.61, "topup_fixed_fee_usd": 0.1, … }Webhooks
Set your webhook URL in your dashboard. Each event is a POST with JSON { id, type, created_at, data: { card_id, client_ref, … } } and an X-Vibed-Signature header: hex HMAC-SHA256 of the raw body with your webhook secret. Verify it before trusting the event.
card.issuedThe card is ready to use.card.failedThe card couldn't be made; its price is back in your balance.card.transactionA purchase, decline, refund or top-up on the card.card.otpA verification code arrived (3-D Secure or Apple Pay / Google Pay).topup.completed / topup.failedA top-up finished (a failed one is refunded to your balance).balance.lowA charge took your API balance below $25. Add funds to keep issuing.payment.completed / payment.failedA customer payment was paid and the card made / loaded (failed: the money is in your API balance).payment.expired / payment.underpaidA customer payment link expired unpaid, or less than the amount arrived (added to your API balance).test.pingSent by the Send test event button in your dashboard.import crypto from "node:crypto";
const expected = crypto
.createHmac("sha256", process.env.VIBED_WEBHOOK_SECRET)
.update(rawBody)
.digest("hex");
const ok = crypto.timingSafeEqual(
Buffer.from(expected),
Buffer.from(req.headers["x-vibed-signature"] ?? ""),
);Errors
401 UNAUTHORIZEDMissing, wrong or revoked API key.402 INSUFFICIENT_BALANCEYour API balance is too low. Add funds.403 ACCOUNT_PAUSEDYour API account is paused.404 CARD_NOT_FOUNDNo such card on your account.409 CARD_NOT_READYThe card is still issuing, closed or failed.400 BAD_AMOUNT / BAD_REQUESTCheck the request body.502 ISSUE_FAILED / TOPUP_FAILEDRefused right now; you were not charged. Retry later.503 RETRY_SHORTLYNew cards only: issuing is busy for a moment; you were not charged. Retry after the Retry-After header, same Idempotency-Key is fine.