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
| Header | Required | Description |
|---|---|---|
userid | Required | Account user ID. |
api-key | Required | Account 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
}
}
}
| Field | Type | Description |
|---|---|---|
userId | string | The account user ID. |
name | string | Account/company display name. |
email | string | Account contact email. |
status | string | Account status (Active, etc.). |
validate | boolean | Whether the account is verified. |
platform.key | string | Legacy platform key, masked as ***. |
platform.balance | number | Current prepaid balance in IDR. |
Try it
Uses the userid & api-key from the connection settings above.