Refresh session
curl --request POST \
--url https://{host}/ext/api/v1/auth/{guard}/refresh \
--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>', 'Content-Type': 'application/json'},
body: JSON.stringify({refresh_token: 'q3Jx...'})
};
fetch('https://{host}/ext/api/v1/auth/{guard}/refresh', 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}/refresh"
payload = { "refresh_token": "q3Jx..." }
headers = {
"X-BLUDIA-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "q3Jx...",
"token_type": "Bearer",
"expires_in": 900,
"record_id": 42
}{
"error": "<string>",
"message": "<string>"
}{
"status": false,
"message": "<string>",
"errors": "<unknown>",
"request_id": "<string>"
}{
"status": false,
"message": "<string>",
"errors": "<unknown>",
"request_id": "<string>"
}{
"message": "Rate limit exceeded."
}Authentication
Refresh session
Returns a new access token and refresh token. The refresh token you send is revoked (rotation); store the new one.
POST
/
auth
/
{guard}
/
refresh
Refresh session
curl --request POST \
--url https://{host}/ext/api/v1/auth/{guard}/refresh \
--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>', 'Content-Type': 'application/json'},
body: JSON.stringify({refresh_token: 'q3Jx...'})
};
fetch('https://{host}/ext/api/v1/auth/{guard}/refresh', 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}/refresh"
payload = { "refresh_token": "q3Jx..." }
headers = {
"X-BLUDIA-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "q3Jx...",
"token_type": "Bearer",
"expires_in": 900,
"record_id": 42
}{
"error": "<string>",
"message": "<string>"
}{
"status": false,
"message": "<string>",
"errors": "<unknown>",
"request_id": "<string>"
}{
"status": false,
"message": "<string>",
"errors": "<unknown>",
"request_id": "<string>"
}{
"message": "Rate limit exceeded."
}