Virtual Cards & Crypto Wallets for AI Agents
Simple API for AI agents to manage crypto wallets and issue single-use prepaid cards.
// 1. Create customer with email
const customer = await fetch('https://agents.bfinance.app/api/clients', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: '[email protected]' })
}).then(r => r.json())
// { user_id, email, email_verified: false, message: "..." }
// 2. Verify email with code from inbox
await fetch(`https://agents.bfinance.app/api/email/${customer.user_id}/verify-code`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ code: '123456' })
}).then(r => r.json())
// 3. Get KYC URL (after email verified)
const client = await fetch(
`https://agents.bfinance.app/api/clients/${customer.user_id}`
).then(r => r.json())
// { kyc_url: "https://in.sumsub.com/...", ... }
// 4. After KYC approval, issue card
const wallets = await fetch(
`https://agents.bfinance.app/api/wallets/${customer.user_id}/wallets`
).then(r => r.json())
const card = await fetch('https://agents.bfinance.app/api/cards', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
user_id: customer.user_id,
wallet_id: wallets.wallets[0].wallet_id,
initialBalance: 10
})
}).then(r => r.json())Give this prompt to your AI assistant (Claude, ChatGPT, etc.):
Read the documentation at https://agents.bfinance.app/api/skill.md and help me use BFinance API for managing virtual cards and crypto wallets.