audience.preferences.get
curl --request POST \
--url https://platform.trylath.com/audience/preferences/get \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://platform.trylath.com/audience/preferences/get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.trylath.com/audience/preferences/get"
payload = { "token": "<string>" }
headers = {"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/audience/preferences/get"
payload := strings.NewReader("{\n \"token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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": {
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectName": "<string>",
"email": "<string>",
"phone": "<string>",
"channels": {
"email": {
"topics": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"subscribed": true
}
],
"unsubscribedAll": true,
"suppressionReason": "<string>"
},
"sms": {
"topics": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"subscribed": true
}
],
"unsubscribedAll": true,
"suppressionReason": "<string>"
}
}
}
}audience.preferences.get
Public, for the hosted preferences page: given the token from a message’s unsubscribe link, returns the project name, the contact’s masked email and phone, and per channel — email and sms — every topic and whether the contact is subscribed to it. A channel the contact has no address for is still described, so a page can say so rather than imply the channel does not exist.
POST
/
audience
/
preferences
/
get
audience.preferences.get
curl --request POST \
--url https://platform.trylath.com/audience/preferences/get \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://platform.trylath.com/audience/preferences/get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.trylath.com/audience/preferences/get"
payload = { "token": "<string>" }
headers = {"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/audience/preferences/get"
payload := strings.NewReader("{\n \"token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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": {
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectName": "<string>",
"email": "<string>",
"phone": "<string>",
"channels": {
"email": {
"topics": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"subscribed": true
}
],
"unsubscribedAll": true,
"suppressionReason": "<string>"
},
"sms": {
"topics": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"subscribed": true
}
],
"unsubscribedAll": true,
"suppressionReason": "<string>"
}
}
}
}Headers
Replays the stored response for the same key and input; refuses different input.
Body
application/json
The token from an unsubscribe or preferences link
Pattern:
^lath_pt_[0-9A-Za-z]{43}$Last modified on September 13, 2026
Was this page helpful?

