Overview a domain
/api/v1/domains/{domain}/overviewParameters
| Name | In | Type | Description |
|---|---|---|---|
domainrequired | path | string | The domain id, or the domain name itself. |
Request
/api/v1/domains/{domain}/overviewcurl -X GET 'https://app.mailyte.com/api/v1/domains/yourdomain.com/overview' \
-H 'Authorization: Bearer mk_live_YOUR_API_KEY'const response = await fetch('https://app.mailyte.com/api/v1/domains/yourdomain.com/overview', {
method: 'GET',
headers: {
Authorization: 'Bearer mk_live_YOUR_API_KEY',
},
});
const { data } = await response.json();import requests
response = requests.get(
"https://app.mailyte.com/api/v1/domains/yourdomain.com/overview",
headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
)
data = response.json()["data"]<?php
$response = Http::withToken('mk_live_YOUR_API_KEY')
->get('https://app.mailyte.com/api/v1/domains/yourdomain.com/overview');
$data = $response->json('data');require "net/http"
require "json"
uri = URI("https://app.mailyte.com/api/v1/domains/yourdomain.com/overview")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer mk_live_YOUR_API_KEY"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }Response
Success.
dataobjectobjectstringdomain_overviewdomain_idstringnamestringThe domain itself, e.g. `example.com`.
statestringactive | provisioning | failed | disabledThe same lifecycle answer `GET /domains/{domain}` publishes, derived from the same fields.
sendingobjectIdentical to `sending` on the domain itself.
enabledbooleanrequiresarray<string>
receivingobjectIdentical to `receiving` on the domain itself.
enabledbooleanrequiresarray<string>
mailboxesobjectLive counts over this domain's mailbox rows. None of the three is ever null, and `active` + `suspended` need not sum to `total` -- a mailbox in any other status is counted only in `total`.
totalintegerMailboxes on this domain. A live `COUNT`, never null; 0 means the domain genuinely has none.
activeintegerOf those, how many are active. A live `COUNT`, never null; 0 is a measured zero.
suspendedintegerOf those, how many are suspended. A live `COUNT`, never null; 0 is a measured zero, not an unread figure.
storageobjectused_percentnumberStorage used across this domain's mailboxes as a percentage of the domain quota. Null when no quota is set -- there is nothing to be a percentage of.
health_scoreinteger0-100. The same score `GET /domains/{domain}/health` returns, where the issues behind it are also listed. Never null: it is computed on every request by deducting from 100 for each problem found, so a domain with nothing wrong scores 100 and one that could not be judged still scores. A low score is a verdict, never a missing reading.
checked_atstringWhen DNS was last resolved for this domain. Null when it never has been.
created_atstring
Returned inside the standard envelope.
Errors
| Status | When |
|---|---|
401 | The API key is missing, unknown, revoked or expired. All four answer identically, on purpose: distinguishing them would confirm which keys exist. |
403 | The 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. |
404 | No such resource in this organization. |
422 | The request was understood but the values were not acceptable. |
429 | Too 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.