Reset password
curl --request POST \
--url https://{host}/ext/api/v1/auth/{guard}/password/reset \
--header 'Content-Type: application/json' \
--header 'X-BLUDIA-API-KEY: <api-key>' \
--data '
{
"token": "RESET_TOKEN",
"password": "a new strong passphrase"
}
'const options = {
method: 'POST',
headers: {'X-BLUDIA-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({token: 'RESET_TOKEN', password: 'a new strong passphrase'})
};
fetch('https://{host}/ext/api/v1/auth/{guard}/password/reset', 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}/password/reset"
payload = {
"token": "RESET_TOKEN",
"password": "a new strong passphrase"
}
headers = {
"X-BLUDIA-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Password has been reset. Please log in again."
}{
"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
Reset password
Sets a new password using a reset token and revokes all of the user’s sessions.
POST
/
auth
/
{guard}
/
password
/
reset
Reset password
curl --request POST \
--url https://{host}/ext/api/v1/auth/{guard}/password/reset \
--header 'Content-Type: application/json' \
--header 'X-BLUDIA-API-KEY: <api-key>' \
--data '
{
"token": "RESET_TOKEN",
"password": "a new strong passphrase"
}
'const options = {
method: 'POST',
headers: {'X-BLUDIA-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({token: 'RESET_TOKEN', password: 'a new strong passphrase'})
};
fetch('https://{host}/ext/api/v1/auth/{guard}/password/reset', 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}/password/reset"
payload = {
"token": "RESET_TOKEN",
"password": "a new strong passphrase"
}
headers = {
"X-BLUDIA-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Password has been reset. Please log in again."
}{
"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."
}