Get account details
Retrieve information for the current account, including the available balance.
Endpoint
GET https://api.stepfun.ai/v1/accounts
Request parameters
None
Response
-
objectstring
Alwaysaccount -
typestring
Account type. Possible values:prepaidorpostpaid. -
balancefloat
Current available balance. -
total_cash_balancefloat
Total deposited amount. -
total_voucher_balancefloat
Total promotional/bonus amount.
Example
curl --location 'https://api.stepfun.ai/v1/accounts' \
--header 'Authorization: Bearer YOUR_STEPFUN_TOKEN'Response
{
"object": "account",
"type": "prepaid",
"balance": 0.00,
"total_cash_balance": 0.00,
"total_voucher_balance": 26.00
}Last updated on