API parameters

Mailwind is simply an interface between your API and Sendgrid. Make an HTTP call as you would your provider except you can add Mailwind settings

Here are the additional parameters for the Mailwind API:

LayoutIdentifier : string (optional)

Identifier of the layout that you have previously created

Example:

{
    layoutIdentifier: "tp-xxxxx"
}

Variables : object (optional)

List of expected variables. This is represented by an object

Example:

{
    variables: {
        user: {
            name: "John Doe",
            email: "john.doe@gmail.com"
            ...
        }
    }
}

Code (optional)

The tailwind HTML code. It will be directly converted and sent

Example:

<div class="bg-red-400">Hello world</div>

Last updated