---
title: "Generate a wallet user's main-account trading key"
method: POST
path: "/builder/web3/api-key"
tags: ["builder"]
---

# Generate a wallet user's main-account trading key

`POST /builder/web3/api-key`

## Request

- Base URL: `https://api.qfex.com`
- URL: `https://api.qfex.com/builder/web3/api-key`
- Auth: API key in header `x-qfex-hmac-signature` and API key in header `x-qfex-nonce` and API key in header `x-qfex-public-key` and API key in header `x-qfex-timestamp`

Requires the builder's existing API key with register_user. The signed wallet message must authorize the caller's active builder code and be issued within ten minutes. Replaces the wallet user's previous builder-{builder-username} key by deleting the previous key. The key permits trading, account and deposit-address reads, and withdrawals only to the user's registered addresses.

## Query parameters

- `api_version` string

## Headers

- `x-qfex-public-key` string, required

## Request body

- BuilderWalletBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `message` string, required
  - `signature` string, required

## Response `201`

Created

- BuilderWalletKey
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `account_id` string, required
  - `public_key` string, required
  - `secret_key` string, required
  - `user_id` string, required

## Other responses

- `default`: Error

## Changes

- **2026-11-03** `0c23dfc24573`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/qfex/apis/qfex-rest-api/changes/builder/web3/api-key/post.md)

---

[API](https://skmtc.dev/qfex/apis/qfex-rest-api.md) - [All operations](https://skmtc.dev/qfex/apis/qfex-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qfex/apis/qfex-rest-api/revisions/0c23dfc24573?raw)
