Regenerate device token
curl --request POST \
--url https://api.ipulse.one/v2/devices/{uuid}/regenerate-token \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ipulse.one/v2/devices/{uuid}/regenerate-token"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ipulse.one/v2/devices/{uuid}/regenerate-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ipulse.one/v2/devices/{uuid}/regenerate-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"message": "<string>",
"data": {
"token": "<string>"
}
}{
"success": false,
"message": "Unauthenticated."
}{
"success": false,
"message": "This feature requires an Expert Plan subscription."
}{
"success": false,
"message": "Resource not found."
}Devices
Regenerate device token
Generate a new authentication token for a device (Expert Plan required)
POST
/
v2
/
devices
/
{uuid}
/
regenerate-token
Regenerate device token
curl --request POST \
--url https://api.ipulse.one/v2/devices/{uuid}/regenerate-token \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ipulse.one/v2/devices/{uuid}/regenerate-token"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ipulse.one/v2/devices/{uuid}/regenerate-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ipulse.one/v2/devices/{uuid}/regenerate-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"message": "<string>",
"data": {
"token": "<string>"
}
}{
"success": false,
"message": "Unauthenticated."
}{
"success": false,
"message": "This feature requires an Expert Plan subscription."
}{
"success": false,
"message": "Resource not found."
}Authorizations
bearerAuthagentAuth
⌘I

