Skip to main content
GET
/
api
/
public
/
organizations
/
{orgId}
/
ai-usage
Get AI usage
curl --request GET \
  --url https://charts.basedash.com/api/public/organizations/{orgId}/ai-usage \
  --header 'Authorization: Bearer <token>'
{
  "totalUsage": 123,
  "billingPeriodStart": "2023-11-07T05:31:56Z",
  "billingPeriodEnd": "2023-11-07T05:31:56Z",
  "memberUsage": [
    {
      "userId": "<string>",
      "memberId": "<string>",
      "email": "<string>",
      "usage": 123
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://basedash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication using Bearer token format: Bearer <basedash_api_key>

Path Parameters

orgId
string
required

Organization ID

Response

AI usage retrieved successfully

totalUsage
number
required

Total billable AI usage for the billing period in USD dollars

billingPeriodStart
string<date-time>
required

Billing period start timestamp

billingPeriodEnd
string<date-time>
required

Billing period end timestamp

memberUsage
object[]
required

Billable AI usage grouped by organization member