Billing

Get billing usage

Changed on

Get per-dimension usage breakdown for the current or previous billing cycle.

get/billing/usage

Request

  • Base URL: https://api.sazabi.com/v1
  • URL: https://api.sazabi.com/v1/billing/usage
  • Auth: none declared

Query parameters

organizationIdstring

Organization to query usage for. Auto-filled from CLI and SDK context when omitted. User tokens must supply it unless the credential's fixed scope resolves it; secret keys may omit it (the key's organization applies).

cycle'current' | 'previous'

Which billing cycle to report usage for.

Response

OK

Changes

    • warning

      added the new log_queries_executed enum value to the // response property for the response status

    • warning

      added the new log_questions_answered enum value to the // response property for the response status

    • warning

      added the new priced enum value to the // response property for the response status