---
title: "POST /import-passwords"
method: POST
path: "/import-passwords"
tags: ["v2"]
---

# POST /import-passwords

`POST /import-passwords`

## Request body

- ImportPasswords — importPasswords is a command that import passwords
  - `accessibility` string — for personal password manager
  - `format` string — Password format type [LastPass/Chrome/Firefox/1password/keeper/bitwarden/dashlane]
  - `import-path` string, required — File path
  - `json` boolean — Set output format to JSON
  - `protection_key` string — The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
  - `target-folder` string — Target folder for imported passwords
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication
  - `update-mode` string

## Response `200`

importPasswordsResponse wraps response body.

- ImportPasswordsOutput
  - `imported` integer
  - `passwords_in_file` integer
  - `successfully_parsed` integer
  - `updated` integer

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
