Get the Google-reported spam rate for a sending domain
Returns how often the domain's mail is reported as spam by Gmail recipients, as Google Postmaster measures it: the rate for the period and a time series for charting.
This is Google's number for Gmail-received mail only. The feedback-loop complaint rate across all providers is a Bird-measured figure served by the email statistics endpoints; the two count different mail and are rendered as separate lines, never combined. For a domain without a completed Google Postmaster connection, sections report not_configured with a setup path, not an error.
Request
- Base URL: https://us1.platform.bird.com
- URL: https://us1.platform.bird.com/v1/email/inbox-insights/complaints
- Auth: one of:
- HTTP bearer
- API key in cookie bird_session
Query parameters
The sending domain to report on: one of the workspace's verified sending domains, exactly as it appears there. A domain that is not verified in this workspace answers not-found.
First UTC day of the period, inclusive, in YYYY-MM-DD: the same window convention as the email statistics endpoints. Defaults to 30 days before to.
It may be at most 30 days before to, which is also the default, so a request naming neither date is already at the limit. Asking for more answers 422: the page pairs these figures with Bird's own per-provider sending statistics, and those are kept for 30 days, so a longer period could only describe two different spans side by side.
Last UTC day of the period, inclusive, in YYYY-MM-DD. Defaults to today.
The bucket size a series is grouped by. Day suits the product's charts; wider grains suit long ranges.
Bucket size for the series. Defaults to day.
Set to previous_period to include the immediately preceding window of equal length in the same response, so deltas need no second request.
Include the prior equal-length period, populating compared_to and the rate's delta.
Headers
Workspace context for the request. Required for dashboard authentication and master keys. Workspace keys and access tokens already identify their workspace; send that workspace or omit the header. A different one is rejected.
Organization context for the request. Required for dashboard authentication. An API key or access token carries its own organization, so send either that organization or no header at all; a different one is rejected.
Response
The Google-reported spam rate for the requested domain and period.
Example response
{
"resource": "placement",
"domain": "mail.acme.com",
"measurement": {
"sources": [
"panel",
"intelliseed_public"
],
"weighting": {
"weight_set_id": "12",
"source": "account",
"basis": "weighted-mean-of-per-isp-rates"
}
},
"generated_at": "2026-08-18T09:34:00Z",
"freshness": {
"as_of": "2026-08-17",
"lag_hint": "daily"
},
"cached_at": "2026-08-18T09:40:02Z",
"window": {
"start": "2026-08-12",
"end": "2026-08-18",
"group_by": "day"
},
"compared_to": {
"start": "2026-06-19",
"end": "2026-07-18"
},
"rate": {
"gmail_postmaster_spam_rate_percent": 0.11,
"delta_pts": 0.03,
"peak": {
"date": "2026-08-02",
"value_percent": 0.34
},
"status": "ok"
},
"series": {
"items": [
{
"date": "2026-07-19",
"gmail_postmaster_spam_rate_percent": 0.08
}
],
"status": "ok"
}
}Changes
No recorded changes to this operation across all 3 revisions of this API.