Documentation Index
Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt
Use this file to discover all available pages before exploring further.
credits.get_balance — checking warning_low is a good place to prompt the operator for a code.
Parameters
The redeem code to apply, in its canonical format (for example
"SYN-XXXX-XXXX-XXXX-X"). Codes are case-sensitive.Returns
RedeemResult with the outcome of the redemption.
Stable identifier for this redemption. Use it to correlate with the matching ledger entry from
credits.get_ledger.Number of credits added to the wallet by this code.
Total wallet balance after the redemption, in credits.
When the newly funded bucket expires, if the code carries an expiry.
None means the granted credits do not expire.Example
Raises
InvalidInputError— when the code is malformed or unknown.InsufficientCreditsError— when the code has already been redeemed, has expired, or has been exhausted. The exception’sbalance_creditsfield isNonefor these cases, so you can surface the error message directly.SynapAuthError— when the API key is missing or invalid.