---
title: "Every memory sweep running right now for this account"
method: GET
path: "/api/v1/imports/active"
---

# Every memory sweep running right now for this account

`GET /api/v1/imports/active`

## Request

- Base URL: `https://memchats.com`
- URL: `https://memchats.com/api/v1/imports/active`
- Auth: HTTP bearer

The counter used to live only under its contact, so leaving the import screen lost it. This answers the inverse question — what is running for me — from a Redis set the sweep maintains, never a key scan. Empty array when nothing is running, and never a 5xx: a progress bar cannot be the reason a screen breaks. Demo sessions may read it.

## Response `200`

The live sweeps, with the contact each one belongs to

- object
  - `imports` object[]
    - `contactId` integer
    - `contactName` string
    - `relationshipType` string, nullable: Relationship type of the contact; a dating one opens its ficha.
    - `processed` integer
    - `total` integer
    - `passIndex` integer
    - `passCount` integer
    - `phase` 'reading' | 'writing'
    - `passRange` object, nullable
      - `fromMessageId` integer
      - `toMessageId` integer
      - `fromAt` string, date-time
      - `toAt` string, date-time
      - `messages` integer
    - `sweepWindow` integer, nullable: The plan's window when the sweep has one; null means the whole history.
    - `startedAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `401`: No session

---

[API](https://skmtc.dev/memchats/apis/memchats-api.md) · [All operations](https://skmtc.dev/memchats/apis/memchats-api/llms.txt) · [OpenAPI document](https://skmtc.dev/memchats/apis/memchats-api/revisions/e62bca06f785?raw)
