Skip to content
gist.link ↗

setCatchAll

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

Route mail for unknown addresses on a verified domain to a mailbox. ROLE_ADMIN.

mail:mutation:setCatchAll

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

type Mutation {
setCatchAll(domain: String!, mailbox_uuid: String!): CatchAll!
}
Argument Type Required Description
domain String! Yes —
mailbox_uuid String! Yes —

CatchAll! — 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": "mutation SetCatchAll($domain: String!, $mailbox_uuid: String!) { setCatchAll(domain: $domain, mailbox_uuid: $mailbox_uuid) { uuid domain mailbox_uuid created_at } }",
"variables": {
"domain": "example",
"mailbox_uuid": "example"
}
}
JSON