Skip to content
gist.link ↗

createMailbox

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

Create a mailbox for an organization member. ROLE_ADMIN. The address’s domain must be verified in the settings app first.

mail:mutation:createMailbox

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 {
createMailbox(input: CreateMailboxInput!): Mailbox!
}
Argument Type Required Description
input CreateMailboxInput! Yes —

Mailbox! — 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 CreateMailbox($input: CreateMailboxInput!) { createMailbox(input: $input) { uuid kind created_at updated_at } }",
"variables": {
"input": {
"address": "example",
"display_name": "Example"
}
}
}
JSON