---
title: "Import an existing private key to create a waas account"
method: POST
path: "/sdk/{environmentId}/waas/privateKey/import"
tags: ["SDK"]
---

# Import an existing private key to create a waas account

`POST /sdk/{environmentId}/waas/privateKey/import`

Import a private key to create a waas account

## Path parameters

- `environmentId` string, required

## Request body

- ImportWaasPrivateKeyRequest
  - `chain` 'EVM' | 'SVM' | 'SUI' | 'BTC' | 'TON', required
  - `clientKeygenIds` NonEmptyBase58StringWith100MaxLength[], required
  - `thresholdSignatureScheme` 'TWO_OF_TWO' | 'TWO_OF_THREE' | 'THREE_OF_FIVE', required
  - `legacyWalletId` string, uuid — Optional wallet ID of an existing legacy wallet being migrated

## Response `200`

Successfully created a room for wallet private key import ceremony

- OpenRoomResponseWithServerKeygenIds
  - `roomId` string, required
  - `serverKeygenIds` NonEmptyBase58StringWith100MaxLength[], required
  - `newServerKeygenIds` NonEmptyBase58StringWith100MaxLength[]
  - `walletId` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

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