Log out
curl --request POST \
--url https://{host}/ext/api/v1/auth/{guard}/logout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-BLUDIA-API-KEY: <api-key>' \
--data '
{
"refresh_token": "q3Jx..."
}
'const options = {
method: 'POST',
headers: {
'X-BLUDIA-API-KEY': '<api-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({refresh_token: 'q3Jx...'})
};
fetch('https://{host}/ext/api/v1/auth/{guard}/logout', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/ext/api/v1/auth/{guard}/logout"
payload = { "refresh_token": "q3Jx..." }
headers = {
"X-BLUDIA-API-KEY": "<api-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Logged out."
}{
"message": "Missing API key."
}{
"status": false,
"message": "<string>",
"errors": "<unknown>",
"request_id": "<string>"
}{
"message": "Rate limit exceeded."
}Account
Log out
Revokes one refresh token (this device). Access tokens stay valid until they expire.
POST
/
auth
/
{guard}
/
logout
Log out
curl --request POST \
--url https://{host}/ext/api/v1/auth/{guard}/logout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-BLUDIA-API-KEY: <api-key>' \
--data '
{
"refresh_token": "q3Jx..."
}
'const options = {
method: 'POST',
headers: {
'X-BLUDIA-API-KEY': '<api-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({refresh_token: 'q3Jx...'})
};
fetch('https://{host}/ext/api/v1/auth/{guard}/logout', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/ext/api/v1/auth/{guard}/logout"
payload = { "refresh_token": "q3Jx..." }
headers = {
"X-BLUDIA-API-KEY": "<api-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Logged out."
}{
"message": "Missing API key."
}{
"status": false,
"message": "<string>",
"errors": "<unknown>",
"request_id": "<string>"
}{
"message": "Rate limit exceeded."
}