Skip to content
gist.link ↗

verifyAppPassword

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

Validates an address + app password pair. Restricted to service tokens (the IMAP/SMTP gateway); grant: mail:query:verifyAppPassword. Marks the credential as used when valid.

mail:query:verifyAppPassword

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

type Query {
verifyAppPassword(address: String!, secret: String!): Boolean!
}
Argument Type Required Description
address String! Yes —
secret String! Yes —

Boolean!.

Terminal window
curl https://mail.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query VerifyAppPassword($address: String!, $secret: String!) { verifyAppPassword(address: $address, secret: $secret) }",
"variables": {
"address": "example",
"secret": "example"
}
}
JSON