> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bizzy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Complete Import Queue

Mark an import queue session as complete and trigger the processing of all companies added to the session. Once completed, no additional companies can be added to this session.

## Request

#### Path Parameters

<ParamField path="sessionId" type="string" required>
  The session ID of the import queue to complete
</ParamField>

## Response

<ResponseExample>
  ```json Response - 200 theme={null}
  {
    "success": true
  }
  ```

  ```json Response - 400 (Invalid Session State) theme={null}
  {
    "error": "Session is not in pending state"
  }
  ```

  ```json Response - 404 (Session Not Found) theme={null}
  {
    "error": "Session not found"
  }
  ```
</ResponseExample>

<ResponseField name="success" type="boolean">
  Whether the session was successfully marked as complete
</ResponseField>

## Workflow

After completing a session:

1. The session status changes from `PENDING` to `PROCESSING`
2. **All existing companies from previous API imports are removed**
3. Bizzy begins matching and enriching the companies you added
4. Matched companies are imported into your agent
5. The session status updates to `COMPLETED` when finished

<Warning>
  **Full Replacement**: Completing a new import queue will **remove all companies** that were imported via previous API sessions. This is a complete replacement, not an append operation. If you need to retain previously imported companies, include them in your new import session.
</Warning>

## Notes

* The session must be in `PENDING` status to be completed
* Once completed, you cannot add more companies to this session
* If you need to import more companies, [start a new session](/api-reference/agent/start-import-queue)
* You can check the session status using the [import queue list](/api-reference/agent/import-queue) endpoint
