Reseller API

Provision and manage tenants programmatically via our REST API. Integrate with WHMCS or your own billing system.

Base URL

https://api.easymailarchive.com

Authentication

All requests require a Bearer token. You can find your API key in the reseller dashboard.

HTTP Header

Authorization: Bearer your_api_key

Endpoints

POST/api/reseller/tenants

Provision a new tenant with an admin account. Returns the tenant slug and access URL.

Request Body

{
  "company_name": "Acme Corp",
  "admin_email": "[email protected]",
  "admin_name": "John Doe",
  "admin_password": "initial-password",
  "plan": "starter"
}

Response

{
  "slug": "acme-corp",
  "url": "https://acme-corp.myreseller.com",
  "status": "active"
}
GET/api/reseller/tenants

Returns all tenants belonging to your reseller account.

Response

[
  {
    "slug": "acme-corp",
    "company_name": "Acme Corp",
    "status": "active",
    "plan": "starter"
  }
]
GET/api/reseller/tenants/{slug}

Returns tenant details including current usage statistics.

Path Parameters

slugstring— The unique tenant identifier

Response

{
  "slug": "acme-corp",
  "status": "active",
  "plan": "starter",
  "usage": {
    "active_users": 12,
    "storage_bytes": 5368709120,
    "message_count": 48230
  }
}
PUT/api/reseller/tenants/{slug}/suspend

Suspends a tenant. Users will no longer be able to log in and SMTP ingestion stops.

Path Parameters

slugstring— The unique tenant identifier

Response

{
  "slug": "acme-corp",
  "status": "suspended"
}
PUT/api/reseller/tenants/{slug}/unsuspend

Reactivates a suspended tenant. Access and SMTP ingestion are restored.

Path Parameters

slugstring— The unique tenant identifier

Response

{
  "slug": "acme-corp",
  "status": "active"
}
DELETE/api/reseller/tenants/{slug}

Permanently deletes a tenant and all associated data. This action cannot be undone.

Path Parameters

slugstring— The unique tenant identifier

Response

{
  "slug": "acme-corp",
  "status": "deleted"
}

We use cookies to analyze site traffic and optimize your experience. No tracking occurs without your consent. Privacy Policy