> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.walletstech.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.walletstech.com/_mcp/server.

# Create a user

POST https://your-endpoint.example.com/create
Content-Type: application/json

Creates the user and derives **one wallet per configured chain** from a single bip39 mnemonic, atomically.

⚠️ **The `mnemonic` is returned exactly once and is never stored in plaintext.** Persist it before you discard the response — `/seed` export is permanently disabled.

The `password` (minimum 8 characters) encrypts the keystore entries with AES-256-GCM. It is unrecoverable and is required by `/send` and `/extend`.

Only chains the deployment is configured for are created, so a partial address map is normal in development. Chains configured later are backfilled with `/extend`.

Reference: https://docs.walletstech.com/api-reference/wallets/create-user

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Blockchain Wallet Service
  version: 1.0.0
paths:
  /create:
    post:
      operationId: createUser
      summary: Create a user
      description: >-
        Creates the user and derives **one wallet per configured chain** from a
        single bip39 mnemonic, atomically.


        ⚠️ **The `mnemonic` is returned exactly once and is never stored in
        plaintext.** Persist it before you discard the response — `/seed` export
        is permanently disabled.


        The `password` (minimum 8 characters) encrypts the keystore entries with
        AES-256-GCM. It is unrecoverable and is required by `/send` and
        `/extend`.


        Only chains the deployment is configured for are created, so a partial
        address map is normal in development. Chains configured later are
        backfilled with `/extend`.
      tags:
        - wallets
      parameters:
        - name: Authorization
          in: header
          description: >-
            A 15-minute token from `/auth`. Required on every endpoint except
            `/auth`.
          required: true
          schema:
            type: string
        - name: X-Request-Id
          in: header
          description: >-
            Correlation id. Generated if omitted, echoed on every response, and
            written to the audit log.
          required: false
          schema:
            type: string
        - name: X-USER-ID
          in: header
          description: >-
            Sent by the trusted gateway. When present it **overrides** any
            `userId` in the body.
          required: false
          schema:
            $ref: '#/components/schemas/UserId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Wallets_createUser_Response_200'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict — a wallet already exists for a derived address.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: >-
            Service Unavailable — this deployment is not configured for that
            chain. Permanent, not a transient outage: do not retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                password:
                  $ref: '#/components/schemas/Password'
                existingSeed:
                  $ref: '#/components/schemas/Mnemonic'
              required:
                - password
servers:
  - url: https://your-endpoint.example.com
    description: >-
      Placeholder. Each client is issued its own base URL — there is no shared
      public host. Replace this with the endpoint you were given.
components:
  schemas:
    UserId:
      type: string
      description: 24-character hex id, returned by `/create`.
      title: UserId
    Password:
      type: string
      description: >-
        Keystore password (AES-256-GCM, scrypt KDF). Unrecoverable — required by
        `/send` and `/extend`.
      title: Password
    Mnemonic:
      type: string
      description: bip39 seed phrase, validated with `bip39.validateMnemonic`.
      title: Mnemonic
    AddressMap:
      type: object
      additionalProperties:
        type: string
      description: One address per chain the user holds a wallet on.
      title: AddressMap
    CreatePostResponsesContentApplicationJsonSchemaResult:
      type: object
      properties:
        userId:
          $ref: '#/components/schemas/UserId'
        mnemonic:
          type: string
          description: >-
            The bip39 seed phrase. Returned **only** on a create that generated
            or imported a new wallet set, and never stored in plaintext. Absent
            when an existing user was adopted.
        addresses:
          $ref: '#/components/schemas/AddressMap'
      required:
        - userId
        - addresses
      title: CreatePostResponsesContentApplicationJsonSchemaResult
    RequestId:
      type: string
      description: Echo of the inbound `X-Request-Id`, or a generated one.
      title: RequestId
    Wallets_createUser_Response_200:
      type: object
      properties:
        result:
          $ref: >-
            #/components/schemas/CreatePostResponsesContentApplicationJsonSchemaResult
        requestId:
          $ref: '#/components/schemas/RequestId'
      required:
        - result
        - requestId
      title: Wallets_createUser_Response_200
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: Safe, client-facing message. Internal detail never leaks here.
        error:
          type: string
          description: The HTTP status code, as a string.
        requestId:
          $ref: '#/components/schemas/RequestId'
      required:
        - message
        - error
        - requestId
      title: ErrorResponse
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A 15-minute token from `/auth`. Required on every endpoint except
        `/auth`.

```

## Examples

### Generate a new seed



**Request**

```json
{
  "password": "changeme123"
}
```

**Response**

```json
{
  "result": {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "addresses": {
      "BITCOIN": "bc1q5psk2q8t4x495ap75zghxmyvlmk59lr2u93r6j",
      "BNB": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
      "ETHEREUM": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
      "POLYGON": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
      "SOLANA": "EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d",
      "TRON": "THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt"
    },
    "mnemonic": "<your 12-word seed phrase — returned once, never again>"
  },
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python Generate a new seed
import requests

url = "https://your-endpoint.example.com/create"

payload = { "password": "changeme123" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Generate a new seed
const url = 'https://your-endpoint.example.com/create';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"password":"changeme123"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Generate a new seed
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/create"

	payload := strings.NewReader("{\n  \"password\": \"changeme123\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Generate a new seed
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"password\": \"changeme123\"\n}"

response = http.request(request)
puts response.read_body
```

```java Generate a new seed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/create")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"password\": \"changeme123\"\n}")
  .asString();
```

```php Generate a new seed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/create', [
  'body' => '{
  "password": "changeme123"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Generate a new seed
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/create");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"password\": \"changeme123\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a new seed
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["password": "changeme123"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/create")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Import an existing seed — Imported



**Request**

```json
{
  "password": "changeme123",
  "existingSeed": "<your 12-word seed phrase — returned once, never again>"
}
```

**Response**

```json
{
  "result": {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "addresses": {
      "BITCOIN": "bc1q5psk2q8t4x495ap75zghxmyvlmk59lr2u93r6j",
      "BNB": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
      "ETHEREUM": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
      "POLYGON": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
      "SOLANA": "EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d",
      "TRON": "THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt"
    },
    "mnemonic": "<your 12-word seed phrase — returned once, never again>"
  },
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python Import an existing seed — Imported
import requests

url = "https://your-endpoint.example.com/create"

payload = {
    "password": "changeme123",
    "existingSeed": "<your 12-word seed phrase — returned once, never again>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Import an existing seed — Imported
const url = 'https://your-endpoint.example.com/create';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"password":"changeme123","existingSeed":"<your 12-word seed phrase — returned once, never again>"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Import an existing seed — Imported
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/create"

	payload := strings.NewReader("{\n  \"password\": \"changeme123\",\n  \"existingSeed\": \"<your 12-word seed phrase — returned once, never again>\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Import an existing seed — Imported
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"password\": \"changeme123\",\n  \"existingSeed\": \"<your 12-word seed phrase — returned once, never again>\"\n}"

response = http.request(request)
puts response.read_body
```

```java Import an existing seed — Imported
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/create")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"password\": \"changeme123\",\n  \"existingSeed\": \"<your 12-word seed phrase — returned once, never again>\"\n}")
  .asString();
```

```php Import an existing seed — Imported
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/create', [
  'body' => '{
  "password": "changeme123",
  "existingSeed": "<your 12-word seed phrase — returned once, never again>"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Import an existing seed — Imported
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/create");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"password\": \"changeme123\",\n  \"existingSeed\": \"<your 12-word seed phrase — returned once, never again>\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Import an existing seed — Imported
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "password": "changeme123",
  "existingSeed": "<your 12-word seed phrase — returned once, never again>"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/create")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Import an existing seed — Adopted an existing user (no mnemonic returned)



**Request**

```json
{
  "password": "changeme123",
  "existingSeed": "<your 12-word seed phrase — returned once, never again>"
}
```

**Response**

```json
{
  "result": {
    "userId": "66b1f0c23d4e4a5b9c6d7e8f",
    "addresses": {
      "BITCOIN": "bc1q5psk2q8t4x495ap75zghxmyvlmk59lr2u93r6j",
      "BNB": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
      "ETHEREUM": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
      "POLYGON": "0xc0c548339ee2af89c078200cabd1b7c7b47d911a",
      "SOLANA": "EB81pobCpSX16xKeuwYyNMDuZEcpWuHcmimQ9LbdT63d",
      "TRON": "THxvJmtZghePy5XqDE7HKawvFAsAgxcWZt"
    }
  },
  "requestId": "b7a1f0c2-3d4e-4a5b-9c6d-7e8f90a1b2c3"
}
```

**SDK Code**

```python Import an existing seed — Adopted an existing user (no mnemonic returned)
import requests

url = "https://your-endpoint.example.com/create"

payload = {
    "password": "changeme123",
    "existingSeed": "<your 12-word seed phrase — returned once, never again>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Import an existing seed — Adopted an existing user (no mnemonic returned)
const url = 'https://your-endpoint.example.com/create';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"password":"changeme123","existingSeed":"<your 12-word seed phrase — returned once, never again>"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Import an existing seed — Adopted an existing user (no mnemonic returned)
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://your-endpoint.example.com/create"

	payload := strings.NewReader("{\n  \"password\": \"changeme123\",\n  \"existingSeed\": \"<your 12-word seed phrase — returned once, never again>\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Import an existing seed — Adopted an existing user (no mnemonic returned)
require 'uri'
require 'net/http'

url = URI("https://your-endpoint.example.com/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"password\": \"changeme123\",\n  \"existingSeed\": \"<your 12-word seed phrase — returned once, never again>\"\n}"

response = http.request(request)
puts response.read_body
```

```java Import an existing seed — Adopted an existing user (no mnemonic returned)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://your-endpoint.example.com/create")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"password\": \"changeme123\",\n  \"existingSeed\": \"<your 12-word seed phrase — returned once, never again>\"\n}")
  .asString();
```

```php Import an existing seed — Adopted an existing user (no mnemonic returned)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-endpoint.example.com/create', [
  'body' => '{
  "password": "changeme123",
  "existingSeed": "<your 12-word seed phrase — returned once, never again>"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Import an existing seed — Adopted an existing user (no mnemonic returned)
using RestSharp;

var client = new RestClient("https://your-endpoint.example.com/create");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"password\": \"changeme123\",\n  \"existingSeed\": \"<your 12-word seed phrase — returned once, never again>\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Import an existing seed — Adopted an existing user (no mnemonic returned)
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "password": "changeme123",
  "existingSeed": "<your 12-word seed phrase — returned once, never again>"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://your-endpoint.example.com/create")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```