Docs

Get category drift report

GET /api/v1/programmatic/reports/category-drift

GET/api/v1/programmatic/reports/category-drift
Reportsv1reports:read

Returns material category spending changes over time.

Parameters

NameInType Description
monthquerystringOptional Final report month. Defaults to the current month in the workspace timezone. 2026-07
rangequeryrecent | fullOptional `full` is clamped to the history window allowed by the plan. recent
periodquery6m | 12mOptional Deprecated compatibility alias. Use `range`. 6m

Code examples

curl --request GET \
  --url 'https://api.tetri.app/api/v1/programmatic/reports/category-drift?month=2026-07&range=recent&period=6m' \
  --header 'Authorization: Bearer $TETRI_API_TOKEN'

Responses

200Complete category drift report in a JSON:API resource envelope.
{
  "data": {
    "type": "category_drift",
    "id": "<string>",
    "attributes": {
      "analysis_period_end": "2026-07-12",
      "analysis_period_start": "2026-07-12",
      "period": "<string>",
      "currency_code": "<string>",
      "currency_symbol": "<string>",
      "categories": [
        {
          "category_id": "<string>",
          "name": "<string>",
          "icon_name": "<string>",
          "accent_color": "<string>",
          "monthly_shares": [
            {
              "month": "<string>",
              "share": "<string>"
            }
          ],
          "change_pp": "<string>",
          "direction": "growing"
        }
      ],
      "fx_partial": false,
      "missing_fx_count": 0
    },
    "window": {
      "applied_months": 0,
      "earliest_visible_date": "2026-07-12",
      "plan": "free",
      "requested_range": "recent",
      "truncated_by_plan": false
    }
  }
}
400Request parameters or payload failed validation. Inspect `code` and `message`.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "<string>",
  "error": "Bad Request",
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
401The personal access token is missing, invalid, expired, or revoked.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "<string>",
  "error": "Bad Request",
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
403The token lacks the required scope or no longer has workspace access.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "<string>",
  "error": "Bad Request",
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
429The credential exceeded its request rate limit.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "<string>",
  "error": "Bad Request",
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}