API Overview
SafeBank provides a comprehensive REST API for developers to integrate cryptocurrency payments into their applications.
Getting Started​
API Base URL​
https://api.safebank.io/v1
Authentication​
All API requests require authentication using API keys:
Authorization: Bearer YOUR_API_KEY
Get your API keys from the merchant dashboard.
Quick Start​
const SafeBank = require('@safebank/sdk');
const client = new SafeBank({
apiKey: 'your_api_key'
});
// Create a payment
const payment = await client.payments.create({
amount: 50.00,
currency: 'USD',
description: 'Order #12345'
});
Core Concepts​
Payments​
Create and manage cryptocurrency payments.
POST /payments
GET /payments/:id
GET /payments
Wallets​
Manage customer wallets and balances.
GET /wallets/:id
POST /wallets
GET /wallets/:id/balance
Transactions​
View transaction history and details.
GET /transactions
GET /transactions/:id
Webhooks​
Receive real-time notifications for events:
payment.createdpayment.completedpayment.failedrefund.processed
Next Steps​
API Questions? Contact developers@safebank.io