After reserving space, use the command ID to get a temporary data token.
javascriptCopy codeconst response = await axios.get(`${process.env.BASE_URL}/data-token/retrieve-temporary-data-token/${commandId}`, {
headers: { 'X-DPT-AUTHORIZATION': fullAuthToken }
});
const tempToken = response.data.token; // Save the temporary token
Leave A Comment