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

# Create a 0x API Key

> Set up an account on the [0x Dashboard](https://dashboard.0x.org/apps), get an API key, manage your apps, tap into more developer resources.

## 1. Create a 0x Account

To create an account on the [0x Dashboard](https://dashboard.0x.org/apps), click **Sign Up**, enter your name, email address and password, and click **Continue**

![0x Dashboard Sign-up](https://files.buildwithfern.com/0x.docs.buildwithfern.com/dcbe40cb255e4b079a3542cf60a1e1d5fad33f1e53960603fa08772fc6a4bdba/docs/assets/img/introduction/0x-dashboard-sign-up.png)

## 2. Create a Team

Once verified, you'll be prompted to create a team on 0x. Decide on a team name and select the type of project you are building. You can share this account with your teammates.

Inviting additional members to a Team is available to eligible integrators on
custom plans. To set up a custom plan, contact Support.

![0x Dashboard Create Team](https://files.buildwithfern.com/0x.docs.buildwithfern.com/cfa7adbe730586a3fc4bb8b2ca8cc6cec051ea85f2ee71565d0a5a83dad51682/docs/assets/img/introduction/0x-dashboard-create-team.png)

## 3. Tour the Dashboard

### 3.1 Create an App

Click **Create an app** to get a live API key that has access to multiple 0x products.

![0x Dashboard Create App](https://files.buildwithfern.com/0x.docs.buildwithfern.com/0f0bdb7b4feb654698951b07cb3f46657c13e78985e8f813a17b4a90f71e7362/docs/assets/img/introduction/0x-dashboard-create-an-app.png)

From the pop-up, enter your app's name and which 0x products (Swap API and Gasless API) should be enabled for this API key, then click **Continue**.

You can still update which 0x products this key can access even after the app
is created.

![0x Dashboard Create an App](https://files.buildwithfern.com/0x.docs.buildwithfern.com/5f9622159bca79cbec3c4e963d196e8dfc97ce23626a79e5c402b72a4eadb3cd/docs/assets/img/introduction/0x-dashboard-create-app-screen.png)

### 3.2 Reveal Your API Key

This key is unique and tied to your app. **Do not share it**. You can also create additional API keys for the app if you need them.

Your API keys will allow you to authenticate requests on 0x. Remember to specify the key in your requests via the `0x-api-key` header parameter:

![0x Dashboard Reval API Key](https://files.buildwithfern.com/0x.docs.buildwithfern.com/a3bbdf52db4e8379bfbf62dc7ffe41599f069891734b2ea164d32dfb32d1dbb9/docs/assets/img/introduction/0x-dashboard-copy-api-key.png)

You can always find your API key again by selecting the desired App in the dashboard and revealing the API key.

### 3.3 Make Your First 0x API Call

Run this curl request to see a live quote response for selling 100,000 WETH to buy DAI on Ethereum Mainnet:

```bash
// Sell 100,000 WETH for DAI
// Taker address is vitalik.eth
// Replace "YOUR_API_KEY" with your actual API key from https://dashboard.0x.org/create-account
curl --request GET \
  --url "https://api.0x.org/swap/permit2/quote?sellAmount=100000000000000000000000&taker=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&chainId=1&sellToken=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&buyToken=0x6b175474e89094c44da98b954eedeac495271d0f" \
  --header "0x-api-key: YOUR_API_KEY" \
  --header "0x-version: v2"
```

You will receive a response that looks like this:

#### Expand to see response

```bash
{
    "blockNumber": "21876249",
    "buyAmount": "145110588712348756365465945",
    "buyToken": "0x6b175474e89094c44da98b954eedeac495271d0f",
    "fees": {
        "integratorFee": null,
        "zeroExFee": {
            "amount": "207515265570963324735062",
            "token": "0x6b175474e89094c44da98b954eedeac495271d0f",
            "type": "volume"
        },
        "gasFee": null
    },
    "issues": {
        "allowance": {
            "actual": "0",
            "spender": "0x000000000022d473030f116ddee9f6b43ac78ba3"
        },
        "balance": {
            "token": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "actual": "16320309787715287566",
            "expected": "100000000000000000000000"
        },
        "simulationIncomplete": false,
        "invalidSourcesPassed": []
    },
    "liquidityAvailable": true,
    "minBuyAmount": "143659482825225268801805400",
    "permit2": {
        "type": "Permit2",
        "hash": "0xafb2c83591d83ec04d0792eaa00d36f5a509dfab6666fa787e310afa276bf379",
        "eip712": {
            "types": {
                "PermitTransferFrom": [
                    {
                        "name": "permitted",
                        "type": "TokenPermissions"
                    },
                    {
                        "name": "spender",
                        "type": "address"
                    },
                    {
                        "name": "nonce",
                        "type": "uint256"
                    },
                    {
                        "name": "deadline",
                        "type": "uint256"
                    }
                ],
                "TokenPermissions": [
                    {
                        "name": "token",
                        "type": "address"
                    },
                    {
                        "name": "amount",
                        "type": "uint256"
                    }
                ],
                "EIP712Domain": [
                    {
                        "name": "name",
                        "type": "string"
                    },
                    {
                        "name": "chainId",
                        "type": "uint256"
                    },
                    {
                        "name": "verifyingContract",
                        "type": "address"
                    }
                ]
            },
            "domain": {
                "name": "Permit2",
                "chainId": 1,
                "verifyingContract": "0x000000000022d473030f116ddee9f6b43ac78ba3"
            },
            "message": {
                "permitted": {
                    "token": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                    "amount": "100000000000000000000000"
                },
                "spender": "0x0d0e364aa7852291883c162b22d6d81f6355428f",
                "nonce": "2241959297937691820908574931991559",
                "deadline": "1739918089"
            },
            "primaryType": "PermitTransferFrom"
        }
    },
    "route": {
        "fills": [
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "source": "Uniswap_V3",
                "proportionBps": "250"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "source": "Uniswap_V3",
                "proportionBps": "749"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "source": "Curve",
                "proportionBps": "250"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "source": "Curve",
                "proportionBps": "250"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "source": "SushiSwap",
                "proportionBps": "500"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "source": "Uniswap_V2",
                "proportionBps": "251"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "source": "Uniswap_V3",
                "proportionBps": "250"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "source": "SushiSwap",
                "proportionBps": "250"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "source": "Uniswap_V2",
                "proportionBps": "500"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "Uniswap_V3",
                "proportionBps": "499"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "Uniswap_V3",
                "proportionBps": "749"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "Uniswap_V3",
                "proportionBps": "249"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "Uniswap_V2",
                "proportionBps": "1583"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "SushiSwap",
                "proportionBps": "499"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "Fluid",
                "proportionBps": "249"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "Uniswap_V4",
                "proportionBps": "250"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xf939e0a03fb07f59a73314e73794be0e57ac1b4e",
                "source": "Curve",
                "proportionBps": "250"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "source": "Uniswap_V3",
                "proportionBps": "250"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "source": "Uniswap_V3",
                "proportionBps": "750"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "source": "Uniswap_V3",
                "proportionBps": "250"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "source": "PancakeSwap_V3",
                "proportionBps": "250"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "source": "Uniswap_V2",
                "proportionBps": "750"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "source": "0x_RFQ",
                "proportionBps": "83"
            },
            {
                "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "source": "0x_RFQ",
                "proportionBps": "84"
            },
            {
                "from": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "to": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "source": "Curve",
                "proportionBps": "1942"
            },
            {
                "from": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "to": "0xf939e0a03fb07f59a73314e73794be0e57ac1b4e",
                "source": "Curve",
                "proportionBps": "323"
            },
            {
                "from": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "to": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "source": "Uniswap_V3",
                "proportionBps": "86"
            },
            {
                "from": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "to": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "source": "0x_RFQ",
                "proportionBps": "21"
            },
            {
                "from": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "to": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "source": "0x_RFQ",
                "proportionBps": "21"
            },
            {
                "from": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "to": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "source": "0x_RFQ",
                "proportionBps": "22"
            },
            {
                "from": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "to": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "source": "0x_RFQ",
                "proportionBps": "57"
            },
            {
                "from": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "to": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "source": "0x_RFQ",
                "proportionBps": "57"
            },
            {
                "from": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "Uniswap_V3",
                "proportionBps": "38"
            },
            {
                "from": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "Uniswap_V3",
                "proportionBps": "1696"
            },
            {
                "from": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "Curve",
                "proportionBps": "343"
            },
            {
                "from": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "0x_RFQ",
                "proportionBps": "133"
            },
            {
                "from": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "0x_RFQ",
                "proportionBps": "19"
            },
            {
                "from": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "0x_RFQ",
                "proportionBps": "58"
            },
            {
                "from": "0xf939e0a03fb07f59a73314e73794be0e57ac1b4e",
                "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "source": "Curve",
                "proportionBps": "573"
            },
            {
                "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "to": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "source": "Maker_PSM",
                "proportionBps": "6944"
            }
        ],
        "tokens": [
            {
                "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "symbol": "WETH"
            },
            {
                "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "symbol": "USDT"
            },
            {
                "address": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "symbol": "WBTC"
            },
            {
                "address": "0xf939e0a03fb07f59a73314e73794be0e57ac1b4e",
                "symbol": "crvUSD"
            },
            {
                "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "symbol": "USDC"
            },
            {
                "address": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "symbol": "DAI"
            }
        ]
    },
    "sellAmount": "100000000000000000000000",
    "sellToken": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "tokenMetadata": {
        "buyToken": {
            "buyTaxBps": "0",
            "sellTaxBps": "0"
        },
        "sellToken": {
            "buyTaxBps": "0",
            "sellTaxBps": "0"
        }
    },
    "totalNetworkFee": "54779430334381092",
    "transaction": {
        "to": "0x0d0e364aa7852291883c162b22d6d81f6355428f",
        "data": "0x1fff991f000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa...truncated...",
        "gas": "53043726",
        "gasPrice": "1032722142",
        "value": "0"
    },
    "zid": "0x4394c57eeb18c52d02b7516f"
}
```

This is a valid unsigned Ethereum transaction that can be [signed and submitted directly to a node](/docs/introduction/quickstart/swap-tokens-with-0x-swap-api#4-submit-the-transaction) to complete the swap. Read more about the parameters [here](https://docs.0x.org/api-reference/evm-ap-is/swap/allowanceholder-getprice).

To find a list of all networks supported by 0x, check out the [0x Cheat Sheet](https://docs.0x.org/docs/core-concepts/0x-cheat-sheet).

## 4. Manage Your App

From the main dashboard screen, you can see all the apps you have created:

![0x Dashboard Home](https://files.buildwithfern.com/0x.docs.buildwithfern.com/94e2caa7fcd3a2fb7c6b73e980a9258e8fc9837da73b47d65950ff89d3413f6e/docs/assets/img/introduction/0x-dashboard-home.png)

Click on an App to open up details about its API request health:

![0x Dashboard Home](https://files.buildwithfern.com/0x.docs.buildwithfern.com/3d08cd3c2372ddbe322f6c663cdd5a5dce03b962f25cbd1c917cbca776db1515/docs/assets/img/introduction/0x-dashboard-demo-app-annotated.png)

For each App, you can see the following:

Which **0x products are enabled for your API key** - Swap API and Gasless
API

From **API Key**, **see all the API keys** associated with this app and
**create or delete keys**.

From **Settings**, change the 0x products enabled for this app. Set your
**0x Explorer Tag**. Change the **App Name**.

Toggle to view the **total API requests** and the **API error rate** for
this app.

## 5. Manage Your Account

You can find additional settings to manage your account from **Your Account Avatar** in the top-right corner.

![0x Dashboard Settings](https://files.buildwithfern.com/0x.docs.buildwithfern.com/a512e6e339ef0fa0f3694cb0d115f3b2ed4aaa79d1ec660b9d2a50f0f98f7dbc/docs/assets/img/introduction/0x-dashboard-settings.png)

* **Settings** - You can see your full name, team name, and account email, as well as change your password.
* **Docs** - Jump into our [developer docs](https://docs.0x.org/docs/introduction/welcome) and start building
* **Help Center** - Need help? Check out our commonly asked questions in the help center.
* **Trade Analytics API** - [Trade Analytics API](https://docs.0x.org/evm/trade-analytics-api/introduction) offers programmatic access to historical trades initiated through your apps via 0x Swap and Gasless APIs. Formatted for direct analytics use, this data enables you to derive actionable insights and business intelligence from your app's trading activity.

The response includes comprehensive details for each trade, including the transaction hash, allowing you to verify the data on-chain.

## 6. Have a Question?

If you are logged-in to the [0x Dashboard](https://dashboard.0x.org/apps), you have a direct line to our team via the Pylon Messenger for Developer Support in the bottom right of the dashboard.

![Pylon Messenger](file:b44deb6f-b35b-4185-9dc7-a19107429e76 "Pylon Messenger demo")

Additionally, the [0x Help Center](https://help.0x.org/) is a great place to start if you have questions about 0x subscriptions, integration best practicies, and troubleshooting guides.

## 7. Start Building

Now that you have a live API key, dive into our building resources and start building!

#### [Build with AI](/docs/introduction/develop-with-ai/agent-skills)

Accelerate your 0x integration using 0x AI tools - Agent Skills, MCP Server,
and more.

#### [Swap API](/evm/0x-swap-api/introduction)

Easily add crypto trading with one API, accessing 150+ exchanges and thousands
of tokens.

#### [Gasless API](/evm/gasless-api/introduction)

Enable seamless DeFi transactions by abstracting gas and token approvals.

#### [Trade Analytics API](/evm/trade-analytics-api/introduction)

Access actionable insights from historical trades executed through your apps.

#### [Core Concepts](/docs/core-concepts/introduction-to-0x)

Learn about the fundamentals of 0x.