Docs

List statement imports

GET /api/v1/programmatic/imports

GET/api/v1/programmatic/imports
Importsv1imports:read

Returns statement imports from the PAT workspace.

Parameters

NameInType Description
pagequerynumberOptional <page>
limitquerynumberOptional <limit>

Code examples

curl --request GET \
  --url 'https://api.tetri.app/api/v1/programmatic/imports?page=<page>&limit=<limit>' \
  --header 'Authorization: Bearer $TETRI_API_TOKEN'

Responses

200Request completed successfully.
{
  "data": [
    {
      "type": "import_jobs",
      "id": "<uuid>",
      "attributes": {
        "bank_key": "revolut",
        "bank_name": "Revolut",
        "file_name": "statement.csv",
        "file_type": "csv",
        "total_rows": 150,
        "imported_count": 148,
        "skipped_count": 1,
        "skipped_existing_count": 1,
        "error_count": 1,
        "status": "completed",
        "error_message": "<string>",
        "account_id": "<uuid>",
        "preview": [
          {}
        ],
        "opening_balance_adjusted": [
          {
            "account_id": "<uuid>",
            "account_name": "Main checking",
            "currency_code": "USD",
            "reason": "pre_opening_import_rows",
            "target_balance": "1000.00",
            "balance_as_of_date": "2026-07-12",
            "tetri_balance_before": "950.00",
            "tetri_balance_after": "1000.00",
            "delta": "50.00",
            "old_opening_balance": "100.00",
            "new_opening_balance": "150.00",
            "old_opening_balance_date": "2026-07-12",
            "new_opening_balance_date": "2026-07-12"
          }
        ],
        "reverted_at": "2026-07-12T12:00:00Z",
        "created_at": "2026-07-12T12:00:00Z",
        "updated_at": "2026-07-12T12:00:00Z"
      }
    }
  ],
  "meta": {
    "pagination": {
      "total": 120,
      "count": 25,
      "per_page": 25,
      "current_page": 1,
      "total_pages": 5
    }
  }
}
401The access token is missing, invalid, expired, or revoked.
403The token does not have the required scope or workspace access.
429The credential has exceeded its request limit.