Skip to content
gist.link ↗

saveDraft

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

Create or update a draft (pass draft_uuid to update).

mail:mutation:saveDraft

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 {
saveDraft(input: SaveDraftInput!): Email!
}
Argument Type Required Description
input SaveDraftInput! 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 SaveDraft($input: SaveDraftInput!) { saveDraft(input: $input) { uuid status subject created_at } }",
"variables": {
"input": {
"mailbox_uuid": "example"
}
}
}
JSON