Wallet

Wallet, key cap and admission

Called with an agent key, the document carries an extra agent block: the api-scope balance, the cap of this key, and is_admissible — the server's own answer to "will the next paid call be accepted". Read that flag instead of comparing the numbers yourself. On a human session the agent key is absent from attributes altogether, not null.

get/tokens/balance

Request

  • Base URL: https://api.getfacade.ai/api/v1
  • URL: https://api.getfacade.ai/api/v1/tokens/balance
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.getfacade.ai/oauth/authorize, token URL https://api.getfacade.ai/oauth/token, scopes: agent)

Response

Balance

Changes

No recorded changes to this operation across all 1 revision of this API.