> Complete guide to the Mailbux Reseller REST API. Create tenants, manage domains and email accounts programmatically. No WHMCS module needed.

Source: https://mailbux.com/blog/reseller/mailbux-reseller-api-integration-guide

# Mailbux Reseller API: Integrate Email Hosting Into Your Platform

April 3, 2026•2 min read•Updated October 8, 2026

## Overview

The Mailbux Reseller API is a REST API that lets you programmatically manage tenants, domains, and email accounts. Use it to integrate email hosting into your own billing platform, client area, or automation workflows.
**Full interactive API documentation:** [mailbux.com/reseller-api](https://mailbux.com/reseller-api)
**In-dashboard reference:** [Account → Reseller → API](https://dash.mailbux.com/account/reseller/api)

## No WHMCS / cPanel Module

Mailbux does not provide a WHMCS module or cPanel/WHM integration. Instead, we offer a clean REST API that works with any platform. You can integrate it with WHMCS, Blesta, or any custom billing system using their API/hook capabilities.

## Authentication

Create a reseller API key at [Account → Reseller → API](https://dash.mailbux.com/account/reseller/api) (tenant mail API keys: Manage → API access, paid plans), then include it as a header:

```
X-Api-Key: your-api-key-here
```

## Key Endpoints

### Tenant Management

- `GET /api/user/tenants` — List all your sub-tenants with email counts
- `POST /api/user/tenants` — Create a new tenant (auto-generates credentials)
- `POST /api/user/tenants/{id}/suspend` — Suspend a tenant
- `POST /api/user/tenants/{id}/reactivate` — Reactivate a suspended tenant
- `POST /api/user/tenants/{id}/terminate` — Permanently delete a tenant
- `PATCH /api/user/tenants/{id}/quota` — Update tenant storage quota

### Reseller Overview

- `GET /api/user/reseller/overview` — Get quota usage, tenant stats
- `POST /api/user/reseller/sync-quota` — Force recalculate available quota

## Creating a Tenant (Example)

```
POST /api/user/tenants
Content-Type: application/json

{
  "quota_gb": 5
}

Response:
{
  "success": true,
  "data": {
    "tenant_username": "user38472615",
    "tenant_name": "user38472615_tent",
    "tenant_password": "a1b2c3d4e5f6...",
    "quota_gb": 5,
    "status": "active"
  }
}
```

**Important:** The tenant password is shown only once in the response. Save it immediately — it cannot be retrieved later.

## Tenant Login

Once a tenant is created, the tenant admin can log in at your branded webmail URL (or `https://exp.mail.mailbux.com`) using the generated username and password. From there they can add domains, create email accounts, and access all email features.

## Integration Workflow

Before creating tenants, make sure you have set up your brand at [Reseller → Rebrand](https://dash.mailbux.com/services). The typical integration flow is:

1. **Brand setup** — Create your brand identity (once)
2. **Provisioning** — Call the create tenant endpoint when a customer purchases hosting. Store the returned credentials.
3. **Suspension** — When a customer's invoice is overdue, call the suspend endpoint. Call reactivate when they pay.
4. **Termination** — When a customer cancels, call the terminate endpoint to remove all data.
5. **Quota changes** — Use the quota update endpoint for storage upgrades/downgrades.

## Error Handling

Common error responses:

- `403 PLAN_UPGRADE_REQUIRED` — Free plan users must upgrade to a paid plan
- `422 QUOTA_EXCEEDED` — Requested quota exceeds available quota
- `422 TENANT_LIMIT` — Maximum tenant limit reached

For the complete API reference with all request/response examples, visit [mailbux.com/reseller-api](https://mailbux.com/reseller-api) or [Account → Reseller → API](https://dash.mailbux.com/account/reseller/api).

## Put this guide to work

Business email on your own domain, free to start — unlimited business mailboxes on paid plans, no per-mailbox pricing.
[See pricing](https://mailbux.com/pricing)

## Related guides

[2 min read ### Getting Started as a Mailbux Reseller: Complete Setup Guide Everything you need to know to start reselling Mailbux email hosting — from purchasing an add-on to creating your first sub-tenant.](https://mailbux.com/blog/reseller/getting-started-mailbux-reseller-setup-guide)

[7 min read ### What Is JMAP and How to Use It with Mailbux (Modern Email API Guide) If you have ever tried to build an email client, automate inbox processing, or sync messages across devices programmatically, you know how painful IMAP can be. The protocol dates back to 1986, relies on a custom text-bas](https://mailbux.com/blog/email-guides/what-is-jmap-email-api-guide-mailbux)

[4 min read ### Best Email Hosting for Multiple Domains in 2026 Find the best email hosting for managing multiple domains in 2025. Compare providers on pricing, domain limits, and features for multi-domain email management.](https://mailbux.com/blog/email-comparisons/best-email-hosting-multiple-domains-2026)

[4 min read ### Mailbux vs IceWarp: Business Email Platform Comparison A comprehensive comparison of Mailbux and IceWarp for business email, covering pricing, features, collaboration tools, and which platform suits different business sizes.](https://mailbux.com/blog/email-comparisons/mailbux-vs-icewarp)

[1 min read ### White Label Email Hosting: Offer Branded Email to Your Clients White label email hosting lets you offer professional email under your own brand. Perfect for MSPs, agencies, and web hosts.](https://mailbux.com/blog/business-email/white-label-email-hosting-branded-email)

[7 min read ### Email Forwarding vs Email Hosting: Which One Do You Need? Forwarding passes mail on to an inbox you already have; hosting gives your address a real mailbox that sends as your domain. Here is when each one is enough.](https://mailbux.com/blog/email-comparisons/email-forwarding-vs-email-hosting)

---

More for agents: [llms.txt](https://mailbux.com/llms.txt) · [Sitemap](https://mailbux.com/sitemap.xml)
