# Read a domain monitor and its last results

`GET /api/v1/email/domain-monitors/{monitorId}`

- Authentication: Secret API key as a bearer token
- Billing: Free.
- Group: Email

The monitor plus `results`: for every domain from the last run, its status (`ok`, `flagged`, `dead` or `invalid`), the flags that fired (`parked`, `blocklisted`, `expiring`, `no_spf`, `no_dmarc`, and the ones that compare with the previous run: `provider_changed`, `spf_changed`, `dmarc_changed`, `dkim_lost`, `mta_sts_lost`), whether it changed since the previous run, and the facts the next run compares against; keyed by the domain in punycode, or null until the first run has finished. A monitor that belongs to another account answers `404`.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `monitorId` | path | integer | yes | The monitor's id from the list endpoint. |

## Example request

```bash
curl https://spaw.co/api/v1/email/domain-monitors/4 \
  -H "Authorization: Bearer sk_live_…"
```

## Responses

### 200 — The monitor.

```json
{
    "success": true,
    "data": {
        "monitor": {
            "id": 4,
            "name": "Sending domains",
            "cadence": "daily",
            "domain_count": 2,
            "next_run_at": "2026-09-14T08:00:00+00:00",
            "last_run_at": "2026-09-13T08:00:03+00:00",
            "last_summary": {
                "total": 2,
                "ok": 1,
                "flagged": 1,
                "dead": 0,
                "invalid": 0,
                "changed": 1,
                "newly_flagged": 1,
                "credits_used": 0,
                "stopped_reason": null
            },
            "webhook_url": null,
            "webhook_events": "changes",
            "webhook_status": null,
            "webhook_detail": null,
            "prunes_after_days": 365,
            "created_at": "2026-09-01T08:00:00+00:00",
            "results": {
                "acme.com": {
                    "status": "flagged",
                    "flags": [
                        "no_dmarc",
                        "provider_changed",
                        "dmarc_changed"
                    ],
                    "changed": true,
                    "valid": true,
                    "mx_found": true,
                    "mx_provider": "other",
                    "mx_provider_type": "self_hosted",
                    "has_spf": true,
                    "spf_all": "-all",
                    "dmarc_policy": null,
                    "dkim_selectors": [],
                    "mta_sts": true,
                    "parked": false,
                    "mx_blocklisted": false,
                    "domain_expires_at": "2027-03-12"
                },
                "news.acme.com": {
                    "status": "ok",
                    "flags": [],
                    "changed": false,
                    "valid": true,
                    "mx_found": true,
                    "mx_provider": "google",
                    "mx_provider_type": "mailbox_provider",
                    "has_spf": true,
                    "spf_all": "-all",
                    "dmarc_policy": "reject",
                    "dkim_selectors": [
                        "google"
                    ],
                    "mta_sts": true,
                    "parked": false,
                    "mx_blocklisted": false,
                    "domain_expires_at": "2027-03-12"
                }
            }
        }
    }
}
```

### 401 — The key is missing, malformed, or revoked.

```json
{
    "success": false,
    "error": {
        "code": "UNAUTHENTICATED",
        "message": "Provide a valid API key as a bearer token.",
        "request_id": "req_01m1kgdm4xngzmbmff68g94w0c"
    }
}
```

### 404 — No such record on this account.

```json
{
    "success": false,
    "error": {
        "code": "NOT_FOUND",
        "message": "No record with that id on this account.",
        "request_id": "req_01m1kgdm4xngzmbmff68g94w0c"
    }
}
```

### 429 — Over 5 requests per second for the key. Retry after the limit resets.

```json
{
    "success": false,
    "error": {
        "code": "RATE_LIMITED",
        "message": "Too many requests. Retry after the limit resets.",
        "request_id": "req_01m1kgdm4xngzmbmff68g94w0c"
    }
}
```

## Error codes

- `UNAUTHENTICATED` — https://spaw.co/docs/errors/UNAUTHENTICATED
- `NOT_FOUND` — https://spaw.co/docs/errors/NOT_FOUND
- `RATE_LIMITED` — https://spaw.co/docs/errors/RATE_LIMITED

---

Canonical page: https://spaw.co/docs/api/get-domain-monitor · OpenAPI document: https://spaw.co/openapi.json · All endpoints: https://spaw.co/docs/api
