Skip to main content
Version: 2.0

Get Started

Set up an account on the 0x Dashboard to generate API keys, manage your apps, tap into more developer resources.

Follow these steps to get started, in less than 5 minutes!

1. Create a 0x Account​

To create an account on the 0x Dashboard, click Sign Up, enter your name, email address and password, and click Continue

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.

3. Tour the Dashboard​

3.1 Test API Key​

Once you've created a team, you'll be taken to the 0x Dashboard where you can create and manage live API keys, find build resources, and raise support requests.

To find a list of all networks supported by 0x, check out the 0x Cheat Sheet.

Your dashboard comes with a Test API key you can use to make sample requests. Give it a try by plugging it into the curl request and running that from your CLI to see a live Swap API quote request:

// Sell 100000 WETH for DAI
// Replace the API key in the header with your sample key

curl --request GET \
--url 'https://api.0x.org/swap/permit2/quote?sellAmount=100000000000000000000000&taker=0xa423C7Be031E988B25fb7Ec39b7906582f6858c6&chainId=1&sellToken=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&buyToken=0x6b175474e89094c44da98b954eedeac495271d0f' \
--header '0x-api-key: <YOUR_API_KEY>'

3.2 Create an App​

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


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.

info

You will still be able to update the 0x products this key can unlock even after the app has been created.

3.3 Reveal Your API Key​

On the final screen, copy 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:



// Sell 100000 WETH for DAI
// Replace the API key in the header with your sample key

curl --request GET \
--url 'https://api.0x.org/swap/permit2/quote?sellAmount=100000000000000000000000&taker=0xa423C7Be031E988B25fb7Ec39b7906582f6858c6&chainId=1&sellToken=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&buyToken=0x6b175474e89094c44da98b954eedeac495271d0f' \
--header '0x-api-key: <YOUR_API_KEY>'

4. Manage Your App​

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



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

For each App, you can see the following:

  1. Which 0x products are enabled for your API key - Swap API and Gasless API
  2. From API Key, see all the API keys associated with this app and create or delete keys.
  3. From Settings, change the 0x products enabled for this app. Set your 0x Explorer Tag. Change the App Name.
  4. 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.

  • Settings - You can see your full name, team name, and account email, as well as change your password.
  • Contact Support - Have a question? Reach out to our dev support team.
  • Docs - Jump into our developer docs and start building
  • Help - Need help? Check out our commonly asked questions and help center.
  • 0x Explorer - If you have a 0x Explorer tag setup, easily analyze your app's on-chain activity and transactions. Learn more about the 0x Explorer Tag.

6. Have a Question?​

If you are logged-in to the 0x Dashboard, you have a direct line to our team via the Intercom Messenger for Developer Support in the bottom right of the dashboard.

Intercom Messenger

Additionally, the 0x Help Center 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!

  • 🔄 Swap API
    • Easily add crypto trading into your app with a single API. Access 100+ exchanges and thousands of tokens with the Swap API.
  • ⛽ Gasless API
    • Simplify defi with end-to-end gasless transactions. Abstract away the complexities of token approvals and gas with Gasless API.
  • 📚 Dev Resources
    • Glossary, FAQs & Troubleshooting, Audits, Bounties, Legal Guide, White Paper