# API Explainer Plugin

Welcome to the official documentation for the **YayMail Integration Demo** mini-plugin. It explains the purpose of the API and how this demo plugin illustrates the API's capabilities.

You can download it here:

{% file src="<https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2Fsaea22VaL7ZlTnTOOB0Q%2Fyaymail-integration-demo.zip?alt=media&token=80ff450d-ca15-45ae-b6cd-3104452cdb83>" %}

\
This mini-plugin demonstrates that developers can extend **YayMail** using the newly introduced **YayMail API** to:

* Add **custom email templates**.
* Register **custom elements** inside YayMail builder.
* Register **custom shortcodes** for use inside email designs.

Once installed, you will see a new email template, a new element and a new shortcode.

<figure><img src="https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FckeKXzoLjDgjjSujiqZT%2Fimage.png?alt=media&#x26;token=36780371-901c-47ec-94f1-ca11c507f485" alt=""><figcaption><p>New custom email template</p></figcaption></figure>

<figure><img src="https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FT9ySEKTG7rYlpZTCuLS3%2Fimage.png?alt=media&#x26;token=c35f5c6f-d8b3-4358-a715-0d6cb3eb083a" alt=""><figcaption><p>New element within a Demo group</p></figcaption></figure>

<figure><img src="https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FUZorlrTVWdCL2uEiW23O%2Fimage.png?alt=media&#x26;token=04276860-4bdc-4414-b0f6-80589984e199" alt=""><figcaption><p>New custom shortcode used inside YayMail's element</p></figcaption></figure>

To dive into the setup, structure, and how you can modify or build upon this API for your own projects, please see the next pages.
