CognitiveX Docs
API

GET /api/admin/analytics/costs/trends

Cost Trends

GET /api/admin/analytics/costs/trends

Cost Trends

Authentication: Authorization: Bearer <key> or X-API-Key: <key>. Create keys at developers.cognitivx.io/keys.

Parameters

NameInTypeRequiredDescription
periodquerystringNoGrouping period: daily, weekly, or monthly Defaults to "daily".
monthsqueryintegerNoNumber of months of history Defaults to 3.
X-Org-IDheaderstring | nullNo-

Example request

curl -X GET https://api.cognitivx.io/api/admin/analytics/costs/trends \
  -H "Authorization: Bearer icog_..."

Example response

200 application/json

null

Responses

StatusDescription
200Success. Returns the response body shown below.
422Request validation failed. detail lists each offending field.