Skip to content
gist.link ↗

createMailbox

Mutation Settings API — POST https://settings.api.gist.link/graphql

Provision a mailbox on a verified domain and assign it to one or more users (proxied to the mail service). ROLE_ADMIN.

settings:mutation:createMailbox

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

type Mutation {
createMailbox(input: CreateMailboxInput!): Mailbox!
}
Argument Type Required Description
input CreateMailboxInput! Yes —

Mailbox! — see the Settings types reference.

Terminal window
curl https://settings.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CreateMailbox($input: CreateMailboxInput!) { createMailbox(input: $input) { uuid kind created_at updated_at } }",
"variables": {
"input": {
"address": "example",
"display_name": "Example"
}
}
}
JSON