# Retrieve a domain's DMARC status (/docs/api-reference/domains/get-domain-dmarc)

The domain's published DMARC record, where it is on the path from `p=none` to `p=reject`, the record to publish next and whether the last 14 days of aggregate reports say that is safe (`ready`, with the `checks` behind it), and a summary of those reports. Mailbox providers send DMARC aggregate reports to the domain's `report_address` once its `_dmarc` record names it (`rua=mailto:…`), usually once a day each.

`GET https://api.coss.com/v1/domains/{id}/dmarc`

Authenticate with your API key as a bearer token (`Authorization: Bearer coss_test_…`). Responses are JSON with snake_case fields; errors are `{ error: { type, code, message, param?, issues?, request_id } }` (https://coss.com/docs/api-reference/errors.md).

## Path parameters

- `id` (string, required): The domain's id.

## Example request

TypeScript (the `coss` package):

```ts
import { Coss } from "coss";

const coss = new Coss({
  apiKey: process.env.COSS_API_KEY,
  baseUrl: "https://api.coss.com",
});

const { data, error } = await coss.domains.dmarc.get("dom_01k7c8m4q2f3e9v6t5r1n0p8yz");
```

HTTP:

```sh
curl -X GET "https://api.coss.com/v1/domains/dom_01k7c8m4q2f3e9v6t5r1n0p8yz/dmarc" \
  -H "Authorization: Bearer $COSS_API_KEY"
```

Python:

```python
from coss import Coss

client = Coss()  # api_key= or COSS_API_KEY

client.domains.dmarc.get(
    id="dom_01k7c8m4q2f3e9v6t5r1n0p8yz",
)
```

Go:

```go
import (
	"context"

	cossclient "github.com/cosscom/coss-go/client"
	domains "github.com/cosscom/coss-go/domains"
)

client := cossclient.NewClient() // option.WithAPIKey(…) or COSS_API_KEY

request := &domains.GetDmarcRequest{
    ID: "dom_01k7c8m4q2f3e9v6t5r1n0p8yz",
}
client.Domains.Dmarc.Get(
    context.TODO(),
    request,
)
```

Ruby:

```ruby
require "coss"

client = Coss::Client.new # api_key: or COSS_API_KEY

client.domains.dmarc.get(id: "dom_01k7c8m4q2f3e9v6t5r1n0p8yz")
```

PHP:

```php
<?php

use Coss\Coss;

$client = new Coss(); // apiKey: or COSS_API_KEY

$client->domains->dmarc->get(
    'dom_01k7c8m4q2f3e9v6t5r1n0p8yz',
);
```

Java:

```java
import com.coss.Coss;
import com.coss.resources.domains.dmarc.requests.GetDmarcRequest;

Coss client = Coss.builder().build(); // .apiKey(…) or COSS_API_KEY

client.domains().dmarc().get(
    "dom_01k7c8m4q2f3e9v6t5r1n0p8yz",
    GetDmarcRequest
        .builder()
        .build()
);
```

.NET:

```csharp
using Coss;
using Coss.Domains;

var client = new CossClient(); // apiKey: or COSS_API_KEY

await client.Domains.Dmarc.GetAsync(new GetDmarcRequest { Id = "dom_01k7c8m4q2f3e9v6t5r1n0p8yz" });
```

## Response 200

The domain's DMARC status.

- `object` ("domain_dmarc", required)
- `domain_id` (string, required): The domain's id.
- `report_address` (string | null, required): Where the domain's DMARC aggregate reports go (`rua=mailto:…`). `null` when this deployment doesn't receive email.
- `record` (object | null, required): The DMARC record found at `_dmarc.<domain>` by the latest DNS check.
  - `value` (string, required): The `v=DMARC1` TXT record as published.
  - `p` ("none" | "quarantine" | "reject" | null, required): The domain's policy tag.
  - `sp` ("none" | "quarantine" | "reject" | null, required): The subdomain policy tag. `null`: not published.
  - `np` ("none" | "quarantine" | "reject" | null, required): The policy tag for non-existent subdomains. `null`: not published.
  - `adkim` ("r" | "s" | null, required): The DKIM alignment tag. `null`: not published.
  - `aspf` ("r" | "s" | null, required): The SPF alignment tag. `null`: not published.
  - `pct` (integer | null, required): Removed by RFC 9989 but still honored by many receivers.
  - `t` ("y" | "n" | null, required): The testing tag. `null`: not published.
  - `rua` (string[], required): Aggregate report addresses.
- `policy` ("none" | "quarantine" | "reject" | null, required): The policy receivers apply: the record's `p` (`none` when it has none), or for a subdomain without a record of its own, its organizational domain's `sp` (else `p`).
- `inherited_from` (string | null, required): The organizational domain whose DMARC record applies, when this domain publishes none of its own.
- `policy_since` (string | null, required, date-time): When a DNS check first saw the current policy.
- `stage` ("not_checked" | "no_record" | "monitoring" | "quarantine" | "reject", required): Where the domain is on the path to enforcement: `not_checked` (DNS not checked yet), `no_record`, `monitoring` (`p=none`), `quarantine` or `reject`.
- `partial` (boolean, required): The policy applies only partly (`pct` below 100, or `t=y`).
- `reporting` (boolean, required): The published record sends aggregate reports to `report_address`.
- `ready` (boolean, required): Whether `next` is safe to publish now.
- `next` (object | null, required): The next step: `publish` a first record, `add_reporting` (send reports to coss.com), `complete_rollout` (drop `pct`/`t=y`) or `tighten` to the next policy. `null` at `p=reject`.
  - `kind` ("publish" | "add_reporting" | "complete_rollout" | "tighten", required): The kind of step this is.
  - `policy` ("none" | "quarantine" | "reject", required): The policy that step gets to.
  - `record` (string, required): The TXT record to publish at `_dmarc.<domain>`.
- `checks` (object[], required): The readiness checks gating `next`, from the last 14 days of reports.
  - `id` ("coverage" | "recent" | "complete" | "time_at_policy" | "coss_pass_rate" | "pass_rate" | "sources", required): Which check this is.
  - `ok` (boolean, required): Whether it passes.
  - `message` (string, required): What it found.
- `warnings` (string[], required): Things to look at before tightening the policy.
- `report_summary` (object, required): What the aggregate reports of this period say.
  - `period_start` (string, required, date-time): When the period starts.
  - `period_end` (string, required, date-time): When the period ends.
  - `reports` (integer, required): Reports received.
  - `messages` (integer, required): Messages they cover.
  - `passing` (integer, required): Of those, how many passed DMARC.
  - `coss_messages` (integer, required): Of those, how many were sent through coss.com.
  - `coss_passing` (integer, required): Of those, how many passed DMARC.
  - `first_report_at` (string | null, required, date-time): When the first report arrived. `null`: none yet.
  - `last_report_at` (string | null, required, date-time): When the latest report arrived. `null`: none yet.
  - `sources` (object[], required): The 50 sources with the most messages in the period.
    - `source_ip` (string, required)
    - `header_from` (string, required): The domain in the messages' From header.
    - `messages` (integer, required)
    - `passing` (integer, required): Messages that passed DMARC.
    - `via_coss` (boolean, required): Signed with the domain's coss.com DKIM keys or sent from its coss.com MAIL FROM domain.

Example:

```json
{
  "object": "domain_dmarc",
  "domain_id": "dom_01k7c8m4q2f3e9v6t5r1n0p8yz",
  "report_address": "dmarc-k3x9m2pq7rtw4nbc@inbound.coss.com",
  "record": {
    "value": "v=DMARC1; p=none; rua=mailto:dmarc-k3x9m2pq7rtw4nbc@inbound.coss.com;",
    "p": "none",
    "sp": null,
    "np": null,
    "adkim": null,
    "aspf": null,
    "pct": null,
    "t": null,
    "rua": [
      "mailto:dmarc-k3x9m2pq7rtw4nbc@inbound.coss.com"
    ]
  },
  "policy": "none",
  "inherited_from": null,
  "policy_since": "2026-09-20T08:00:00.000Z",
  "stage": "monitoring",
  "partial": false,
  "reporting": true,
  "ready": true,
  "next": {
    "kind": "tighten",
    "policy": "quarantine",
    "record": "v=DMARC1; p=quarantine; rua=mailto:dmarc-k3x9m2pq7rtw4nbc@inbound.coss.com;"
  },
  "checks": [
    {
      "id": "coss_pass_rate",
      "ok": true,
      "message": "100% of mail sent through coss.com passes DMARC (99% needed)."
    }
  ],
  "warnings": [],
  "report_summary": {
    "period_start": "2026-09-26T00:00:00.000Z",
    "period_end": "2026-10-10T00:00:00.000Z",
    "reports": 28,
    "messages": 1846,
    "passing": 1840,
    "coss_messages": 1840,
    "coss_passing": 1840,
    "first_report_at": "2026-09-21T00:00:00.000Z",
    "last_report_at": "2026-10-09T23:59:59.000Z",
    "sources": [
      {
        "source_ip": "54.240.8.12",
        "header_from": "acme.com",
        "messages": 1840,
        "passing": 1840,
        "via_coss": true
      }
    ]
  }
}
```

## Errors

- `400`: The `Coss-Version` header names an unknown API version (`invalid_api_version`).
- `401`: The API key is missing, invalid, revoked or expired (`authentication_error`).
- `403`: The API key lacks the permission this endpoint needs (`permission_error`), or its organization is suspended (`organization_suspended`).
- `404`: No domain with this id exists in this organization (`not_found`).
- `429`: Too many requests with this API key (`rate_limited`), or too many requests with invalid keys from this address (`too_many_failed_authentications`). Retry after `Retry-After` seconds. Successful responses carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds until the limit is fully restored).
- `500`: Unexpected server error (`api_error` / `internal_error`).
- `503`: The API key could not be verified right now; retry (`service_unavailable`).