Developer Platform Guide: Getting Started with DEX API

ยท

Introduction to the Developer Platform

This guide helps you efficiently build applications using our developer management platform. Learn about its core features and best practices for optimal usage.

Registration & Login Process

  1. Navigate to Developer Center and select Developer Portal.
  2. Click Connect Wallet to create/login. We recommend OKX Web3 Wallet for seamless access, though other wallets are supported.
  3. After wallet selection, click Verify. Confirm the signature request in your wallet pop-up.

๐Ÿ‘‰ Discover advanced wallet integration techniques

You'll now access the developer dashboard with a pre-created default project for exploration.

Generating New API Keys

  1. Locate your project and click the "API Key" button
  2. Select "Create API Key"
  3. Provide:

    • Custom key name
    • Secure passphrase (irrecoverable if lost)
    • Click "Generate"

Account Security Setup

Email & Mobile Binding

  1. Navigate to "Settings" tab
  2. Complete these verifications:

    • Email address
    • Mobile number (regional restrictions may apply)
  3. Pass CAPTCHA authentication

Important Note: Some regions may have service limitations for DEX API functionality.

Secret Key Management

Retrieve your secret key for API requests by:

Core Concepts Explained

TermPurpose
API KeyUnique application identifier for API interaction
Secret KeySecondary authentication token for enhanced security
PassphraseEncrypts secret keys server-side; required for modifications

๐Ÿ‘‰ Master API security best practices

FAQ Section

Q: Can I recover a lost passphrase?
A: No, passphrases cannot be recovered. Store them securely offline.

Q: Why can't I select my country for mobile binding?
A: Regional restrictions may limit DEX API availability in certain locations.

Q: How many API keys can I generate per project?
A: There's no strict limit, but we recommend rotating keys periodically.

Q: What's the difference between API key and secret key?
A: The API key identifies your application, while the secret key authenticates requests.

Q: Can I use the same key across multiple projects?
A: We recommend project-specific keys for better security isolation.

Q: How often should I rotate my API keys?
A: Best practice suggests every 3-6 months or after team member changes.