Once you have your Authorization Token (T-
), you can store data using the /data/store
endpoint.
javascriptCopy codeconst formData = new FormData();
formData.append('context', 'some_context');
formData.append('data', 'your_data');
await axios.post(`${process.env.BASE_URL}/data/store`, formData, {
headers: {
'X-DPT-AUTHORIZATION': fullAuthToken
}
});
Leave A Comment