Skip to main content

API Keys

Overview

API keys are used to authenticate your requests to the Dukka Wallet Service API. This guide explains how to generate, manage, and secure your API keys.

Generating API Keys

Requirements

  • Active Dukka account
  • Access to the Dukka dashboard
  • Proper permissions

Steps to Generate

  1. Log in to your Dukka dashboard
  2. Navigate to API Settings
  3. Click “Generate New API Key”
  4. Configure key permissions
  5. Save the key securely

Key Management

Best Practices

  • Store keys securely
  • Rotate keys regularly
  • Use different keys for different environments
  • Monitor key usage
  • Implement proper access controls

Key Types

  • Production keys
  • Sandbox keys
  • Test keys
  • Development keys

Security

Key Protection

  • Never expose keys in client-side code
  • Use environment variables
  • Implement proper key storage
  • Monitor key usage
  • Implement proper access controls

Key Rotation

  • Regular key rotation
  • Proper key retirement
  • Key backup procedures
  • Emergency key revocation

Usage

Authentication

  • Include key in request headers
  • Use proper authentication methods
  • Implement proper error handling
  • Monitor authentication failures

Headers

X-API-KEY: your_api_key_here

Monitoring

Usage Tracking

  • Monitor key usage
  • Track API calls
  • Monitor for suspicious activity
  • Implement proper logging

Alerts

  • Usage thresholds
  • Suspicious activity
  • Authentication failures
  • Rate limiting

Support

If you need help with API keys:
  1. Check the documentation
  2. Contact support
  3. Report issues on GitHub

Additional Resources