🔑API Key Status API
This API allows you to check the status of your API key. It returns information such as whether the API key is active, the associated protocol, and other details.
Note:
Always include a validapi_keyin the request headers. If the key is missing or invalid, you will receive a 404 Not Foundresponse.
- 🔹 This API requires anAPI Keyfor authentication.
- 🔹 The API key must be sent viaheaderand query parameters are no longer used.
💡 Example Request
GET https://core.dinakel.com/api/gateway/v1/api-key/status
Headers:
Authorization: Bearer <your_api_key>
🔍 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.