User Balance
API Documentation: Retrieve User Balance
Endpoint
GET /v1/user/balanceDescription
This endpoint retrieves the current remaining balance of the authenticated user.
Request
cURL Example:
curl --location 'https://api.1for.ai/v1/user/balance' \
--header 'api-key: {API_KEY}'Replace {API_KEY} with your actual API key.
Response
The response will be a JSON object with the user's remaining balance, rounded to five decimal places:
{
"remainingBalance": 123.45678
}remainingBalance: A number representing the amount of balance left for the user.
Notes
Ensure the user is authenticated and the
api-keyheader is valid.The balance is precise up to five decimal places.
Last updated