# Blip API Base URL: https://blipcards.app/api/public/v1 Docs: https://blipcards.app/developers OpenAPI: https://blipcards.app/api/public/v1/openapi.json Blip is a Solana neobank: a Blip wallet holding SOL and a virtual card that spends online and in Apple Pay and Google Pay. The API does what the dashboard does, on the account that created the key. Money moves the same way: card orders, top-ups and withdrawals are paid in SOL from the Blip wallet. Using the API is free; card prices and top-up fees are the same as in the dashboard. ## White-label cards for your customers Add your customers with POST /customers, then order each one a card with POST /customers/{customer_id}/cards. The card is issued in the customer's name and email; you pay for it and top it up in SOL from your own Blip wallet at the same prices. Your customers deal only with your app: show them their card number, balance, transactions and codes through the /cards/{card_id} endpoints. Card events carry customer_id so you know whose card it is. ## Authentication Create a key in the dashboard under Developers. Send it on every request: Authorization: Bearer blip_sk_... Keys have scopes: - read: Read your account, customers, cards, transactions, top-ups, withdrawals and events. - write: Add customers, order cards, freeze and unfreeze, top up cards, and manage webhooks. - card_details: Read full card numbers, CVV and expiry, and 3-D Secure and Apple Pay / Google Pay codes. - withdraw: Send SOL from your Blip wallet to outside wallets. Keep keys on your server. Never put them in browser or app code. ## Responses JSON. Success: { "data": ... }. Error: { "error": { "code": "...", "message": "..." } } with these HTTP statuses: - 400 invalid_request: A field is missing or wrong. The message says which. - 401 unauthorized: The API key is missing, wrong or deleted. - 403 forbidden: The key does not have the scope this needs. - 404 not_found: No such customer, card, top-up, withdrawal or webhook on your account. - 409 busy: Another payment or withdrawal is still running, or the customer already exists. The message says which. - 422 rejected: The request is valid but cannot be done, for example not enough SOL. - 429 rate_limited: More than 120 requests a minute on this key. - 500 server_error: Something went wrong on our side. Safe to retry reads; check state before retrying payments. Rate limit: 120 requests per minute per key. Amounts in USD are numbers with 2 decimals; SOL amounts in requests are strings. ## Endpoints ### GET /account Get your account. Your Blip wallet (deposit address and SOL balance), card prices and the top-up fee. Scope: read Example: curl -X GET https://blipcards.app/api/public/v1/account \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "wallet": { "address": "9xQe…", "sol": 1.2845, "usd": 71.04 }, "card_price_usd": 15, "topup_fee_pct": 2, "status": "active" } ### GET /cards List cards. Every card on your account, newest first, 50 per page: your own card (customer_id null) and the cards of your customers. Scope: read Query: - customer_id (string): Only this customer's cards. - offset (integer): Start from this position. Example: curl -X GET https://blipcards.app/api/public/v1/cards \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: [ { "id": "7d1c…", "customer_id": null, "status": "issued", "last4": "4821", "frozen": false, "created_at": "2026-12-05T18:00:00Z" }, { "id": "9b2e…", "customer_id": "3f9a…", "status": "pending", "last4": null, "frozen": false, "created_at": "2026-12-05T18:00:00Z" } ] ### POST /cards Order a card. Orders a virtual card, paid in SOL from your Blip wallet (or free if your account qualifies). Returns the card with status "pending"; a card.issued webhook follows, usually within 1 to 2 minutes. One card for your own account; cards for your customers are ordered under /customers. Scope: write JSON body: - asset ("SOL"): Coin to pay with. Defaults to SOL. Example: curl -X POST https://blipcards.app/api/public/v1/cards \ -H "Authorization: Bearer $BLIP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"asset":"SOL"}' Response data: { "id": "7d1c…", "customer_id": null, "status": "pending", "last4": null, "frozen": false, "created_at": "2026-12-05T18:00:00Z" } ### GET /cards/{card_id} Get a card. The card with its live balance. Scope: read Example: curl -X GET https://blipcards.app/api/public/v1/cards/$CARD_ID \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "id": "7d1c…", "customer_id": null, "status": "issued", "last4": "4821", "frozen": false, "created_at": "2026-12-05T18:00:00Z", "balance_usd": 42.5, "pending_topup_usd": 0, "exp": "12/29" } ### GET /cards/{card_id}/sensitive Get card number, CVV and expiry. Full card details, read live from the card issuer. Blip never stores them. Keep them out of your logs. Scope: card_details Example: curl -X GET https://blipcards.app/api/public/v1/cards/$CARD_ID/sensitive \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "number": "5240 •••• •••• 4821", "cvv": "•••", "exp": "12/29" } ### POST /cards/{card_id}/freeze Freeze a card. Blocks new payments until you unfreeze it. Scope: write Example: curl -X POST https://blipcards.app/api/public/v1/cards/$CARD_ID/freeze \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "id": "7d1c…", "customer_id": null, "status": "issued", "last4": "4821", "frozen": true, "created_at": "2026-12-05T18:00:00Z" } ### POST /cards/{card_id}/unfreeze Unfreeze a card. Allows payments again. Scope: write Example: curl -X POST https://blipcards.app/api/public/v1/cards/$CARD_ID/unfreeze \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "id": "7d1c…", "customer_id": null, "status": "issued", "last4": "4821", "frozen": false, "created_at": "2026-12-05T18:00:00Z" } ### GET /cards/{card_id}/transactions List card transactions. Payments, refunds, declines and top-ups, newest first, 50 per page. Scope: read Query: - offset (integer): Start from this position. Use next_offset from the previous page. Example: curl -X GET https://blipcards.app/api/public/v1/cards/$CARD_ID/transactions \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "items": [ { "id": "tx_…", "amount": 12.99, "currency": "USD", "type": "purchase", "status": "success", "credit": false, "merchant": "Netflix", "date": "2026-12-05T18:20:00Z", "decline_reason": null } ], "next_offset": 50 } ### GET /cards/{card_id}/codes Get 3-D Secure and wallet codes. Codes sent to the card in the last 30 minutes: online payment checks (3-D Secure) and Apple Pay / Google Pay activation. Scope: card_details Example: curl -X GET https://blipcards.app/api/public/v1/cards/$CARD_ID/codes \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: [ { "code": "482913", "kind": "payment_3ds", "at": "2026-12-05T18:21:00Z", "amount": 12.99, "merchant": "Netflix" } ] ### POST /cards/{card_id}/wallet-code Add the card to Apple Pay or Google Pay. Call with arm=true, add the card in the wallet app, then call again with arm=false to read the activation code. Scope: card_details JSON body: - arm (boolean, required): true to start, false to read the code. Example: curl -X POST https://blipcards.app/api/public/v1/cards/$CARD_ID/wallet-code \ -H "Authorization: Bearer $BLIP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"arm":true}' Response data: { "status": "armed", "code": null } ### POST /customers Add a customer. White-label: add one of your own customers. Their card is issued in their name and email, and paid and topped up from your Blip wallet. external_id is your own id for them and must be unique. Scope: write JSON body: - name (string, required): Customer's full name, 2 to 60 characters. - email (string, required): Customer's email. - external_id (string): Your id for this customer. Example: curl -X POST https://blipcards.app/api/public/v1/customers \ -H "Authorization: Bearer $BLIP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"Maria Lopez","email":"maria@example.com"}' Response data: { "id": "3f9a…", "external_id": "user_1842", "name": "Maria Lopez", "email": "maria@example.com", "created_at": "2026-12-06T09:00:00Z" } ### GET /customers List customers. Your customers, newest first, 50 per page. Scope: read Query: - external_id (string): Find a customer by your own id. - offset (integer): Start from this position. Use next_offset from the previous page. Example: curl -X GET https://blipcards.app/api/public/v1/customers \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "items": [ { "id": "3f9a…", "external_id": "user_1842", "name": "Maria Lopez", "email": "maria@example.com", "created_at": "2026-12-06T09:00:00Z" } ], "next_offset": null } ### GET /customers/{customer_id} Get a customer. The customer and their cards. Scope: read Example: curl -X GET https://blipcards.app/api/public/v1/customers/$CUSTOMER_ID \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "id": "3f9a…", "external_id": "user_1842", "name": "Maria Lopez", "email": "maria@example.com", "created_at": "2026-12-06T09:00:00Z", "cards": [ { "id": "9b2e…", "customer_id": "3f9a…", "status": "pending", "last4": null, "frozen": false, "created_at": "2026-12-05T18:00:00Z" } ] } ### POST /customers/{customer_id}/cards Order a card for a customer. Orders a virtual card in the customer's name, paid in SOL from your Blip wallet at the card price. One card per customer. Returns the card with status "pending"; a card.issued webhook follows. After that, every /cards/{card_id} endpoint works on it: top-ups, freeze, transactions, card details and codes. Scope: write JSON body: - asset ("SOL"): Coin to pay with. Defaults to SOL. Example: curl -X POST https://blipcards.app/api/public/v1/customers/$CUSTOMER_ID/cards \ -H "Authorization: Bearer $BLIP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"asset":"SOL"}' Response data: { "id": "9b2e…", "customer_id": "3f9a…", "status": "pending", "last4": null, "frozen": false, "created_at": "2026-12-05T18:00:00Z" } ### POST /cards/{card_id}/topups/quote Quote a top-up. What a top-up costs in SOL, with the fee, and about how much lands on the card. Scope: read JSON body: - amount_usd (number, required): Amount to put on the card, $5 to $2,500. Example: curl -X POST https://blipcards.app/api/public/v1/cards/$CARD_ID/topups/quote \ -H "Authorization: Bearer $BLIP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"amount_usd":50}' Response data: { "amount_usd": 50, "fee_usd": 1, "network_usd": 0.42, "total_sol": "0.9358", "total_usd": 51.42, "on_card_usd": 49.1 } ### POST /cards/{card_id}/topups Top up a card. Pays the top-up in SOL from your Blip wallet. One top-up runs at a time; topup.updated webhooks report its progress. Scope: write JSON body: - amount_usd (number, required): Amount to put on the card, $5 to $2,500. Example: curl -X POST https://blipcards.app/api/public/v1/cards/$CARD_ID/topups \ -H "Authorization: Bearer $BLIP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"amount_usd":50}' Response data: { "id": "ld_…", "card_id": "7d1c…", "status": "funding", "amount_usd": 50, "fee_usd": 1, "created_at": "2026-12-05T18:30:00Z" } ### GET /topups List top-ups. Your 20 latest card top-ups. Scope: read Example: curl -X GET https://blipcards.app/api/public/v1/topups \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: [ { "id": "ld_…", "card_id": "7d1c…", "status": "credited", "amount_usd": 50, "fee_usd": 1, "created_at": "2026-12-05T18:30:00Z" } ] ### GET /topups/{topup_id} Get a top-up. One top-up and its status. Scope: read Example: curl -X GET https://blipcards.app/api/public/v1/topups/$TOPUP_ID \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "id": "ld_…", "card_id": "7d1c…", "status": "credited", "amount_usd": 50, "fee_usd": 1, "created_at": "2026-12-05T18:30:00Z" } ### GET /withdrawals List withdrawals. Your 20 latest withdrawals. Scope: read Example: curl -X GET https://blipcards.app/api/public/v1/withdrawals \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: [ { "id": "wd_…", "to": "Hc3p…QdFy", "sol": 0.5, "status": "sent", "signature": "5xYz…", "created_at": "2026-12-05T18:40:00Z" } ] ### POST /withdrawals Withdraw SOL. Sends SOL from your Blip wallet to any Solana wallet. The 0.000011 SOL network fee comes from your wallet. Solana transfers cannot be reversed. One withdrawal runs at a time. Scope: withdraw JSON body: - to (string, required): Solana wallet address. - amount_sol (string): Amount in SOL, e.g. "0.5". Leave out when all is true. - all (boolean): Send everything (less the network fee). Example: curl -X POST https://blipcards.app/api/public/v1/withdrawals \ -H "Authorization: Bearer $BLIP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"to":"Hc3p…QdFy"}' Response data: { "id": "wd_…", "to": "Hc3p…QdFy", "sol": 0.5, "status": "sent", "signature": "5xYz…", "created_at": "2026-12-05T18:40:00Z" } ### GET /events List events. The same events webhooks send, newest first, for polling or catching up. Scope: read Query: - limit (integer): 1 to 100, default 50. Example: curl -X GET https://blipcards.app/api/public/v1/events \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: [ { "id": "evt_…", "type": "card.transaction", "created_at": "2026-12-05T18:20:00Z", "data": { "card_id": "7d1c…", "amount": 12.99, "status": "success", "merchant": "Netflix" } } ] ### GET /webhooks List webhooks. Your webhook endpoints. Scope: read Example: curl -X GET https://blipcards.app/api/public/v1/webhooks \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: [ { "id": "wh_…", "url": "https://example.com/blip", "events": [ "card.transaction" ], "created_at": "2026-12-05T18:00:00Z", "failing": false } ] ### POST /webhooks Add a webhook. Blip POSTs events to this URL. The signing secret is shown once: keep it to check the Blip-Signature header. Scope: write JSON body: - url (string, required): Public https:// URL. - events (string[]): Events to send. Leave out for all events. Example: curl -X POST https://blipcards.app/api/public/v1/webhooks \ -H "Authorization: Bearer $BLIP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://example.com/blip"}' Response data: { "id": "wh_…", "url": "https://example.com/blip", "events": [ "card.transaction" ], "secret": "whsec_…" } ### DELETE /webhooks/{webhook_id} Delete a webhook. Stops sending events to it. Scope: write Example: curl -X DELETE https://blipcards.app/api/public/v1/webhooks/$WEBHOOK_ID \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "deleted": true } ### POST /webhooks/{webhook_id}/test Send a test event. Sends a ping event to the webhook now. Scope: write Example: curl -X POST https://blipcards.app/api/public/v1/webhooks/$WEBHOOK_ID/test \ -H "Authorization: Bearer $BLIP_API_KEY" Response data: { "sent": true, "status": 200 } ## Webhooks Add an endpoint with POST /webhooks. Blip sends a POST with JSON { "id", "type", "created_at", "data" } for these events. Card and top-up events include customer_id (null for your own card): - card.issued: Your card is ready. - card.failed: A card order failed. - card.transaction: A card payment, refund or decline (sent again when its status changes). - card.code: A 3-D Secure or wallet code arrived. Read it with GET /cards/{card_id}/codes. - topup.updated: A card top-up changed status (pending, success or failed). - withdrawal.updated: A withdrawal was sent or failed. Each request has the header Blip-Signature: t=,v1=. v1 is HMAC-SHA256 of "." with your webhook secret. Check it, and refuse requests older than 5 minutes. Reply with any 2xx within 10 seconds; failed deliveries are retried for about a day. Codes and card numbers are never sent in webhooks. Verify in Node.js: import crypto from 'node:crypto'; function verify(rawBody, header, secret) { const parts = Object.fromEntries(header.split(',').map(p => p.split('='))); const expected = crypto.createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex'); const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300; const got = Buffer.from(String(parts.v1 ?? '')); return fresh && got.length === expected.length && crypto.timingSafeEqual(Buffer.from(expected), got); }