Set up the email API
Create an M2M token with Communication permissions, then use it to get the sender list, the published lists and the personalized tokens that the email endpoints use.
ArticleView as Markdown
Create an M2M token with Communication permissions, then use it to get the sender list, the published lists and the personalized tokens that the email endpoints use.
Create an M2M token granting Communication permissions. You will receive the token once you click save.

Use the get senders API call to get the sender list.
GET{baseUrl}/api/v1/communications/email/sendersemailIn the response you will find the sender list:
[
{
...
"senderName": "Subrite",
"id": 1,
},
{
...
"senderName": "Subrite two",
"id": 2,
}
]Use the segments/published API call to get the lists.
GET{baseUrl}/api/v1/segments/publishedIn the response you will find the lists:
[
{
"id": 1,
"name": "List 1",
...
},
{
"id": 2,
"name": "List 2",
...
}
]Use the api/v1/communications/email/tokens API call to get personalized tokens.
GET{baseUrl}/api/v1/communications/email/tokensIn the response you will find the tokens:
{
"memberInfo": [
"fullName",
"nickName",
"email",
"dateOfBirth",
"phoneNumber",
"address",
"zipCode",
"city",
"country",
"unsubscribeUrl",
"mufcNumber",
"muscNumber"
],
"myPageLink": [
"consentLink",
"invoiceLink",
"subscriptionLink",
"podcastLink"
]
}