elnhaa

📘 Documentation

Comprehensive technical documentation and developer guides for our APIs and services.

Getting Started

Installation

You can install our SDKs using your preferred package manager:

npm install @elnhaa/sdk
# or
yarn add @elnhaa/sdk
                        

Initialize Library

import { ElnhaaSDK } from '@elnhaa/sdk';

const client = new ElnhaaSDK({
  apiKey: 'YOUR_API_KEY_HERE',
  environment: 'production' // or 'sandbox'
});

Make sure to store your API key securely and never expose it in the frontend.

🚀 API Reference

GET /api/v1/status

Check the health status of our services

Response Example

HTTP/1.1 200 OK
Content-Type: application/json

{
  "status": "operational",
  "timestamp": "2025-09-15T14:32:17Z"
}

POST Authentication endpoint for API access

Request Body

{
  "api_key": "your_api_key"
}

Response Example

{
  "token": "eyJhbGciOiJIUzI0I199",
  "expires_in": 3600,
  "valid_until": "2025-09-16T14:32:17Z"
}

🔧 Error Codes

Code Message Description
401 Unauthorized Authentication failed or credentials missing
403 Forbidden Invalid API key or missing permissions
429 Too Many Requests Rate limit exceeded, try again later
500 Internal Server Error Something went wrong on our end