POST
/
mailing-lists
/
buy-radius-search
Append Radius Search ($.05 per record) To Existing List
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': '*/*'},
  body: '"\"{\\n    \\\"address\\\": \\\"123 Main Street\\\",\\n    \\\"postal_code\\\": \\\"55555\\\",\\n    \\\"record_types\\\": \\\"all\\\",\\n    \\\"mailing_list_id\\\": \\\"1236\\\",\\n    \\\"record_count\\\": 1,\\n    \\\"include_condos\\\": false,\\n    \\\"append_data\\\": false,\\n    \\\"use_property_owner\\\": false\\n}\""'
};

fetch('https://api.thanks.io/api/v2/mailing-lists/buy-radius-search', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
{
  "status": "success",
  "mailing_list_id": 1236,
  "failure": false
}

Authorizations

Authorization
string
header
required

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

Headers

Content-Type
string

Body

*/* · string

The body is of type string.

Example:

"\"{\\n \\\"address\\\": \\\"123 Main Street\\\",\\n \\\"postal_code\\\": \\\"55555\\\",\\n \\\"record_types\\\": \\\"all\\\",\\n \\\"mailing_list_id\\\": \\\"1236\\\",\\n \\\"record_count\\\": 1,\\n \\\"include_condos\\\": false,\\n \\\"append_data\\\": false,\\n \\\"use_property_owner\\\": false\\n}\""

Response

200 - application/json

OK

The response is of type object.