Skip to content
gist.link ↗

createForwarder

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

Create an auto-forwarder. Destinations on the org’s own domains activate immediately; external destinations receive a confirmation email and only start forwarding once confirmed (and only while org policy allows external forwarding).

mail:mutation:createForwarder

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 {
createForwarder(input: CreateForwarderInput!): Forwarder!
}
Argument Type Required Description
input CreateForwarderInput! Yes —

Forwarder! — 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 CreateForwarder($input: CreateForwarderInput!) { createForwarder(input: $input) { uuid mailbox_uuid destination keep_mode active verified automation_workflow_uuid created_at } }",
"variables": {
"input": {
"mailbox_uuid": "example",
"destination": "example"
}
}
}
JSON