# CreateWallet

<mark style="color:green;">`POST`</mark> /api/create-wallet

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

| Name             | Type   | Description                                      |
| ---------------- | ------ | ------------------------------------------------ |
| `asset_pubkey`   | string | Account extended public key to derive asset keys |
| `account_pubkey` | string | Account extended public key to derive BTC keys   |

**Request**

```json
{
"asset_pubkey":"zpub6rCz8eKwNryyQifJK4yj7KEKzA5XDp31DGf6EpmBgdZnDjPajMVgRJMB8hzNLYmaufVRqXBWcKV5aeepJSY3uSF5z3yPB14jFPhi6Aq2Y2T",
"account_pubkey":"zpub6rU6HxpLkQUXeiHJTr43TW6uNaNZGvsrKT5YKiVBmwkKwvwTm5AXKTynsmUewP8TFRvccq6Z4EJ4L7q7ycc416fT8TGdoTYHn1BmSAuMkSJ"
}
```

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "wallet_id": "263afad1-a7a0-4af9-8ceb-5722aa0114fa",
  "address": "bc1qp9zm6x5q6y02036l2q93936c4fs3acjr546yly"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}
