Browse the help center

AI Assistant Usage API endpoints

Endpoint reference for the AI Assistant Usage tag (1 endpoints): What the in-product AI assistant chat cost each user, for invoicing

Reference network manager admin

What the in-product AI assistant chat cost each user, for invoicing. 1 endpoint, generated from the OpenAPI spec. Authentication, the response envelope, pagination and error codes are shared by all endpoints — see REST API overview. Parameters marked form go in an application/x-www-form-urlencoded request body.

GET /rest-api/ai-chat/usage.do

Request examples

Get AI assistant usage for a month.

ParameterInTypeRequiredDescription
monthquerystringnoCalendar month (UTC) in YYYY-MM form; the current month when omitted

Responses: 200 — {success, month, rows:[{userId, username, keySource, calls, inputTokens, outputTokens, cacheReadTokens, cacheWriteTokens, rawCostUsd, billedCostUsd, promoWaivedUsd, limitUsd}], totalRawUsd, totalBilledUsd, totalPromoWaivedUsd, multiplier, promoUntil, promoAllowanceUsd}. Errors follow the shared conventions.

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.