Skip to main content
GET
/
v1
/
organizations
/
billing
/
usage
/
current
Get Current Usage
curl --request GET \
  --url https://api.mixpeek.com/v1/organizations/billing/usage/current \
  --header 'Authorization: <authorization>'
{
  "current_month_usage": 123,
  "billing_month": "<string>",
  "billing_period_start": "2023-11-07T05:31:56Z",
  "billing_period_end": "2023-11-07T05:31:56Z",
  "estimated_cost_usd": 123,
  "auto_billing_enabled": true,
  "next_invoice_date": "2023-11-07T05:31:56Z",
  "credit_rate": 0.001
}

Headers

Authorization
string
required

REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.

Response

Successful Response

Response with current month usage.

current_month_usage
integer
required

Credits consumed in current billing cycle

billing_month
string
required

Current billing month (YYYY-MM)

billing_period_start
string<date-time>
required

Start of current billing period

billing_period_end
string<date-time>
required

End of current billing period

estimated_cost_usd
number
required

Estimated cost for current usage

auto_billing_enabled
boolean
required

Whether auto-billing is enabled

next_invoice_date
string<date-time>
required

When next invoice will be generated

credit_rate
number
default:0.001

Cost per credit in USD