Skip to content

Get subscriber's data

Returns a subscriber profile with the specified email address or subscriber ID

HTTP method: GET

https://api.sender.net/v2/subscribers/{email}or{phone}or{ID}


ParameterTypeDescription
Email, phone number, or IDstring requiredSubscriber’s email address, phone number, or ID

const url = new URL("https://api.sender.net/v2/subscribers/{email}or{phone}or{ID}");
let headers = {
"Authorization": "Bearer [your-token]",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Example Response
{
"data": {
"id": "o2lk68Y",
"email": "[email protected]",
"firstname": "Sender",
"lastname": "Support",
"phone": "+370XXXXXXXX",
"phone_country": {
"phone_code": 370,
"country_code": "LT"
},
"created": "2021-04-08 11:06:34",
"location": null,
"status": {
"email": "unsubscribed",
"temail": "active"
},
"ip_address": null,
"subscriber_tags": [
{
"id": "eZVD4w",
"title": "Test group"
},
{
"id": "b2vAR1",
"title": "My Renamed Group"
}
],
"columns": [
{
"id": "bDqoKd",
"title": "test num",
"type": "number",
"default": true,
"value": 1
},
{
"id": "avAlVe",
"title": "First name",
"type": "text",
"default": true,
"value": "Support"
},
{
"id": "dwBVJb",
"title": "Last name",
"type": "text",
"default": true,
"value": "Sender"
}
]
}
}