import axios from 'axios';
const API_TOKEN = 'REPLACE_WITH_YOUR_API_TOKEN' // ask ZooTools team for a key
const ZOOTOOLS_API_V1_ENDPOINT = 'https://audience-consumer-api.zootools.co/v1'
const listId = '12345' // get it from your dashboard
const memberId = '23423423' // you will obtain this after creating a member.
// Example: Search if a user exists in my list.
axios
.post(`${ZOOTOOLS_API_V1_ENDPOINT}/lists/${listId}/members/search`, {
email: "[email protected]"
}), {
headers: {
Authorization: `Bearer ${API_TOKEN}`,
},
})