---
title: "Register a wallet"
method: POST
path: "/api/v1/wallets"
tags: ["Wallets"]
---

# Register a wallet

`POST /api/v1/wallets`

## Request

- Base URL: `https://saltapp.ai`
- URL: `https://saltapp.ai/api/v1/wallets`
- Auth: API key in header `api-key`

Salt never accepts a plaintext private key or mnemonic -- send encrypted_payload, client-side AES-GCM ciphertext the server cannot open.

## Request body

- object
  - `chain` string, required
  - `testnet` boolean
  - `wallet_type` string
  - `name_custom` string
  - `name_3` string
  - `public_address` string, required
  - `public_key` string
  - `encrypted_payload` string, required
  - `public` boolean
  - `default` boolean
  - `imported` boolean: True for a wallet the person already held elsewhere; it is stored as backed up.

## Response `200`

OK

- Wallet: Api::V1::WalletsController::SAFE_WALLET_FIELDS. encrypted_payload is client-side AES-GCM ciphertext the server cannot open -- safe to return.
  - `id` string, uuid, required
  - `public_id` string
  - `user_id` string, uuid
  - `wallet_type` string
  - `chain` string, required
  - `testnet` boolean
  - `name_custom` string, nullable
  - `name_3` string: The chain's ticker, e.g. ETH, MATIC, BTC.
  - `public_address` string, required
  - `public_key` string, nullable
  - `balance` string, nullable
  - `value` string, nullable: USD value, refreshed periodically.
  - `public` boolean
  - `default` boolean
  - `backedup` boolean
  - `encrypted_payload` string, nullable
  - `encryption_scheme` 'vault' | 'agent_local' | 'external'
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `tokens` object[]

## Other responses

- `401`: Missing or invalid credentials.
- `409`: That wallet is already in Salt. (same chain, network and address as an active wallet)
- `422`: encrypted_payload is required. / Set up your wallet vault before creating a wallet.

---

[API](https://skmtc.dev/saltapp/apis/salt-agent-api.md) · [All operations](https://skmtc.dev/saltapp/apis/salt-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/saltapp/apis/salt-agent-api/revisions/a8b8642ab7f8?raw)
