> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yaymail/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yaymail/developer-zone/api/api-explainer-plugin.md).

# API Explainer Plugin

Explore how YayMail API works through our explainer mini-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="/files/sUMNeW3wfj9TAhnsnrnc" %}

\
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&amp;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&amp;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&amp;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.
