Getting started
- Sign in to the portal as an administrator and open Admin, API.
- Press New API key, choose the account and give the key a name, for example RMM or Power BI.
- Copy the key right away. It is shown only once, so store it in a vault.
- Send the key in the x-api-key header on every request.
The key gives read access to the account it was created for, and to the accounts below it. It cannot change anything.
Endpoints
| Method and address | What you get |
|---|---|
| GET /api/v1/domains | All the domains with grade, score, policy and findings. |
| GET /api/v1/domains/{domain} | One domain: grade and findings, with how to fix them and in which order. |
| GET /api/v1/domains/{domain}/history?days=90 | Grade and score over time (1 to 365 days). |
| GET /api/v1/reports/overview?days=30 | Report overview: volume, pass rate, senders and timeline. Optional ?domain=. |
The domain must be on the account the key was created for. An unknown domain gives 404.
Examples
curl
curl -H "x-api-key: $MDM_KEY" https://dmarc.micronet.no/api/v1/domains
PowerShell
Invoke-RestMethod "https://dmarc.micronet.no/api/v1/domains/example.com" -Headers @{ "x-api-key" = $env:MDM_KEY }Response for a domain
{
"domain": "example.com",
"status": "aktiv",
"grade": "B",
"score": 84,
"policy": "reject",
"reportsConnected": true,
"lastChecked": "2026-11-16T03:10:12.000Z",
"findings": [
{
"severity": "lav",
"area": "DNSSEC",
"text": "DNSSEC er ikke slått på.",
"fix": "Slå på DNSSEC hos DNS-leverandøren først ...",
"why": "Uten DNSSEC er svarene fra DNS ikke signert ...",
"order": "Slå på DNSSEC hos DNS-leverandøren først og la den lage nøklene ..."
}
]
}The fix, why and order fields are texts for people, and they can be missing. Severity has four levels, from critical down to low.
Error codes
| Code | Meaning |
|---|---|
| 401 | The key is missing or invalid. |
| 403 | The key is limited to certain IP addresses, and the request came from another address. |
| 404 | The domain is not on the account. |
Limit the key to IP addresses
When you create a key you can enter the IP addresses or networks (CIDR) it may be used from, for example 203.0.113.7 or 198.51.100.0/24. An empty field means the key works from every address. IPv4 and IPv6 are supported.
Webhooks
Would you rather be notified than poll? Under Customers, Settings, each account can have a webhook address. Every event is sent as JSON, with a signature in the x-mdm-signature header (HMAC-SHA256 of the body with the secret you choose).