DePay API Documentation
Complete reference for the DePay API v2, including endpoints, parameters, and examples.
Endpoints
GET
List Wallets
Returns a list of wallets for the authenticated user
Endpoint
/v2/wallets
Parameters
Name | Type | Required | Description |
---|---|---|---|
limit | integer | Optional | Maximum number of wallets to return (default: 10, max: 100) |
offset | integer | Optional | Number of wallets to skip (default: 0) |
sort | string | Optional | Sort order (created_at, balance) (default: created_at) |
order | string | Optional | Sort direction (asc, desc) (default: desc) |
Responses
Code Examples
// Using the JavaScript SDK import { DePay } from '@depay/sdk'; const depay = new DePay('YOUR_API_KEY'); async function getWallets() { try { const response = await depay.wallets.list({ limit: 10, offset: 0, sort: 'created_at', order: 'desc' }); console.log('Wallets:', response.data); console.log('Pagination:', response.pagination); } catch (error) { console.error('Error fetching wallets:', error); } } getWallets();
Try It Out
Test this endpoint directly from your browser. Enter your API key and parameters below.