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/json and JSON bodies.
  • You only see your own tenants.

Endpoints

MethodPathDoes
GET/tenantsList tenants
POST/tenantsCreate a tenant
GET/tenants/{slug}Show a tenant with usage
PUT/tenants/{slug}/suspendSuspend
PUT/tenants/{slug}/unsuspendUnsuspend
PUT/tenants/{slug}/max-licensesSet 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}'
FieldRule
company_nameRequired, max 128
admin_emailRequired, email
admin_nameRequired, max 128
admin_passwordRequired, 8 to 128 characters
planRequired: starter, business, enterprise
max_licensesOptional, 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"} (or active, 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

CodeBodyCause
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
422Field errorsInvalid 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.