The Data Mammoth API gives resellers the ability to automate client management, service provisioning, and billing operations programmatically. Instead of manually creating accounts and ordering services through the dashboard, you can integrate these operations into your own systems, websites, and workflows.
Why Use the Reseller API?
- Automated provisioning — Instantly provision servers for new clients when they sign up on your website.
- Client management — Create, update, and manage client accounts programmatically.
- Billing integration — Sync invoicing with your own billing system.
- Custom workflows — Build custom order flows, dashboards, and monitoring tools.
- Scale efficiently — Handle growing client volumes without manual overhead.
Generating API Credentials
API Authentication
Use your credentials to authenticate API requests. The typical authentication method involves including your API key and secret in request headers:
curl -X GET "https://api.datamammoth.com/v1/reseller/clients" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-API-Secret: YOUR_API_SECRET" \
-H "Content-Type: application/json"For detailed authentication methods (API keys, JWT tokens), see API Authentication — Keys & JWT.
Common Reseller API Operations
List Your Clients
curl -X GET "https://api.datamammoth.com/v1/reseller/clients" \
-H "Authorization: Bearer YOUR_API_KEY"Create a Client
curl -X POST "https://api.datamammoth.com/v1/reseller/clients" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"first_name": "Jane",
"last_name": "Smith",
"email": "[email protected]",
"password": "SecurePassword123!",
"company": "Acme Inc"
}'Provision a Server for a Client
curl -X POST "https://api.datamammoth.com/v1/reseller/servers" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"client_id": "client_12345",
"plan": "vps-standard",
"region": "us-east",
"os": "ubuntu-24.04",
"hostname": "web01.example.com"
}'View Client Services
curl -X GET "https://api.datamammoth.com/v1/reseller/clients/client_12345/services" \
-H "Authorization: Bearer YOUR_API_KEY"Managing Multiple API Keys
You may want separate API keys for different purposes:
| Key Label | Environment | Use |
|---|---|---|
production-website | Production | Client-facing order system |
staging-test | Staging | Development and testing |
billing-sync | Production | Billing system integration |
monitoring | Production | Read-only monitoring tools |
API Key Security
Protect your API credentials with these best practices:
export DM_API_KEY="your_api_key_here"
export DM_API_SECRET="your_api_secret_here"Revoking API Keys
If a key is compromised or no longer needed:
The key is immediately invalidated. Any systems using that key will lose access and need to be updated with a new key.
Rate Limits
Reseller API requests are subject to rate limits to ensure fair usage:
- Rate limits may differ from standard API limits.
- Check the response headers for rate limit information.
- See API Rate Limits & Best Practices for optimization strategies.
Getting Started with the API
For comprehensive API documentation, including all available endpoints, request/response formats, and error handling:
What to Do Next
- API Overview — Automate Everything — Full API documentation.
- Managing Your Reseller Clients — Client management guide.
- Tracking Your Reseller Earnings — Monitor revenue.
- Managing Your Team Members — Add team access.