---
title: "Create or import wallet"
method: POST
path: "/api/wallets"
tags: ["Wallets", "Wallet and web3"]
---

# Create or import wallet

`POST /api/wallets`

PIN is required for every create path. Custodial create: `{ pin, legalTermsVersion }` only — server generates secrets. Import/link: `pin` plus `address` plus `encryptedPrivateKey` or `privateKey` (optional `mnemonic`).

## Request body

- object
  - `pin` string, required — Required for custodial create and import/link. Exactly 6 digits.
  - `legalTermsVersion` string — Required for custodial create
  - `address` string — Required for import/link
  - `encryptedPrivateKey` string
  - `privateKey` string
  - `mnemonic` string

## Response `200`

{ wallet }

---

[API](https://skmtc.net/d-sports-ecosystem/apis/d-sports-api.md) · [All operations](https://skmtc.net/d-sports-ecosystem/apis/d-sports-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-sports-ecosystem/d-sports-api/revisions/cbc84b00330e/schema)
