Dinakel
Why Dinakel?How it worksGatewayMerchantUser Guide
User Guide
User GuideGatewayMerchantAPI Key
API key statusMerchant statusAvailable currenciesDonation gatewayCreate invoiceInvoice status

Login

Login

🔑API Key Status API

This endpoint checks only whether the supplied API key is active.

Note:

Send the API key in the Authorization header using the Bearer scheme. Missing, invalid, revoked, and expired keys receive the same generic 401 Unauthorized response.

  • 🔹 This API requires anAPI Keyfor authentication.
  • 🔹 The API key must be sent viaheaderand query parameters are no longer used.
Server-to-server

Backend integration examples

Choose your backend language. Every example reads secret credentials only from environment variables.

API key stays server-side
Node.js 18+ · native fetch
const response = await fetch("https://api.dinakel.com/api/gateway/v1/api-key/status", {
    method: "GET"
    headers: {
      Authorization: `Bearer ${process.env.DINAKEL_API_KEY}`,
      Accept: "application/json"
    }
});

const result = await response.json();
if (!response.ok) throw new Error(result.message || "Dinakel request failed");
console.log(result);
DINAKEL_API_KEYMerchant secret API key; keep it on the server only

💡 Example Request


GET https://api.dinakel.com/api/gateway/v1/api-key/status

Headers:
Authorization: Bearer <your_api_key>
          

Only an active, unexpired key receives HTTP 200. Revoked, expired, and unknown keys intentionally receive the same generic 401 response.

🔍 Example Response


{
  "status": true,
  "statusCode": 200,
  "data": {
    "apiKeyStatus": "active"
  }
}
          

⚠️ Error Handling

The API may return the following error responses:


{
  "status": false,
  "statusCode": 401,
  "message": "Unauthorized"
}
            

401 Unauthorized:The api_key header is missing or invalid. Ensure a valid key is provided.


{
  "status": false,
  "statusCode": 401,
  "message": "Unauthorized"
}
            

401 Unauthorized:The provided API key was not found. Double-check the key and try again.


{
  "status": false,
  "statusCode": 500,
  "message": "Internal server error"
}
            

500 Internal Server Error:An unexpected server error occurred. Try again later or contact support.

📖 Further Documentation

  • API Integrations
  • Common API Errors
Dinakel

Professional crypto payment infrastructure for modern businesses.

Secure commerce infrastructure

Services

  • Why Dinakel?
  • How it works
  • User Guide
  • Gateway
  • Merchant
  • API Key

Legal

  • Terms of use
  • Crypto policy
  • Privacy policy
  • Cookie policy
© 2026 DinakelSimple · Secure · Trackable