---
title: "Import email accounts from CSV file"
method: GET
path: "/CSVImport/doimport"
tags: ["CSVImport", "Email Accounts"]
---

# Import email accounts from CSV file

`GET /CSVImport/doimport`

This function imports email accounts from an already uploaded CSV file.

## Query parameters

- `domain` string, domain, required
- `id` string, required
- `type` 'email' | 'fwd', required

## Response `200`

HTTP Request was successful.

- object
  - `apiversion` integer — The version of the API.
  - `func` string — The name of the method called.
  - `module` string — The name of the module called.
  - `result` object
    - `data` object
      - `results` object[] — The results for each attempted add operation.
        - `email` string, email — The email address or forwarder.
        - `fwd` string, email, nullable — The destination of the forwarder (if applicable).
        - `reason` string — The explanation of the outcome for each operation.
        - `status` 0 | 1 — The outcome of each operation. * `1` — Success. * `0` — Failed.
        - `type` 'email' | 'fwd' — The type of email address. * `email` — A regular email account. * `fwd` — A forwarder.
    - `errors` string[], nullable — List of errors if the API failed.
    - `messages` string[], nullable — List of messages generated by the API.
    - `metadata` object
    - `status` 0 | 1 — * `1` — Success * `0` — Failed: One or more errors occurred. For errors related to individual account add operations, see the `reason` field in each record from `results` for more information.
    - `warnings` string[], nullable — List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running an API.

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
