curl --request POST \
--url https://platform.trylath.com/email/sender/set \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"local": "<string>",
"label": "<string>",
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({local: '<string>', label: '<string>', name: '<string>'})
};
fetch('https://platform.trylath.com/email/sender/set', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.trylath.com/email/sender/set"
payload = {
"local": "<string>",
"label": "<string>",
"name": "<string>"
}
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/sender/set"
payload := strings.NewReader("{\n \"local\": \"<string>\",\n \"label\": \"<string>\",\n \"name\": \"<string>\"\n}")
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": {
"address": "<string>",
"local": "<string>",
"domain": "<string>",
"label": "<string>",
"parent": "<string>",
"name": "<string>",
"nameIsDefault": true
}
}email.sender.set
Changes the project’s sending identity on the shared parent: the local part before the @, the subdomain label, and the display name. Every field is optional; omitted fields are left alone. Changing the label changes the address every future message comes from, and frees the old one for reuse by another project, so it is a live change rather than an alias.
curl --request POST \
--url https://platform.trylath.com/email/sender/set \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"local": "<string>",
"label": "<string>",
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({local: '<string>', label: '<string>', name: '<string>'})
};
fetch('https://platform.trylath.com/email/sender/set', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.trylath.com/email/sender/set"
payload = {
"local": "<string>",
"label": "<string>",
"name": "<string>"
}
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/sender/set"
payload := strings.NewReader("{\n \"local\": \"<string>\",\n \"label\": \"<string>\",\n \"name\": \"<string>\"\n}")
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": {
"address": "<string>",
"local": "<string>",
"domain": "<string>",
"label": "<string>",
"parent": "<string>",
"name": "<string>",
"nameIsDefault": true
}
}Authorizations
A Lath API key: lath_live_sk… or lath_test_sk… on a server, lath_live_pk… or lath_test_pk… in a browser.
Headers
Replays the stored response for the same key and input; refuses different input.
Body
The part before the @, like "hello" or "team". Letters, digits, dot, hyphen and underscore.
1 - 64The subdomain label under the sending parent. Must be unused by any other project.
1 - 63The display name beside the address. Pass null to follow the project name.
1 - 100Was this page helpful?

