Reseller API Reference
Basics
- Base URL:
https://api.easymailarchive.com/reseller - Auth:
Authorization: Bearer <your API key>. Create the key in the Partner Portal under Settings, see Getting Started as a Reseller. - Send
Accept: application/jsonand JSON bodies. - You only see your own tenants.
Endpoints
| Method | Path | Does |
|---|---|---|
| GET | /tenants | List tenants |
| POST | /tenants | Create a tenant |
| GET | /tenants/{slug} | Show a tenant with usage |
| PUT | /tenants/{slug}/suspend | Suspend |
| PUT | /tenants/{slug}/unsuspend | Unsuspend |
| PUT | /tenants/{slug}/max-licenses | Set the license cap |
| DELETE | /tenants/{slug} | Delete |
List tenants
curl https://api.easymailarchive.com/reseller/tenants \
-H "Authorization: Bearer $KEY" -H "Accept: application/json"
{"data": [{"slug": "acme-gmbh", "name": "Acme GmbH", "status": "active", "plan": "business", "created_at": "2026-10-18T09:00:00Z"}]}
Deleted tenants are not listed.
Create a tenant
curl -X POST https://api.easymailarchive.com/reseller/tenants \
-H "Authorization: Bearer $KEY" -H "Accept: application/json" -H "Content-Type: application/json" \
-d '{"company_name":"Acme GmbH","admin_email":"[email protected]","admin_name":"Anna Berg","admin_password":"S3cure-pass","plan":"business","max_licenses":25}'
| Field | Rule |
|---|---|
company_name | Required, max 128 |
admin_email | Required, email |
admin_name | Required, max 128 |
admin_password | Required, 8 to 128 characters |
plan | Required: starter, business, enterprise |
max_licenses | Optional, 1 to 10000 |
Response 201:
{"slug": "acme-gmbh", "url": "https://acme-gmbh.easymailarchive.com", "status": "active"}
The slug comes from company_name. You cannot set it.
Show a tenant
GET /tenants/{slug} returns tenant with slug, name, status, plan, max_licenses, created_at and usage: active_users, license_count, max_licenses, storage_gb, unassigned_address_count.
Suspend, unsuspend, delete
- Response:
{"slug": "acme-gmbh", "status": "suspended"}(oractive,deleted). - Suspend: users cannot sign in.
- Delete: the tenant is removed from your list at once. It cannot be undone through the API. To keep a 30-day undo window, use Terminate in the Partner Portal.
Set the license cap
curl -X PUT https://api.easymailarchive.com/reseller/tenants/acme-gmbh/max-licenses \
-H "Authorization: Bearer $KEY" -H "Accept: application/json" -H "Content-Type: application/json" \
-d '{"max_licenses": 50}'
Response: {"max_licenses": 50}. Range 1 to 10000.
Errors
| Code | Body | Cause |
|---|---|---|
| 401 | {"error": "Unauthorized"} | Key missing, wrong or regenerated |
| 404 | {"error": "Not found"} | Slug unknown, deleted, or not your tenant |
| 409 | {"error": "Tenant is under a legal hold"} | Delete refused |
| 422 | Field errors | Invalid input |
| 500 | {"error": "Provisioning failed"} | Create failed. Retry, then contact us |
Limits
- No pagination on the list.
- No update of name, plan or admin through the API.