Refresh Access Token
1 min
refresh
Refresh the access token
GET
https://api-sandbox.klavi.ai/monitor/v1/refresh
Header Parameters
- AuthorizationstringrequiredDescription
Response
- accessTokenstringDescription
- expireInstringDescription
curl
curl --location 'https://api-sandbox.klavi.ai/monitor/v1/refresh' \
--header 'Authorization: string'nodejs
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://api-sandbox.klavi.ai/monitor/v1/refresh',
'headers': {
'Authorization': 'string'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
javascript
var myHeaders = new Headers();
myHeaders.append("Authorization", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api-sandbox.klavi.ai/monitor/v1/refresh", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));python
import requests
url = "https://api-sandbox.klavi.ai/monitor/v1/refresh"
payload = {}
headers = {
'Authorization': 'string'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
ruby
require "uri"
require "net/http"
url = URI("https://api-sandbox.klavi.ai/monitor/v1/refresh")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = "string"
response = https.request(request)
puts response.read_body
200
{
"accessToken": "JhbGciOiJFUzI1NiIs.QtYjAyOC1hN2ZhMWFjZGRjZjkiLCJ0.nlTqpAZHeq4P2xFD",
"expireIn": 1800
}