Skip to content
gist.link ↗

orgSenderRules

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

Organization-level allow/block sender rules. ROLE_ADMIN.

mail:query:orgSenderRules

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 {
orgSenderRules: [SenderRule!]!
}

This query takes no arguments.

[SenderRule!]! — 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 OrgSenderRules { orgSenderRules { uuid type created_at } }",
"variables": {}
}
JSON