Skip to content
gist.link ↗

createAlias

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

Create a send-as alias on one of the caller’s mailboxes. The alias’s domain must be verified in settings; mail to the alias delivers to the mailbox and messages can be sent as it (SendEmailInput.alias_uuid).

mail:mutation:createAlias

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 {
createAlias(input: CreateAliasInput!): MailboxAlias!
}
Argument Type Required Description
input CreateAliasInput! Yes —

MailboxAlias! — 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 CreateAlias($input: CreateAliasInput!) { createAlias(input: $input) { uuid mailbox_uuid address display_name created_at } }",
"variables": {
"input": {
"mailbox_uuid": "example",
"address": "example"
}
}
}
JSON