Skip to content
gist.link ↗

cancelSend

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

Undo send / cancel a scheduled send: turns a still-QUEUED message back into a draft. Works during the mailbox’s undo window and any time before a scheduled message is released.

mail:mutation:cancelSend

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 {
cancelSend(uuid: String!): Email!
}
Argument Type Required Description
uuid String! Yes —

Email! — 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 CancelSend($uuid: String!) { cancelSend(uuid: $uuid) { uuid status subject created_at } }",
"variables": {
"uuid": "example"
}
}
JSON