To retrieve data, you’ll need to use the /data/retrieve
endpoint along with a data token.
javascriptCopy codeconst formData = new FormData();
formData.append('token', dataToken);
const response = await axios.post(`${process.env.BASE_URL}/data/retrieve`, formData, {
headers: {
'X-DPT-AUTHORIZATION': fullAuthToken
}
});
console.log(response.data); // Your retrieved data
Leave A Comment