Validate Session
curl --request POST \
--url https://api.example.com/api/v1/auth/validate \
--header 'Content-Type: application/json' \
--data '
{
"refresh_token": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({refresh_token: '<string>'})
};
fetch('https://api.example.com/api/v1/auth/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/api/v1/auth/validate"
payload = { "refresh_token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"valid": true
}Auth
Validate Session
POST
/
api
/
v1
/
auth
/
validate
Validate Session
curl --request POST \
--url https://api.example.com/api/v1/auth/validate \
--header 'Content-Type: application/json' \
--data '
{
"refresh_token": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({refresh_token: '<string>'})
};
fetch('https://api.example.com/api/v1/auth/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/api/v1/auth/validate"
payload = { "refresh_token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"valid": true
}⌘I