๐Ÿ”‘ Self-Service API Keys

Connect your wallet to manage API keys

๐Ÿ‘† Click "Connect Wallet" in the header to get started

๐Ÿงช Test Your API Key

Copy the script below, replace YOUR_API_KEY_HERE with your actual API key, and run it to test your access.

PowerShell
$apiKey = "YOUR_API_KEY_HERE"
$uri = "https://dapp-mvp-boilerplate.onrender.com/api/binance/prices"

try {
    $response = Invoke-WebRequest -Uri $uri -Headers @{'x-api-key'=$apiKey} -Method GET
    
    Write-Host "โœ… SUCCESS!" -ForegroundColor Green
    Write-Host ""
    Write-Host "Status Code: $($response.StatusCode)" -ForegroundColor Cyan
    Write-Host ""
    Write-Host "Rate Limit Headers:" -ForegroundColor Yellow
    Write-Host "  X-RateLimit-Limit: $($response.Headers['X-RateLimit-Limit'])"
    Write-Host "  X-RateLimit-Remaining: $($response.Headers['X-RateLimit-Remaining'])"
    Write-Host "  X-RateLimit-Reset: $($response.Headers['X-RateLimit-Reset'])"
    Write-Host ""
    Write-Host "Response Content:" -ForegroundColor Yellow
    Write-Host $response.Content
    
} catch {
    Write-Host "โŒ ERROR!" -ForegroundColor Red
    Write-Host ""
    Write-Host "Error Message: $($_.Exception.Message)" -ForegroundColor Red
}

How to use:

  1. Click the Copy button above
  2. Paste into your terminal or code editor
  3. Replace YOUR_API_KEY_HERE with your actual API key
  4. Run the script to verify your API access

Expected Output:

โœ… SUCCESS!

Status Code: 200

Rate Limit: 120

Remaining: 119

Response: {"success": true, "count": 239, "data": [...]}

Developer Portal

Unified API Key Access

One developer API key gives you access to our pricing and market data endpoints at https://dapp-mvp-boilerplate.onrender.com. Use it with the `x-api-key` header or `Authorization: ApiKey <key>`.

How it works

We issue a single API key to your project and manage access centrally. The backend stores only a salted SHA-256 hash of the key, so the raw key is never retained after issuance.

  • Developer keys are issued via admin-signed requests.
  • Raw keys appear once on creation.
  • Supported headers: x-api-key or Authorization: ApiKey <key>.
  • Existing routes remain unchanged unless explicitly protected.

Protected endpoints

These routes require your issued API key:

  • /api/binance
  • /api/coinbase
  • /api/coinranking
  • /api/1inch
  • /api/klines
  • /api/oracle
  • /api/pyth
  • /api/aggregator

Admin issuance

Key creation and revocation are protected by admin wallet signature proof. The admin must sign a message that matches the expected action:

ADMIN_API_KEY_MANAGEMENT

Send the signed payload to POST /api/api-keys. The response returns the raw key once in this format:

<key-id>.<secret>

Example requests

Using x-api-key header:

GET /api/binance/prices HTTP/1.1
Host: dapp-mvp-boilerplate.onrender.com
x-api-key: <your_api_key>

# Example with curl:
curl -H "x-api-key: YOUR_API_KEY" \
  https://dapp-mvp-boilerplate.onrender.com/api/binance/prices

Using Authorization header:

GET /api/coinbase/prices HTTP/1.1
Host: dapp-mvp-boilerplate.onrender.com
Authorization: ApiKey <your_api_key>

# Example with curl:
curl -H "Authorization: ApiKey YOUR_API_KEY" \
  https://dapp-mvp-boilerplate.onrender.com/api/coinbase/prices

Rate limiting

All API responses include rate limit headers to help you track your usage:

If you exceed your rate limit, you'll receive a 429 Too Many Requests response. Wait for the window to reset before making additional requests.

Error responses

The API uses standard HTTP status codes:

All error responses include a JSON body with details:

{
  "success": false,
  "error": "Rate limit exceeded"
}

Need help?

If you want, I can also add a small admin dashboard page for key issuance and revocation flows.

Back to Account