Skip to main content
POST
Get Usage Configuration

Overview

Retrieve the current per-user add-on credit cap configuration for your organization. Caps are always per-user. When you query by team or group scope, the response returns the per-user cap that has been applied to users within that team or group.

Request

string
required
Your service key with “Billing Read” permissions

Scope Configuration (Choose One)

boolean
Set to true to retrieve the per-user cap applied to all users on the team
string
Retrieve the per-user cap applied to all users in a specific group by providing the group ID
string
Retrieve the configuration for a specific user by providing their email address
You must provide one of team_level, group_id, or user_email to define the scope.

Example Request - Get Per-User Cap for All Users on Team

Example Request - Get Per-User Cap for All Users in a Group

Example Request - Get User Configuration

Response

integer
The configured add-on credit cap value. If this field is not present in the response, there is no cap configured at the requested scope level.

Example Response - With Cap Configured

Example Response - No Cap Configured

Error Responses

Common error scenarios:
  • Invalid service key or insufficient permissions
  • Multiple scope parameters provided
  • No scope parameter provided
  • Invalid group ID or user email
  • Rate limit exceeded