Enterprise

Get organization groups AI spend

Changed on

Returns AI spend limits and aggregate spend for the requested groups. A maximum of 100 group IDs may be requested per call, and requests with more are rejected, so callers are expected to batch across multiple requests. Unknown or unreadable group IDs are silently omitted.

get/api/v2/organizations/{organization}/groups/ai/spend

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v2/organizations/{organization}/groups/ai/spend
  • Auth
    API key in header Coder-Session-Token

Path parameters

organizationstring uuid required

Organization ID

Query parameters

group_idsstring required

Comma-separated list of group IDs (maximum 100)

Response

OK

period_endstring date-time

PeriodEnd is the exclusive upper bound of the current budget period.

period_startstring date-time

PeriodStart is the inclusive lower bound of the current budget period.

Changes