Account
Authorization: Bearer <access_token>Authentication
Obtain Token
Account
Get Usage
Get Usage History
Last updated
Authorization: Bearer <access_token>Last updated
fetch("https://api.realtrex.com/v1/token", {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: new URLSearchParams({
username: "Your API username",
password: "Your API password"
})
})
.then(res => res.json())
.then(console.log);
{
"access_token": "text",
"expires_in": 2592000,
"type": "Bearer"
}{
"resources": {
"property": {
"name": "property",
"daily_limit": 1000,
"daily_usage": 10,
"monthly_limit": 10000,
"monthly_usage": 128
}
}
}curl -X GET \
https://api.realtrex.com/v1/account/get_usage \
-H "Authorization: Bearer <access_token>"{
"property": {
"name": "Property Resource",
"data": [
{"date": "2025-10-15", "usage_count": 10},
{"date": "2025-10-14", "usage_count": 5},
{"date": "2025-10-13", "usage_count": 8}
]
}
}curl -X GET \
https://api.realtrex.com/v1/account/get_usage_history \
-H "Authorization: Bearer <access_token>"