Skip to main contentSkip to navigation
[email protected]
Client AreaSupport
Hosting Mammoth
HostingMammothYour Data, Our Responsibility
Home
Solutions
Hosting Services
Store
Pricing
About
Blog
API
Contact

Stay Ahead of the Curve

Get the latest insights on cybersecurity, AI innovations, and enterprise data solutions delivered to your inbox.

Hosting Mammoth
HostingMammothEnterprise Solutions

Enterprise-grade data solutions. Hosting, recovery, cybersecurity, and AI-powered services for businesses worldwide.

[email protected]
Sun - Fri, 9:00am - 5:00pm

Services

  • Cloud Hosting
  • Data Recovery
  • Cybersecurity
  • Legal Support
  • MSP Services
  • Web Development
  • AI Services
  • Free Server Migration

Hosting

  • VPS Hosting (NVMe SSD)
  • VDS Hosting (NVMe)
  • Storage VPS (High SSD)
  • GPU Servers
  • Managed Services
  • Cloud Firewall
  • Load Balancer
  • One-Click Apps
  • n8n Hosting
  • Object Storage
  • FAQ

Company

  • Store
  • Pricing
  • About Us
  • Locations
  • Blog
  • Testimonials
  • Contact
  • Affiliate Program
  • White-Label
  • Terms of Service
  • Privacy Policy
  • Browser Cookies
  • SLA

Support

  • Client Area
  • Submit Ticket
  • Knowledge Base
  • Server Status
  • API Documentation

© 2026 Hosting Mammoth. All rights reserved.

Knowledge Base
Getting StartedAccount ManagementVPS HostingGPU ServersStorage VPSCloud FirewallLoad BalancerServer ManagementBilling & PaymentsSupport & TicketsAffiliate ProgramReseller ProgramMarketplace & Appsn8n HostingManaged ServicesServer MigrationAPI & DevelopersSecurityTroubleshootingGlossaryInstall Guides
  1. Home
  2. /
  3. Support
  4. /
  5. Reseller Program
  6. /
  7. Reseller Credentials
GUIDEReseller Program

API Credentials for Resellers

4 min read

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

  • Log in to your reseller dashboard.
  • Navigate to Settings > API or API Credentials.
  • Click Generate API Key or Create New Credentials.
  • You will receive:
  • - API Key — A unique identifier for your reseller account. - API Secret — A secret token used for authentication. This is shown only once — save it securely.
  • Optionally set a label or description for the key (e.g., "Production Website", "Staging").
  • API Authentication

    Use your credentials to authenticate API requests. The typical authentication method involves including your API key and secret in request headers:

    bash
    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

    bash
    curl -X GET "https://api.datamammoth.com/v1/reseller/clients" \
      -H "Authorization: Bearer YOUR_API_KEY"

    Create a Client

    bash
    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

    bash
    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

    bash
    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 LabelEnvironmentUse
    production-websiteProductionClient-facing order system
    staging-testStagingDevelopment and testing
    billing-syncProductionBilling system integration
    monitoringProductionRead-only monitoring tools
    To create additional keys, return to the API credentials page and generate new ones.

    API Key Security

    Protect your API credentials with these best practices:

  • Never share secrets publicly — Do not commit API keys to version control or share them in public repositories.
  • Use environment variables — Store credentials in environment variables, not in code:
  • bash
    export DM_API_KEY="your_api_key_here"
    export DM_API_SECRET="your_api_secret_here"

  • Rotate keys regularly — Generate new keys periodically and deactivate old ones.
  • Restrict by IP — If available, restrict API key usage to specific IP addresses.
  • Use separate keys — Different keys for different environments and purposes.
  • Monitor usage — Review API activity logs for unexpected or unauthorized calls.
  • Revoking API Keys

    If a key is compromised or no longer needed:

  • Navigate to Settings > API Credentials.
  • Find the key you want to revoke.
  • Click Revoke or Delete.
  • Confirm the action.
  • 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:

  • API Overview — Automate Everything — Introduction and concepts.
  • API Authentication — Keys & JWT — Detailed authentication guide.
  • API Quickstart — Your First API Call — Make your first API request.
  • Server Management API — Server-specific endpoints.
  • 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.

    Was this article helpful?

    ← Back to Reseller ProgramBrowse all categories →

    Still have questions?

    Contact Support →Submit a Ticket