# 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="/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="/files/Z0mBgIS9AaI3vn2G5ZcP" alt=""><figcaption><p>New custom email template</p></figcaption></figure>

<figure><img src="/files/2n5efDyBg0ho02Wm0zIn" alt=""><figcaption><p>New element within a Demo group</p></figcaption></figure>

<figure><img src="/files/0rrP3hJsPFrmysv3W5lA" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yaycommerce.com/yaymail/developer-zone/api/api-explainer-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
