{"openapi":"3.1.0","info":{"title":"Blip API","version":"1.0.0","description":"Wallet, cards, top-ups, withdrawals and webhooks for your Blip account."},"servers":[{"url":"https://blipcards.app/api/public/v1"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key from Developers in the Blip dashboard (blip_sk_...)."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"paths":{"/account":{"get":{"operationId":"account","summary":"Get your account","description":"Your Blip wallet (deposit address and SOL balance), card prices and the top-up fee.\n\nScope: read","responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"wallet":{"address":"9xQe…","sol":1.2845,"usd":71.04},"card_price_usd":15,"topup_fee_pct":2,"status":"active"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cards":{"get":{"operationId":"cards-list","summary":"List cards","description":"Every card on your account, newest first, 50 per page: your own card (customer_id null) and the cards of your customers.\n\nScope: read","parameters":[{"name":"customer_id","in":"query","required":false,"description":"Only this customer's cards.","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Start from this position.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"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"}]}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"cards-create","summary":"Order a card","description":"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.\n\nScope: write","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"asset":{"type":"string","description":"Coin to pay with. Defaults to SOL."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"7d1c…","customer_id":null,"status":"pending","last4":null,"frozen":false,"created_at":"2026-12-05T18:00:00Z"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cards/{card_id}":{"get":{"operationId":"cards-get","summary":"Get a card","description":"The card with its live balance.\n\nScope: read","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"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"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cards/{card_id}/sensitive":{"get":{"operationId":"cards-sensitive","summary":"Get card number, CVV and expiry","description":"Full card details, read live from the card issuer. Blip never stores them. Keep them out of your logs.\n\nScope: card_details","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"number":"5240 •••• •••• 4821","cvv":"•••","exp":"12/29"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cards/{card_id}/freeze":{"post":{"operationId":"cards-freeze","summary":"Freeze a card","description":"Blocks new payments until you unfreeze it.\n\nScope: write","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"7d1c…","customer_id":null,"status":"issued","last4":"4821","frozen":true,"created_at":"2026-12-05T18:00:00Z"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cards/{card_id}/unfreeze":{"post":{"operationId":"cards-unfreeze","summary":"Unfreeze a card","description":"Allows payments again.\n\nScope: write","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"7d1c…","customer_id":null,"status":"issued","last4":"4821","frozen":false,"created_at":"2026-12-05T18:00:00Z"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cards/{card_id}/transactions":{"get":{"operationId":"cards-transactions","summary":"List card transactions","description":"Payments, refunds, declines and top-ups, newest first, 50 per page.\n\nScope: read","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Start from this position. Use next_offset from the previous page.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"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}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cards/{card_id}/codes":{"get":{"operationId":"cards-codes","summary":"Get 3-D Secure and wallet codes","description":"Codes sent to the card in the last 30 minutes: online payment checks (3-D Secure) and Apple Pay / Google Pay activation.\n\nScope: card_details","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"code":"482913","kind":"payment_3ds","at":"2026-12-05T18:21:00Z","amount":12.99,"merchant":"Netflix"}]}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cards/{card_id}/wallet-code":{"post":{"operationId":"cards-wallet-code","summary":"Add the card to Apple Pay or Google Pay","description":"Call with arm=true, add the card in the wallet app, then call again with arm=false to read the activation code.\n\nScope: card_details","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["arm"],"properties":{"arm":{"type":"boolean","description":"true to start, false to read the code."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"status":"armed","code":null}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/customers":{"post":{"operationId":"customers-create","summary":"Add a customer","description":"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.\n\nScope: write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","email"],"properties":{"name":{"type":"string","description":"Customer's full name, 2 to 60 characters."},"email":{"type":"string","description":"Customer's email."},"external_id":{"type":"string","description":"Your id for this customer."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"3f9a…","external_id":"user_1842","name":"Maria Lopez","email":"maria@example.com","created_at":"2026-12-06T09:00:00Z"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"customers-list","summary":"List customers","description":"Your customers, newest first, 50 per page.\n\nScope: read","parameters":[{"name":"external_id","in":"query","required":false,"description":"Find a customer by your own id.","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Start from this position. Use next_offset from the previous page.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"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}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/customers/{customer_id}":{"get":{"operationId":"customers-get","summary":"Get a customer","description":"The customer and their cards.\n\nScope: read","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"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"}]}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/customers/{customer_id}/cards":{"post":{"operationId":"customers-card","summary":"Order a card for a customer","description":"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.\n\nScope: write","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"asset":{"type":"string","description":"Coin to pay with. Defaults to SOL."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"9b2e…","customer_id":"3f9a…","status":"pending","last4":null,"frozen":false,"created_at":"2026-12-05T18:00:00Z"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cards/{card_id}/topups/quote":{"post":{"operationId":"topups-quote","summary":"Quote a top-up","description":"What a top-up costs in SOL, with the fee, and about how much lands on the card.\n\nScope: read","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount_usd"],"properties":{"amount_usd":{"type":"number","description":"Amount to put on the card, $5 to $2,500."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"amount_usd":50,"fee_usd":1,"network_usd":0.42,"total_sol":"0.9358","total_usd":51.42,"on_card_usd":49.1}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cards/{card_id}/topups":{"post":{"operationId":"topups-create","summary":"Top up a card","description":"Pays the top-up in SOL from your Blip wallet. One top-up runs at a time; topup.updated webhooks report its progress.\n\nScope: write","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount_usd"],"properties":{"amount_usd":{"type":"number","description":"Amount to put on the card, $5 to $2,500."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"ld_…","card_id":"7d1c…","status":"funding","amount_usd":50,"fee_usd":1,"created_at":"2026-12-05T18:30:00Z"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/topups":{"get":{"operationId":"topups-list","summary":"List top-ups","description":"Your 20 latest card top-ups.\n\nScope: read","responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"ld_…","card_id":"7d1c…","status":"credited","amount_usd":50,"fee_usd":1,"created_at":"2026-12-05T18:30:00Z"}]}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/topups/{topup_id}":{"get":{"operationId":"topups-get","summary":"Get a top-up","description":"One top-up and its status.\n\nScope: read","parameters":[{"name":"topup_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"ld_…","card_id":"7d1c…","status":"credited","amount_usd":50,"fee_usd":1,"created_at":"2026-12-05T18:30:00Z"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/withdrawals":{"get":{"operationId":"withdrawals-list","summary":"List withdrawals","description":"Your 20 latest withdrawals.\n\nScope: read","responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"wd_…","to":"Hc3p…QdFy","sol":0.5,"status":"sent","signature":"5xYz…","created_at":"2026-12-05T18:40:00Z"}]}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"withdrawals-create","summary":"Withdraw SOL","description":"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.\n\nScope: withdraw","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["to"],"properties":{"to":{"type":"string","description":"Solana wallet address."},"amount_sol":{"type":"string","description":"Amount in SOL, e.g. \"0.5\". Leave out when all is true."},"all":{"type":"boolean","description":"Send everything (less the network fee)."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"wd_…","to":"Hc3p…QdFy","sol":0.5,"status":"sent","signature":"5xYz…","created_at":"2026-12-05T18:40:00Z"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/events":{"get":{"operationId":"events-list","summary":"List events","description":"The same events webhooks send, newest first, for polling or catching up.\n\nScope: read","parameters":[{"name":"limit","in":"query","required":false,"description":"1 to 100, default 50.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"evt_…","type":"card.transaction","created_at":"2026-12-05T18:20:00Z","data":{"card_id":"7d1c…","amount":12.99,"status":"success","merchant":"Netflix"}}]}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks":{"get":{"operationId":"webhooks-list","summary":"List webhooks","description":"Your webhook endpoints.\n\nScope: read","responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"wh_…","url":"https://example.com/blip","events":["card.transaction"],"created_at":"2026-12-05T18:00:00Z","failing":false}]}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"webhooks-create","summary":"Add a webhook","description":"Blip POSTs events to this URL. The signing secret is shown once: keep it to check the Blip-Signature header.\n\nScope: write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Public https:// URL."},"events":{"type":"array","items":{"type":"string"},"description":"Events to send. Leave out for all events."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"wh_…","url":"https://example.com/blip","events":["card.transaction"],"secret":"whsec_…"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{webhook_id}":{"delete":{"operationId":"webhooks-delete","summary":"Delete a webhook","description":"Stops sending events to it.\n\nScope: write","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"deleted":true}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{webhook_id}/test":{"post":{"operationId":"webhooks-test","summary":"Send a test event","description":"Sends a ping event to the webhook now.\n\nScope: write","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"sent":true,"status":200}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}