Account API

Manage your account resources, view API usage statistics, check credit balance, and track transactions.


GET/auth/account/usage

Account Usage

Retrieve usage statistics for your account over a specified time period.

Query Parameters

  • Name
    period
    Type
    string
    Description
    Time period: daily, monthly, yearly (default: monthly)
  • Name
    from
    Type
    string
    Description
    Start date in ISO 8601 format (default: start of current month)
  • Name
    to
    Type
    string
    Description
    End date in ISO 8601 format (default: now)

Request

GET
/auth/account/usage

Response


GET/auth/account/credits

Credit Balance

Retrieve your current credit balance, reserved credits, and available credits.

Request

GET
/auth/account/credits

Response


GET/auth/account/ledger

Credit Ledger

Retrieve a paginated list of credit transactions (debits, credits, adjustments).

Query Parameters

  • Name
    type
    Type
    string
    Description
    Filter by transaction type: credit, debit, adjustment
  • Name
    from
    Type
    string
    Description
    Start date in ISO 8601 format
  • Name
    to
    Type
    string
    Description
    End date in ISO 8601 format
  • Name
    limit
    Type
    integer
    Description
    Results per page (default: 50, max: 100)
  • Name
    offset
    Type
    integer
    Description
    Pagination offset (default: 0)

Request

GET
/auth/account/ledger

Response


GET/auth/account/summary

Account Summary

Retrieve a complete account overview including credit balance, subscription status, and usage statistics.

Request

GET
/auth/account/summary

Response


Schema

UsageStats Object

FieldTypeDescription
user_idintegerUser ID
periodstringTime period: daily, monthly, yearly
total_requestsintegerTotal API requests
successful_requestsintegerSuccessful requests
failed_requestsintegerFailed requests
credits_consumedfloatCredits consumed
requests_by_endpointobjectRequest counts by endpoint
period_startdatetimePeriod start time
period_enddatetimePeriod end time

CreditBalance Object

FieldTypeDescription
user_idintegerUser ID
balancefloatTotal balance
reservedfloatReserved/held credits
availablefloatAvailable for use
currencystringCurrency code
last_updateddatetimeLast update timestamp
auto_reload_enabledbooleanAuto-reload enabled
auto_reload_thresholdfloatTrigger threshold
auto_reload_amountfloatReload amount

CreditLedgerEntry Object

FieldTypeDescription
idintegerEntry ID
user_idintegerUser ID
typestringTransaction type: credit, debit, adjustment
amountfloatTransaction amount
balance_afterfloatBalance after transaction
descriptionstringTransaction description
referencestringExternal reference (payment ID, etc.)
metadataobjectAdditional metadata
created_atdatetimeTransaction timestamp

AccountSummary Object

FieldTypeDescription
user_idintegerUser ID
emailstringUser email
credit_balanceCreditBalanceCurrent credit balance
subscriptionSubscriptionActive subscription details
usage_this_monthUsageStatsCurrent month usage
total_requests_all_timeintegerTotal lifetime requests
account_created_atdatetimeAccount creation time
last_login_atdatetimeLast login time

Was this page helpful?