Authenticate
Create a key in Dashboard → Integrations → API keys. Keys start with eg_, are shown once, and are read-only: they can't add hosts, change settings or see billing. Send the key as Authorization: Bearer eg_…. Revoke it from the same page; it stops working immediately.
GET /api/v1/status
curl -s https://www.elevenguard.com/api/v1/status \
-H "Authorization: Bearer $ELEVENGUARD_API_KEY"
{
"generatedAt": "2026-12-01T09:12:44.120Z",
"hosts": [
{
"hostname": "api.example.com",
"expiresAt": "2026-12-07T23:59:59.000Z",
"daysLeft": 6,
"issuer": "Let's Encrypt",
"tlsGrade": "B",
"tlsGradeScore": 3,
"url": "https://www.elevenguard.com/ssl-check/api.example.com"
}
],
"emailDomains": [
{
"domain": "example.com",
"spf": "~all",
"dmarc": "p=none",
"dmarcPolicy": "none",
"dkim": "google, s1",
"issueCount": 2,
"worstIssue": "high",
"worstIssueRank": 3,
"url": "https://www.elevenguard.com/dashboard/email-security"
}
]
}
Hosts are sorted by days left, soonest first.
Host fields
hostname | The monitored host, with :port when it isn't 443. |
expiresAt, daysLeft | Certificate expiry (ISO 8601) and whole days left; negative once expired. Missing when the check failed. |
issuer | The issuing CA's organisation. |
tlsGrade, tlsGradeScore | The A–F grade of the TLS configuration, and the same as a number (A 4, B 3, C 2, F 0). |
checkError | Why the last check failed (DNS, connection refused, handshake). Missing when it worked. |
Email domain fields
Email domains are scanned daily on Pro and Agency; on Free the list is empty.
spf | How the SPF record ends (-all, ~all, ?all, +all), Present, or Missing. |
dmarc, dmarcPolicy | The DMARC policy as p=… and as none, quarantine or reject. |
dkim | DKIM selectors found, or Not found, No mail (null MX) or Unknown. |
issueCount, worstIssue, worstIssueRank | Open SPF, DKIM and DMARC findings, the worst severity, and that as a number (critical 4 … low 1, none 0). |
The data is from the daily checks, so polling more than once an hour gains nothing. Fields that have no value are left out. New fields may be added; ignore what you don't recognise. The field names match the New Relic events.
Errors and limits
401: no key, or the key was revoked.429: more than 120 requests in an hour for the account.
For alerts rather than polling, use the signed webhooks.
Support
Email support@elevenguard.com.