Finally, use the command ID from the previous step to retrieve your long-term authorization token.
javascriptCopy codeconst response = await axios.post(`${process.env.BASE_URL}/profile/retrieve-authorization-token`, {
request_auth_token_command_id: commandId
}, {
headers: { 'X-DPT-AUTHORIZATION': tempToken }
});
const fullAuthToken = response.data.token; // Use this token for future requests
Leave A Comment