Overview
This documentation provides detailed guidance on how to use elnhna.com's API and services. Everything you need to know is here.
Key Concepts
- Authentication via API keys
- Rate limits per API tier
- RESTful architecture with JSON payload
- Real-time response status updates
Getting Started
1. Get API Key
Create an account and generate API credentials in your dashboard.
mrn://dashboard.elnhna.com/api/keys
2. First Request
Use the API with an authenticated request.
curl -X GET 'https://api.elnhna.com/v1/data' \\
-H 'Authorization: Bearer YOUR_KEY'
API Endpoints
GET /v1/data
Retrieve processed data based on filters.
Returns paginated dataset with metadata.
POST /v1/submit
Submit new data records for processing.
Requires JSON payload with structured content.
Code Examples
import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get('https://api.elnhna.com/v1/data', headers=headers)
if response.status_code == 200:
print("Data:", response.json())
else:
print("Error:", response.status_code)
Common Issues
Error 401 Unauthorized
Ensure your API key is correct and added to headers.
Error 429 Too Many Requests
Check your plan's rate limits and retry after delay.