# List a domain's DMARC reports (/docs/api-reference/domains/list-domain-dmarc-reports)

The aggregate reports received about the domain, newest first, without their rows (retrieve one for those). Pass the last `id` as `after` to get the next page while `has_more` is true. 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/reports`

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.

## Query parameters

- `limit` (integer, 1-100): 1-100, default 20.
- `after` (string, at most 64 characters): Cursor: the `id` of the last report of the previous page.

## 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.reports.list("dom_01k7c8m4q2f3e9v6t5r1n0p8yz");
```

HTTP:

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

Python:

```python
from coss import Coss

client = Coss()  # api_key= or COSS_API_KEY

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

Go:

```go
import (
	"context"

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

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

request := &dmarc.ListReportsRequest{
    ID: "dom_01k7c8m4q2f3e9v6t5r1n0p8yz",
}
client.Domains.Dmarc.Reports.List(
    context.TODO(),
    request,
)
```

Ruby:

```ruby
require "coss"

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

client.domains.dmarc.reports.list(id: "dom_01k7c8m4q2f3e9v6t5r1n0p8yz")
```

PHP:

```php
<?php

use Coss\Coss;
use Coss\Domains\Dmarc\Reports\Requests\ListReportsRequest;

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

$client->domains->dmarc->reports->list(
    'dom_01k7c8m4q2f3e9v6t5r1n0p8yz',
    new ListReportsRequest([]),
);
```

Java:

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

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

client.domains().dmarc().reports().list(
    "dom_01k7c8m4q2f3e9v6t5r1n0p8yz",
    ListReportsRequest
        .builder()
        .build()
);
```

.NET:

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

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

await client.Domains.Dmarc.Reports.ListAsync(
    new ListReportsRequest { Id = "dom_01k7c8m4q2f3e9v6t5r1n0p8yz" }
);
```

## Response 200

A page of DMARC reports.

- `object` ("list", required)
- `data` (object[], required)
  - `object` ("dmarc_report", required)
  - `id` (string, required)
  - `domain_id` (string, required): The domain's id.
  - `reporter` (object, required): Who sent the report.
    - `org_name` (string, required): The reporting organization.
    - `email` (string | null, required): Its contact address.
  - `report_id` (string, required): The reporter's own id of the report.
  - `period_start` (string, required, date-time): When the period it covers starts.
  - `period_end` (string, required, date-time): When the period it covers ends.
  - `policy_published` (object, required): The policy the reporter found when it evaluated the mail.
    - `domain` (string, required): The domain the policy was published for.
    - `p` (string | null, required): The domain's policy tag.
    - `sp` (string | null, required): The subdomain policy tag.
    - `np` (string | null, required): The policy tag for non-existent subdomains.
    - `adkim` (string | null, required): The DKIM alignment tag.
    - `aspf` (string | null, required): The SPF alignment tag.
    - `pct` (integer | null, required): The percentage tag.
    - `testing` (string | null, required): The testing tag.
  - `messages` (integer, required): Messages the report covers.
  - `passing` (integer, required): Of those, how many passed DMARC.
  - `truncated` (boolean, required): The report listed more rows than are kept (10,000); totals cover the kept rows.
  - `received_at` (string, required, date-time): When coss.com received it.
- `has_more` (boolean, required)

Example:

```json
{
  "object": "list",
  "data": [
    {
      "object": "dmarc_report",
      "id": "dmarcrep_01k7c8m4q2f3e9v6t5r1n0p8yz",
      "domain_id": "dom_01k7c8m4q2f3e9v6t5r1n0p8yz",
      "reporter": {
        "org_name": "google.com",
        "email": "noreply-dmarc-support@google.com"
      },
      "report_id": "13845021974128475",
      "period_start": "2026-10-09T00:00:00.000Z",
      "period_end": "2026-10-09T23:59:59.000Z",
      "policy_published": {
        "domain": "acme.com",
        "p": "none",
        "sp": null,
        "np": null,
        "adkim": "r",
        "aspf": "r",
        "pct": 100,
        "testing": null
      },
      "messages": 1204,
      "passing": 1200,
      "truncated": false,
      "received_at": "2026-10-10T03:12:44.000Z"
    }
  ],
  "has_more": false
}
```

## 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`).
- `422`: A query parameter failed validation (`validation_error`).
- `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`).