Log in
curl --request POST \
--url https://{host}/ext/api/v1/auth/{guard}/login \
--header 'Content-Type: application/json' \
--header 'X-BLUDIA-API-KEY: <api-key>' \
--data '
{
"login": "sarah@example.com",
"password": "correct horse battery"
}
'const options = {
method: 'POST',
headers: {'X-BLUDIA-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({login: 'sarah@example.com', password: 'correct horse battery'})
};
fetch('https://{host}/ext/api/v1/auth/{guard}/login', 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}/login"
payload = {
"login": "sarah@example.com",
"password": "correct horse battery"
}
headers = {
"X-BLUDIA-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"session": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "q3Jx...",
"token_type": "Bearer",
"expires_in": 900,
"record_id": 42
}
}{
"error": "invalid_credentials",
"message": "The provided credentials are incorrect."
}{
"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
Log in
Exchanges a login value and password for a session. Users with status inactive, banned, or suspended get 403 account_inactive. Limited to 10 requests per minute per IP.
POST
/
auth
/
{guard}
/
login
Log in
curl --request POST \
--url https://{host}/ext/api/v1/auth/{guard}/login \
--header 'Content-Type: application/json' \
--header 'X-BLUDIA-API-KEY: <api-key>' \
--data '
{
"login": "sarah@example.com",
"password": "correct horse battery"
}
'const options = {
method: 'POST',
headers: {'X-BLUDIA-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({login: 'sarah@example.com', password: 'correct horse battery'})
};
fetch('https://{host}/ext/api/v1/auth/{guard}/login', 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}/login"
payload = {
"login": "sarah@example.com",
"password": "correct horse battery"
}
headers = {
"X-BLUDIA-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"session": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "q3Jx...",
"token_type": "Bearer",
"expires_in": 900,
"record_id": 42
}
}{
"error": "invalid_credentials",
"message": "The provided credentials are incorrect."
}{
"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."
}Authorizations
Body
application/json
