Docs

Get account gaps report

GET /api/v1/programmatic/reports/account-gaps

GET/api/v1/programmatic/reports/account-gaps
Reportsv1reports:read

Returns active accounts with stale or missing transaction activity.

Code examples

curl --request GET \
  --url 'https://api.tetri.app/api/v1/programmatic/reports/account-gaps' \
  --header 'Authorization: Bearer $TETRI_API_TOKEN'

Responses

200Complete account gaps report in a JSON:API resource envelope.
{
  "data": {
    "type": "account_gaps",
    "id": "<string>",
    "attributes": {
      "threshold_days": 0,
      "flagged_accounts": [
        {
          "account_id": "<string>",
          "wallet_id": "<string>",
          "name": "<string>",
          "last_transaction_date": "2026-07-12",
          "days_since_last": 0,
          "has_import_history": false
        }
      ],
      "total_active_accounts": 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"
}