Skip to content
gist.link ↗

orgMailPolicy

Query Mail API — POST https://mail.api.gist.link/graphql

Organization-wide mail policy (spam level, DMARC action, retention…). ROLE_ADMIN.

mail:query:orgMailPolicy

The calling IAM key must hold this permission (or a wildcard that covers it: mail:query:* or mail:*) and the access token must have been minted with audience=mail. See Permissions.

type Query {
orgMailPolicy: OrgMailPolicy!
}

This query takes no arguments.

OrgMailPolicy! — see the Mail types reference.

Terminal window
curl https://mail.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query OrgMailPolicy { orgMailPolicy { external_forwarding_enabled spam_level dmarc_fail_action spam_purge_days trash_purge_days retention_days updated_at } }",
"variables": {}
}
JSON