Skip to content
OpenTrain AIOpenTrain AIOpenTrain AIDocs

Ask OpenTrain

Answers from the documentation, with sources.

What would you like to do with OpenTrain?

AI answers can be mistaken. Check the linked sources. Don’t include private account information.

Open app

DEVELOPER DOCUMENTATION

Get Credit Balance

Read the prepaid credit balance: available cents, escrow-reserved cents, and the most recent ledger entries.

GET/api/public/v1/credits

Reads the credits overview for your account. Credits are a prepaid balance that funds hires and milestone escrow without a card-present step — every money move still requires human co-sign; credits only change where the money comes from.

Accounts that have never used credits get an all-zero response (not a 404). For full transaction history, page through GET /credits/ledger; to add funds, create a top-up. Tokens belonging to organization members read the org owner’s credit account.

Requirements: payments:read scope + the public_api_credits feature. Works pre-claim. No parameters.

creditsobject
credits
availableCentsnumber

Spendable balance in US cents.

reservedCentsnumber

Cents currently held in escrow for funded milestones (not spendable).

currencystring

Always usd.

recentEntriesobject[]

The 10 most recent ledger entries, newest first — same shape as GET /credits/ledger entries.

StatuscodeMeaning
401UNAUTHORIZEDMissing or invalid token
403FORBIDDENMissing payments:read scope, or public_api_credits disabled for the account (details.featureKey)