Get account
Read the account credit balance.
GET
https://revise.io/api/v1/accountSee pricing and account credit for integration guidance.
TypeScript#
TypeScript
import { ReviseClient } from "@reviseio/api";
const revise = new ReviseClient({ apiKey: process.env.REVISE_API_KEY! });
const result = await revise.account.get();Authorization#
AuthorizationstringrequiredBearer <key>, with an API key from the console.
Responses#
200AccountThe signed credit balance and funding capabilities.
idstringrequiredcurrencystringrequiredalways "usd"
available_usdstringrequiredSigned fixed-decimal USD credit balance. Requests are admitted only while the balance is positive; the final settled charge of an in-flight request may take it below zero until the next top-up. Spending thresholds stop new calls; the last response and its tools can take the final charge beyond them.
example "0.050000000"
pricing_versionstringrequiredfunding_enabledbooleanrequiredstripe_test_modebooleanrequiredapi_key_idstringrequiredNon-secret ID of the currently authenticated key.
defaultErrorError
errorobjectrequiredProperties
codestringrequiredmessagestringrequireddetailsobject