emailTemplates query
emailTemplates is a GraphQL query of the Chameleoon MAX API. Send it as POST https://max-api.chameleoon.sk/api/v1/graphql with your API key, see Chameleoon MAX.
Returns the e-mail templates: the MAX built-in templates first, then the organisation's own by
name. Use it to pick a template for sendEmail or to find one to edit.
Permissions
Requires the email.send or emailTemplate.manage permission.
Cost
- A page costs 2 + first (or last) × the cost of one node.
- A variant's
htmlBody,textBodyanddesigncost 50 points each. variantscosts 26 points plus 26 × one variant's selection.textsis a connection priced by the page you ask for, each key as 25 translations.languagesandallLanguagesread no body.
Paging
A connection, paged with first/after or last/before, at most 250 a page.
Pass exactly one of first or last, from 1 to 250. first (with after) pages
forward; last (with before) pages backward. last alone returns the last page.
Arguments
first:Intafter:Stringlast:Intbefore:String
Returns
EmailTemplateConnection!: a page of EmailTemplate.
Example
Query
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.