> ## Documentation Index
> Fetch the complete documentation index at: https://dexbuilder.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DexBuilder Platform API overview

> Use the DexBuilder Platform REST API for Broker asset configuration, user queries, deposits, and withdrawals.

The DexBuilder Platform API lets Brokers query asset settings and user balances and support onchain deposits and withdrawals.

## Base URL

Production Base URL:

```text theme={null}
https://api.dexbuilder.com
```

Endpoint paths begin with `/api/v4/dexbuilder`. For example, `GET /api/v4/dexbuilder/assets` lists supported assets.

Every endpoint requires a Broker API Key. See [Broker API Key and signing](https://dexbuilder.mintlify.site/en/api-reference/common/broker-authentication.md). User-level endpoints also require X-User-Wallet-Address; see [Access on behalf of a user](https://dexbuilder.mintlify.site/en/api-reference/common/sub-user-wallet.md).

## Endpoint groups

| Group | Capabilities |
| - | - |
| Asset configuration | Assets, networks, availability, fixed fees, and withdrawal limits |
| User | User information, bound wallets, Vault balance, and fund statistics |
| Deposit | Fee estimate, signing data, status, and history |
| Withdrawal | Signing data, submission, status, history, and Solana ATA creation |

Asset-configuration endpoints read Broker settings and do not require a user wallet. User, deposit, and withdrawal endpoints require `X-User-Wallet-Address`. Some endpoints also require x-perp-device-type or Idempotency-Key; see each endpoint's request parameters.

## Responses and errors

Successful business responses contain code, message, data, and trace\_id. code=0 indicates success. The data structure is defined in each endpoint's OpenAPI response model.

Errors may include a machine-readable label. Some downstream business and risk-control errors use HTTP 200, so check code or label as well as the HTTP status. Common labels include INVALID\_ARGUMENT, MISSING\_REQUIRED\_HEADER, USER\_NOT\_FOUND, INVALID\_ADDRESS, INVALID\_DEVICE\_TYPE, PROJECT\_ACCESS\_DENIED, PRODUCT\_DISABLED, BUSINESS\_ERROR, and RISK\_CONTROL\_REJECTED. See the endpoint model and [shared API conventions](https://dexbuilder.mintlify.site/en/api-reference/common/overview.md) for interpretation.

An accepted withdrawal submission is not an onchain final state. Query the corresponding status endpoint to determine the final result of a deposit or withdrawal.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.