Entitlements
Get Feature credits balance
This API let’s you to get the feature credits balance
GET
/
accounts
/
{account_id}
/
features
/
{feature_id}
curl --request GET \
--url https://api.togai.com/accounts/{account_id}/features/{feature_id} \
--header 'Authorization: <authorization>'
{
"accountId": "acc.fdjsl.313",
"featureId": "feat.fdjsl.313",
"granted": 15,
"balance": 10,
"overageLimit": 20,
"usedOverage": 15
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
account_id
string
requiredaccount_id corresponding to an account
feature_id
string
requiredfeature_id corresponding to a feature
Response
200 - application/json
accountId
string
requiredfeatureId
string
requiredgranted
number
requiredbalance
number
requiredoverageLimit
number
usedOverage
number
requiredcurl --request GET \
--url https://api.togai.com/accounts/{account_id}/features/{feature_id} \
--header 'Authorization: <authorization>'
{
"accountId": "acc.fdjsl.313",
"featureId": "feat.fdjsl.313",
"granted": 15,
"balance": 10,
"overageLimit": 20,
"usedOverage": 15
}