const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thanks.io/api/v2/mailing-lists-utils/recipients/{mailingListId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.thanks.io/api/v2/mailing-lists-utils/recipients/{mailingListId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.thanks.io/api/v2/mailing-lists-utils/recipients/{mailingListId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"current_page": 1,
"data": [
{
"id": 293345,
"mailing_list_id": 514,
"session_id": null,
"name": "John Doe",
"address": "123 Main Street",
"address2": null,
"city": "Austin",
"province": "TX",
"postal_code": "78703",
"country": "US",
"dob": null,
"anniversary": null,
"custom1": null,
"custom2": null,
"deliverability": null,
"can_deliver": true,
"created_at": "2020-03-10 13:33:04",
"updated_at": "2020-04-06 01:57:50"
}
],
"first_page_url": "http://api.thanks.io/api/v2/mailing-lists/514/recipients?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://api.thanks.io/api/v2/mailing-lists/514/recipients?page=1",
"next_page_url": null,
"path": "http://api.thanks.io/api/v2/mailing-lists/514/recipients",
"per_page": "1000",
"prev_page_url": null,
"to": 1,
"total": 1
}{
"message": "Unauthorized"
}{
"message": "Not Found"
}List Recipients
Retrieve recipients for a specific mailing list.
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thanks.io/api/v2/mailing-lists-utils/recipients/{mailingListId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.thanks.io/api/v2/mailing-lists-utils/recipients/{mailingListId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.thanks.io/api/v2/mailing-lists-utils/recipients/{mailingListId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"current_page": 1,
"data": [
{
"id": 293345,
"mailing_list_id": 514,
"session_id": null,
"name": "John Doe",
"address": "123 Main Street",
"address2": null,
"city": "Austin",
"province": "TX",
"postal_code": "78703",
"country": "US",
"dob": null,
"anniversary": null,
"custom1": null,
"custom2": null,
"deliverability": null,
"can_deliver": true,
"created_at": "2020-03-10 13:33:04",
"updated_at": "2020-04-06 01:57:50"
}
],
"first_page_url": "http://api.thanks.io/api/v2/mailing-lists/514/recipients?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://api.thanks.io/api/v2/mailing-lists/514/recipients?page=1",
"next_page_url": null,
"path": "http://api.thanks.io/api/v2/mailing-lists/514/recipients",
"per_page": "1000",
"prev_page_url": null,
"to": 1,
"total": 1
}{
"message": "Unauthorized"
}{
"message": "Not Found"
}Authorizations
Bearer token authentication using your thanks.io API key
Path Parameters
ID of mailing list
56
Query Parameters
Number of results to return per page.
1 <= x <= 100001000
Return only recipients updated since this date/time. Format: YYYY-MM-DD HH:MM:SS
"2020-04-06 01:55:50"
Response
Successful Response
Array of recipient objects
Show child attributes
Show child attributes
Current page number
1
URL of the first page of results
"https://api.thanks.io/api/v2/mailing-lists-utils/recipients/3014?page=1"
Index of the first item on the current page
1
Total number of pages
1
URL of the last page of results
"https://api.thanks.io/api/v2/mailing-lists-utils/recipients/3014?page=1"
URL of the next page of results
Base URL for the resource
"https://api.thanks.io/api/v2/mailing-lists-utils/recipients/3014"
Number of items per page
50
URL of the previous page of results
Index of the last item on the current page
12
Total number of items
12
Was this page helpful?