Templates

Create a template

A new draft template; publish it before sending with it.

POST
/templates

A new draft template; publish it before sending with it.

Authorization

bearer
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
alias?|

Another name for the template in the API (unique in the project).

from?|

The default sender (a send can override it).

html*string

The HTML body, with {{{VARIABLE}}} tags.

name*string
reply_to?array<string>|

The default reply-to address or addresses.

subject?|

The default subject (a send can override it).

text?|

The plain-text body; absent: generated from the HTML at send, "": none.

variables?array<>|null

Response Body

Success

application/json
  1. response
id*string
Formatuuid
object*string
Example Request
curl -X POST 'https://api.exx.sh/templates' \  -H 'Content-Type: application/json' \  -d '{  "html": "string",  "name": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "string"}