Listing email templates

To list the email templates in your account

If you need the ID or any other information about your email templates, use the following query:

query {
  emailTemplates(limit: 60, page: 1) {
    has_more_pages
    data {
      id
      name
      type
      email {
        text
        sender
        colors
        template
      }
    }
  }
}

You can check what each of these parameters means directly in the full GraphQL API documentation, in the Docs menu of Altair. If you're not sure how to do that, check out our tutorial on Using Altair.

If Altair doesn't help you integrate with the API, check out some examples of how to make these requests in other ways: https://graphql.org/graphql-js/graphql-clients/

Last updated

Was this helpful?