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
sendingon the domain itself.enabledbooleanrequiresarray<string>
receivingobjectIdentical to
receivingon the domain itself.enabledbooleanrequiresarray<string>
mailboxesobjectMailbox counts for this domain.
activeandsuspendedmay not add up tototal: mailboxes in other states count only intotal.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 by this domain's mailboxes, as a percentage of the domain's quota. Null when no quota is set.
health_scoreintegerA score from 0 to 100; 100 means nothing is wrong.
GET /domains/{domain}/healthlists the problems behind it.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.