Skip to content
gist.link ↗

createMailTemplate

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

Create a reusable message template in one of the caller’s mailboxes.

mail:mutation:createMailTemplate

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 {
createMailTemplate(input: MailTemplateInput!): MailTemplate!
}
Argument Type Required Description
input MailTemplateInput! Yes —

MailTemplate! — 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 CreateMailTemplate($input: MailTemplateInput!) { createMailTemplate(input: $input) { uuid name subject created_at updated_at } }",
"variables": {
"input": {
"mailbox_uuid": "example",
"name": "Example",
"subject": "example"
}
}
}
JSON