# Next-gen API v1.1

Introducing dynamic email templates and contact segmentation using Feed Item Query Language (FIQL) and JSON

## Dynamic email templates

You can now store and use your templates to send campaigns and transactional emails.

Transactional emails can be personalized and sent by providing your custom attributes in a JSON format.  
You can manage your template library, use a template in a campaign and use a template in a transactional email

- Access [Email Template documentation](https://cakemail.dev/reference#template)
- Read our guide on [sending transactional emails using templates](https://cakemail.dev/docs/using-templates#using-a-template-with-transactional-emails)

## Contact segmentation using Feed Item Query Language (FIQL) and JSON query language

The Feed Item Query Language (FIQL, pronounced “fickle”) is a simple but flexible, URI-friendly syntax for expressing filters across the entries in syndicated feed entries.

On top of that, we added support for JSON query language in a format similar to ElasticSearch queries.

- [Learn more about FIQL](https://fiql-parser.readthedocs.io/en/stable/index.html)
- [Learn more about JSON](https://www.json.org/json-en.html)
- View examples of contact segmentation in section [Working with segment queries](https://cakemail.dev/reference#working-with-segment-queries).
