---
title: "Exports a given identity"
method: POST
path: "/export"
tags: ["export"]
---

# Exports a given identity

`POST /export`

Creates identity and stores in keystore encrypted with passphrase

## Request body

- IdentityExportRequestDTO
  - `identity` string
  - `newpassphrase` string

## Response `200`

Identity created

- IdentityExportResponseDTO
  - `address` string
  - `crypto` CryptoJSON
    - `cipher` string
    - `cipherparams` CipherparamsJSON
      - `iv` string
    - `ciphertext` string
    - `kdf` string
    - `kdfparams` object
    - `mac` string
  - `id` string
  - `version` integer

## Other responses

- `400` — Failed to parse or request validation failed
- `500` — Internal server error

## Changes

- **2023-07-10** `f166c885a802` — 1 info
  - endpoint added
- **2022-08-22** `b79669d1cc2e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/mysteriumnetwork/apis/tequila-api/changes/export/post.md)

---

[API](https://skmtc.dev/mysteriumnetwork/apis/tequila-api.md) · [All operations](https://skmtc.dev/mysteriumnetwork/apis/tequila-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mysteriumnetwork/tequila-api/revisions/cb1439736b63/schema)
