Javascript
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"[email protected]"}' }; fetch('https://api.thanks.io/api/v2/recipients/lookup', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
{ "province": "NY", "city": "Warwick", "name": "Test Name", "company": "", "dob": "", "country": "US", "address": "123 Main Street", "address2": "", "email": "[email protected]", "phone": "1234567890", "custom1": null, "custom2": null, "custom3": null, "custom4": null, "postal_code": "10990-2623", "id": null, "mailing_list_id": null }
Look up a valid street address using the email address for a fee. This does not save the recipient to a mailing list.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK
The response is of type object.
object
Was this page helpful?