Skip to content
gist.link ↗

createAppPassword

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

Create an app password for a local IMAP/SMTP client. The plaintext secret is returned exactly once and stored only as a hash.

mail:mutation:createAppPassword

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 {
createAppPassword(name: String!): AppPasswordCreated!
}
Argument Type Required Description
name String! Yes —

AppPasswordCreated! — 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 CreateAppPassword($name: String!) { createAppPassword(name: $name) { secret } }",
"variables": {
"name": "Example"
}
}
JSON