Analytics

Get cost and token usage analytics

post/analytics/v0/cost-analytics

Request

  • Base URL: https://api.augmentcode.com
  • URL: https://api.augmentcode.com/analytics/v0/cost-analytics
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://auth.augmentcode.com/authorize, token URL https://auth.augmentcode.com/token, scopes: read)
    • HTTP bearer

Request body

start_datestring date
end_datestring date
group_by_keysstring[]
granularity'COST_ANALYTICS_TIME_GRANULARITY_TOTAL' | 'COST_ANALYTICS_TIME_GRANULARITY_DAY'
cursorstring
page_sizeinteger

Response

Successful response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.