Skip to main content

๐Ÿ”— BRDZ API Reference

Welcome to the BRDZ API Reference! This section covers direct HTTP API calls to BRDZ endpoints. If you're looking for SDK usage, check out the SDK Reference.

Base URLโ€‹

All API endpoints are relative to:

https://api.brdz.link/api

Authenticationโ€‹

BRDZ API uses two levels of authentication:

1. API Key (Required for all requests)โ€‹

Include your API key in the x-api-key header:

curl -H "x-api-key: YOUR_API_KEY" \
https://api.brdz.link/api/endpoint

2. JWT Token (Required for authenticated endpoints)โ€‹

Include JWT token in the Authorization header:

curl -H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "x-api-key: YOUR_API_KEY" \
https://api.brdz.link/api/protected-endpoint
Get API Key

Generate your API key at BRDZ Dashboard or use the API Key generation endpoint.

Quick Startโ€‹

1. Get API Keyโ€‹

curl -X POST https://api.brdz.link/api/keys/generate-sdk-key \
-H "Content-Type: application/json" \
-d '{"provider_name": "My App"}'

2. Login Userโ€‹

curl -X POST https://api.brdz.link/api/auth/login \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"usernameoremail": "user@example.com",
"password": "password123"
}'

3. Make Authenticated Requestโ€‹

curl -X GET https://api.brdz.link/api/users/123 \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "x-api-key: YOUR_API_KEY"

API Categoriesโ€‹

๐Ÿ” Core Authentication & Securityโ€‹

Essential authentication, authorization and security endpoints.

APIDescriptionKey Endpoints
AuthenticationUser login, mobile auth, password reset/auth/login, /auth/mobile-login, /password/request_reset
Two-Factor Auth2FA setup, enable, disable, verification/2fa/setup, /2fa/enable, /2fa/verify-login
API KeysAPI key generation and management/keys/sdk-key, /keys/generate-sdk-key
AdminAdministrative user management/admins/users, /admins/list, /admins/approve-kyc, /admins/users/{user_id}
User ManagementUser profiles, countries, TOS acceptance/users/update_profile, /users/countries, /users/confirm

โ›“๏ธ Modern Blockchain & Cryptoโ€‹

Next-generation blockchain and cryptocurrency operations.

APIDescriptionKey Endpoints
Crypto Wallet (ABSK)AI-powered wallet management/absk/manual/wallets/crypto, /absk/agent/wallets/process
Cross-chainMulti-chain transfers (Sepolia, Amoy, Neon)/crosschain/initiate, /crosschain/mint, /crosschain/burn
OnchainDirect blockchain transaction execution/onchain/execute, /onchain/log, /onchain/history
BridgeCross-chain wallet bridging/bridge/chains, /bridge/wallets, /bridge/execute
CardanoCardano blockchain operations/cardano/balance, /cardano/onramp, /cardano/offramp
XRPLXRPL integration and trustlines/xrpl/trustlines, /xrpl/onramp, /xrpl/issuer
NeonNeon blockchain authentication/neon/signin, /neon/balance

๐Ÿ’ฐ Financial Services & Commerceโ€‹

Payment processing and financial service endpoints.

APIDescriptionKey Endpoints
Marketplace (AI Commerce)AI conversational commerce & multi-marketplace shopping/marketplace/chat, /marketplace/search, /marketplace/orders
MCP (AI Commerce)AI-powered shopping and payments/mcp/step1, /mcp/create-order, /mcp/execute-order
XenditPayment gateway for Indonesia/xendit/withdraw, /xendit/fixed-va, /xendit/balance
IndodaxCrypto exchange & IDR-USDC conversion/indodax/crypto-wallet, /indodax/conversion
Foreign ExchangeCurrency conversion and rates/fx/rate, /fx/convertall, /fx/simulate
StableXCross-chain USDC operations/stablex/price-preview, /stablex/convert, /stablex/onramp
Client ManagementClient registration and management/clients/create_with_admin, /clients/{id}/stats
NTCPRecipient management & batch transfers/ntcp/recipients, /ntcp/batchtransfer/init

๐Ÿฆ Traditional Financial Servicesโ€‹

Legacy wallet and transaction management.

APIDescriptionKey Endpoints
Traditional WalletClassic wallet operations/wallet/balance, /wallet/history, /wallet/add
Traditional TransactionsStandard transaction processing/transactions, /transactions/topup, /transactions/transfer
VisaVirtual Visa card management/visa/cards, /visa/create, /visa/balance

๐Ÿ”— Third-Party Integrationsโ€‹

External service integrations and verifications.

APIDescriptionKey Endpoints
eKYCSumsub identity verification/ekyc/status, /ekyc/sumsub/token, /ekyc/sumsub/websdk
PlaidBanking and ACH integration/plaid/link_token, /plaid/exchange, /plaid/topup
TwitterTwitter bot verification & rewards/twitter/verification/initiate, /twitter/rewards/mention
PrivyPrivy authentication integration/privy/auth/login, /privy/auth/link-wallet
XenditIndonesian payment gateway/xendit/wallet/withdraw, /xendit/fixed-va/request, /xendit/reconciliation/run
IndodaxCrypto conversion & trading (IDR to USDC)/indodax/crypto-wallet/save, /indodax/conversion/run-daily, /indodax/conversion/status/:job_id
IDRXIDR onramp/offramp gateway (BRDZ System)/idrx/onramp/initiate, /idrx/offramp/initiate, /idrx/banks/add, /idrx/transactions/mint

๐Ÿงช Development & Testingโ€‹

Development tools and testing environments.

APIDescriptionKey Endpoints
TestnetTestnet development tools/testnet/chain, /testnet/onramp, /testnet/faucet

Response Formatโ€‹

All API responses follow a consistent format:

Success Responseโ€‹

{
"success": true,
"data": {
// Response data here
},
"timestamp": "2024-01-15T10:30:00Z"
}

Error Responseโ€‹

{
"success": false,
"error": "Error message",
"code": "ERROR_CODE",
"timestamp": "2024-01-15T10:30:00Z"
}

HTTP Status Codesโ€‹

StatusMeaningDescription
200OKRequest successful
201CreatedResource created successfully
400Bad RequestInvalid request parameters
401UnauthorizedMissing or invalid API key/token
403ForbiddenInsufficient permissions
404Not FoundResource not found
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer error

Rate Limitingโ€‹

API requests are rate limited to ensure fair usage:

  • Public endpoints: 100 requests per minute
  • Authenticated endpoints: 1000 requests per minute
  • File upload endpoints: 10 requests per minute

Rate limit headers are included in responses:

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640995200

Error Codesโ€‹

Common error codes you might encounter:

CodeDescriptionSolution
API_KEY_MISSINGAPI key not providedInclude x-api-key header
API_KEY_INVALIDInvalid API keyGenerate new API key
TOKEN_EXPIREDJWT token expiredRe-authenticate user
INSUFFICIENT_BALANCEInsufficient wallet balanceTop up wallet
RATE_LIMITEDToo many requestsWait and retry

SDKs Availableโ€‹

While this reference covers HTTP APIs directly, we recommend using our official SDKs:

  • JavaScript/TypeScript: npm install anantla_sdk
  • Python: Coming soon
  • Go: Coming soon
  • PHP: Coming soon

Supportโ€‹

Need help with the API?


Next Steps
  1. Get your API key from the Dashboard
  2. Try authentication with the Authentication API
  3. Explore specific APIs that match your use case
  4. Consider using the SDK for easier integration