GET
/
mailing-lists
/
{mailing_list_id}
/
recipients
Recipients
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.thanks.io/api/v2/mailing-lists/{mailing_list_id}/recipients', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
{
  "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,
      "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://develop.dashboard.thanks.io/api/v2/mailing-lists/514/recipients?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "http://develop.dashboard.thanks.io/api/v2/mailing-lists/514/recipients?page=1",
  "next_page_url": null,
  "path": "http://develop.dashboard.thanks.io/api/v2/mailing-lists/514/recipients",
  "per_page": "1000",
  "prev_page_url": null,
  "to": 1,
  "total": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

mailing_list_id
string
required

Query Parameters

limit
integer
updated_since
string

Response

200 - application/json

OK

The response is of type object.