Account

The authenticated account profile and platform balance.

Connection settings
No credentials set.
GET /api/v2/account Requires auth

Returns the profile and platform balance of the authenticated account.

Headers

HeaderRequiredDescription
useridRequiredAccount user ID.
api-keyRequiredAccount client API key.
curl "http://localhost:4907/api/v2/account" \
  -H "userid: " \
  -H "api-key: "
Example response
{
  "code": 200,
  "status": "Success",
  "data": {
    "userId": "",
    "name": "",
    "email": "ops@example.com",
    "status": "Active",
    "validate": true,
    "platform": {
      "key": "***",
      "balance": 1000000
    }
  }
}
FieldTypeDescription
userIdstringThe account user ID.
namestringAccount/company display name.
emailstringAccount contact email.
statusstringAccount status (Active, etc.).
validatebooleanWhether the account is verified.
platform.keystringLegacy platform key, masked as ***.
platform.balancenumberCurrent prepaid balance in IDR.
Try it

Uses the userid & api-key from the connection settings above.