👤 Get Account
This API returns the account that owns the API key: the user’s email and name, their organization, and the spendable credit balance for each feature, including who pays and when credits expire. It is read-only.
📋 Basic Information
- Method:
GET - Path:
https://api.bluente.com/api/20250924/blu_translate/account - Authentication: Required —
Authorization: Bearer $BLUENTE_API_KEY
📝 Request Parameters
- Query Parameters: None
- Request Body: None
💡 Example
curl -X GET "https://api.bluente.com/api/20250924/blu_translate/account" \
-H "Authorization: Bearer $BLUENTE_API_KEY" \
-H "Accept: application/json"or
fetch("https://api.bluente.com/api/20250924/blu_translate/account", {
method: "GET",
headers: {
"Authorization": "Bearer $BLUENTE_API_KEY",
"Accept": "application/json"
}
});✅ Success Response Example
{
"message": "success",
"code": 0,
"data": {
"user": {
"email": "translator@example.com",
"full_name": "Alex Chen"
},
"organization": {
"name": "Example Corp",
"role": "staff"
},
"credits": [
{
"feature": "translate",
"paid_by": "organization",
"balance": 1200,
"expiries": [
{ "at": "2026-11-30T23:59:59Z", "credits": 200 },
{ "at": "2027-06-30T23:59:59Z", "credits": 1000 }
]
}
]
}
}📊 Response Fields
| Field | Type | Description |
|---|---|---|
message | string | Response message, usually "success" |
code | int | Status code, 0 means success |
data | object | Main payload |
└─ user.email | string | Email of the user who owns the API key |
└─ user.full_name | string | Full name of that user |
└─ organization | object/null | The user’s organization, or null if the user is not in an organization |
└─ organization.name | string | Organization name |
└─ organization.role | string | The user’s role in the organization (e.g. owner, admin, staff) |
└─ credits | array | One entry per feature. translate is always present; other features (transcribe, rewrite) appear only when their balance is above 0 |
└─ credits[].feature | string | Feature name: translate, transcribe or rewrite |
└─ credits[].paid_by | string | Wallet that would be charged right now: organization or personal |
└─ credits[].balance | int | Spendable credits (pages for translate) in that wallet |
└─ credits[].expiries | array | Spendable credits grouped by expiry date, soonest first (up to 5 entries) |
└─ credits[].expiries[].at | string | Expiry time, ISO 8601 in UTC (e.g. 2026-11-30T23:59:59Z) |
└─ credits[].expiries[].credits | int | Credits that expire at that time |
❌ Error Response Example
{
"message": "Unauthorized",
"code": 20
}See Error Codes for all codes.
📌 Notes
- Use this API to confirm which user and organization an API key belongs to, and to check that the account can pay for a translation before you start it.
balanceonly counts credits that can be spent now. Expired credits are not included.- The first entry in
expiriesis the soonest expiry. Warn your users before that date. - For the transaction history of the credit record, use Get User Credits.