Overview a domain

GET/api/v1/domains/{domain}/overview
Requires anorganization API keywith the scopedomains:read

Parameters

NameInTypeDescription
domainrequiredpathstringThe domain id, or the domain name itself.

Request

GET/api/v1/domains/{domain}/overview
curl -X GET 'https://app.mailyte.com/api/v1/domains/yourdomain.com/overview' \
  -H 'Authorization: Bearer mk_live_YOUR_API_KEY'
The key names its own organization, so no X-Organization-ID header is needed.

Response

Success.

  • dataobject
    • objectstringdomain_overview
    • domain_idstring
    • namestring

      The domain itself, e.g. example.com.

    • statestringactive | provisioning | failed | disabled

      The same lifecycle answer GET /domains/{domain} publishes, derived from the same fields.

    • sendingobject

      Identical to sending on the domain itself.

      • enabledboolean
      • requiresarray<string>
    • receivingobject

      Identical to receiving on the domain itself.

      • enabledboolean
      • requiresarray<string>
    • mailboxesobject

      Mailbox counts for this domain. active and suspended may not add up to total: mailboxes in other states count only in total.

      • totalinteger

        Mailboxes on this domain. A live COUNT, never null; 0 means the domain genuinely has none.

      • activeinteger

        Of those, how many are active. A live COUNT, never null; 0 is a measured zero.

      • suspendedinteger

        Of those, how many are suspended. A live COUNT, never null; 0 is a measured zero, not an unread figure.

    • storageobject
      • used_percentnumber

        Storage used by this domain's mailboxes, as a percentage of the domain's quota. Null when no quota is set.

    • health_scoreinteger

      A score from 0 to 100; 100 means nothing is wrong. GET /domains/{domain}/health lists the problems behind it.

    • checked_atstring

      When DNS was last resolved for this domain. Null when it never has been.

    • created_atstring

Returned inside the standard envelope.

Errors

StatusWhen
401The API key is missing, unknown, revoked or expired. All four answer identically, on purpose: distinguishing them would confirm which keys exist.
403The key is valid but may not do this: it lacks the required scope, its IP allowlist does not include you, or this endpoint does not accept API keys.
404No such resource in this organization.
422The request was understood but the values were not acceptable.
429Too many requests, or the organization has spent its sending allowance. `Retry-After` says how long to wait.

Every status, with what causes it and what to do, is on the error reference.