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

service_key
string
required
Your service key with “Billing Read” permissions

Scope Configuration (Choose One)

team_level
boolean
Set to true to retrieve the per-user cap applied to all users on the team
group_id
string
Retrieve the per-user cap applied to all users in a specific group by providing the group ID
user_email
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

addOnCreditCap
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