curl --request POST \
--url https://platform.trylath.com/email/template/starter/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://platform.trylath.com/email/template/starter/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.trylath.com/email/template/starter/list"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.trylath.com/email/template/starter/list"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"activityId": "<string>",
"result": {
"starters": [
{
"id": "<string>",
"title": "<string>",
"of": "<string>",
"suggestedName": "<string>",
"subject": "<string>",
"html": "<string>",
"variables": [
"<string>"
],
"blocks": "<unknown>"
}
]
}
}email.template.starter.list
Lists the emails a project can start from — a welcome, an announcement, a receipt and a plain notice — each with a subject, the blocks it is built from, and the exact html to pass to email.template.set. The HTML is rendered with this project’s own theme, so what is saved is byte for byte what the dashboard’s editor would have saved, and the template opens there in Blocks mode and can be edited by hand afterwards. These are starting points with placeholder wording, not Lath’s own messages: every {{variable}} they name has to be given at send, and an unfilled one is refused rather than mailed. The reserved sign-in messages are separate and listed by email.template.list.
curl --request POST \
--url https://platform.trylath.com/email/template/starter/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://platform.trylath.com/email/template/starter/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.trylath.com/email/template/starter/list"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.trylath.com/email/template/starter/list"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"activityId": "<string>",
"result": {
"starters": [
{
"id": "<string>",
"title": "<string>",
"of": "<string>",
"suggestedName": "<string>",
"subject": "<string>",
"html": "<string>",
"variables": [
"<string>"
],
"blocks": "<unknown>"
}
]
}
}Authorizations
A Lath API key: lath_live_… or lath_test_… on a server, lath_live_pk… or lath_test_pk… in a browser.
Body
The body is of type object.
Was this page helpful?

