Get credit balance, purchase history, usage history, and Auto Reload settings for the authenticated user.

get/v1/usage

Request

  • Base URL
    https://api.happenstance.ai (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Response

Successful Response

balance_creditsnumber required

Current credit balance, to two decimal places (can be negative if credits consumed without sufficient balance)

has_creditsboolean required

Whether the user has credits available (balance > 0)

top_up_urlstring

URL to purchase more credits

Changes

    • info

      the response's property default value changed from https://happenstance.ai/integrations/keys to https://happenstance.ai/developer/keys for the status

    • breaking

      the response's property type changed from integer to number for status

    • breaking

      the // response's property type changed from integer to number for status

    • info

      the endpoint scheme security HTTPBearer was added to the API