For more complex storage scenarios, Privicore allows you to reserve token space and apply policies or voters to control how data is stored.
Reserve space for your data using the /data-token/reserve-token-space
endpoint:
javascriptCopy codeconst formData = new FormData();
formData.append('context', 'some_context');
const response = await axios.post(`${process.env.BASE_URL}/data-token/reserve-token-space`, formData, {
headers: { 'X-DPT-AUTHORIZATION': fullAuthToken }
});
const commandId = response.data[0]; // Save the command ID
Leave A Comment