Deben API Key

Learn how to create, manage, and use API keys within the Deben Portal

API keys allow you to securely access Deben APIs from external systems or applications. Each key is linked to your account and restricted by specific scopes that define what data and actions the key can access.



🧩 1. Prerequisites

Before creating an API key, ensure that:

  • You have a valid Deben Portal account
  • Your account has Developer or Administrator permissions
  • You are using a standard browser mode (not private/incognito) with cookies enabled

πŸ” 2. Logging into the Deben Portal

  1. Visit the Deben Portal
  2. Log in using your registered credentials
  3. From the sidebar menu, navigate to Developer β†’ API Keys

πŸͺ„ 3. Creating an API Key

To create a new API key:

  1. Click Add Key in the top-right corner
  2. In the Add API Key dialog:
    • Key Name β†’ Provide a descriptive name (e.g., ERP Integration Key)
    • Scopes β†’ Select one or more scopes your integration needs:
      • Beneficiaries
      • Ledger Entries
      • Merchant Orders
      • Payment Requests
    • Expires At β†’ Set the expiration date/time
    • Description β†’ Optionally describe the purpose of this key
  3. Click Add to generate your key

πŸ“‹ 4. Viewing Your API Key

Once created, a confirmation dialog appears:

  • Your API key will be displayed only once
  • Copy it immediately or click Save as File to securely store it
  • After closing, the key will not be viewable again
⚠️

Important: If you lose your key, you must generate a new one.


🧾 5. API Key Details

Each API key record includes:

  • Key Name
  • Created By and Email
  • Expiration Date
  • Daily and Monthly Usage Limits
  • Assigned Scopes

You can revoke any active key at any time by clicking Revoke next to it.



πŸ›‘οΈ 6. Security Best Practices

  • πŸ”’ Treat your API key like a password β€” never share or expose it publicly
  • πŸ” Rotate keys regularly and revoke unused or compromised keys
  • 🎯 Use scoped keys β€” grant only the permissions your integration requires
  • 🌐 Always use HTTPS when calling Deben APIs
  • 🧱 Store keys securely using environment variables or secret managers (e.g., AWS Secrets Manager, Google Secret Manager)

Following these best practices ensures your integrations remain safe and compliant.


🧹 7. Revoking an API Key

If you need to deactivate or remove an existing key:

  1. Navigate to Developer β†’ API Keys in the Deben Portal
  2. Locate the key you want to deactivate
  3. Click Revoke
  4. Confirm your action when prompted
πŸ”•

Once revoked, the key becomes inactive immediately and cannot be reused for future API requests.


πŸ§ͺ 8. Example Integration (cURL)

Here’s an example of making a Deben API request using your API key:

curl -X GET "https://api.deben.io/v1/merchant-orders" \
  -H "Authorization: ApiKey dbn_QiNGZI40L0QyPqPMUXKhp2tTAYNsFJuaNhLrxu0q7HE" \
  -H "Content-Type: application/json"