---
title: "Complete a history import"
method: POST
path: "/imports/{importId}/complete"
tags: ["Imports"]
---

# Complete a history import

`POST /imports/{importId}/complete`

## Request

- Base URL: `https://api.ando.so/v1`
- URL: `https://api.ando.so/v1/imports/{importId}/complete`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Marks the import complete. Starting the same import again reopens it, e.g. to bring over messages sent since.

## Path parameters

- `importId` string, required: Import identifier.

## Response `200`

The completed import and its cumulative counts.

- HistoryImportCompleteResponse: History import completion response.
  - `data` HistoryImportCompleteResult, required: A completed import and the distinct records it has imported across all requests.
    - `counts` object, required: Distinct records imported across all requests; re-sent records are not counted twice.
      - `conversations` integer, required: Conversations.
      - `members` integer, required: Members.
      - `messages` integer, required: Messages.
      - `reactions` integer, required: Reactions.
    - `import_id` string, required: Import identifier.
    - `status` 'open' | 'completed', required: Import status.

## Other responses

- `400`: Bad request.
- `401`: Missing or invalid API key.
- `403`: Forbidden.
- `404`: Not found.
- `409`: Conflict.
- `429`: Rate limit or quota exceeded.
- `500`: Internal server error.

## Changes

- **2026-10-18** `aaceae49c08d`: 12 info
  - added the optional property `request_id` to the response with the `400` status
  - added the optional property `request_id` to the response with the `401` status
  - added the optional property `request_id` to the response with the `403` status
  - added the optional property `request_id` to the response with the `404` status
  - …8 more
- **2026-09-29** `dbc7bd1e9aec`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ando/apis/ando-public-api/changes/imports/:importId/complete/post.md)

---

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