Prerequisites
- A XentFi account (Sign up)
- Basic understanding of REST APIs
- curl or a REST client (Postman, Insomnia, etc.)
Step 1: Get Your API Credentials
1
Log into Dashboard
Navigate to dashboard.xentfi.com and log in with your credentials.
2
Navigate to API Keys
Go to Settings → API Keys from the left sidebar.
3
Generate New Key
Click Generate New API Key, give it a name like “Development”, and select the environment.
4
Copy Credentials
Copy your
apiKey and orgId. Store them securely - you won’t see the API key again!Step 2: Set Up Environment Variables
Create a.env file or set environment variables:
Step 3: Make Your First API Call
Let’s list all your master wallets:Step 4: Create Your First Master Wallet
Step 5: Create a Deposit Address
Now let’s create a deposit address that customers can use to pay you:Step 6: Create a Payment Link
Generate a hosted payment page:Step 7: Set Up a Webhook (Optional)
Receive real-time payment notifications:Success! 🎉
You’ve successfully:- ✅ Made your first API call
- ✅ Created a master wallet
- ✅ Generated a deposit address
- ✅ Created a payment link
- ✅ (Optional) Set up a webhook
Common Error Handling
Invalid API Key (401)
Invalid API Key (401)
Rate Limit Exceeded (429)
Rate Limit Exceeded (429)
Validation Error (400)
Validation Error (400)
Next Steps
Development Environment
Set up local development with testnets
Authentication Deep Dive
Learn about API security best practices
Explore Products
Discover all XentFi products
API Reference
Browse complete API documentation

