Overview
The Elneuro API provides programmatic access to our analytics platform, enabling you to integrate statistical analysis, machine learning, and quality control capabilities directly into your applications and workflows.
API Access Requirements
API access is available for Pro and Enterprise subscribers. Free tier users can explore the API documentation but cannot make authenticated requests.
Base URL
Request Format
- All requests use HTTPS
- Request bodies should be JSON with
Content-Type: application/json - Responses are JSON formatted
- Use UTF-8 encoding for all strings
Authentication
The Elneuro API uses JWT (JSON Web Tokens) for authentication. Include your token in the Authorization header of all requests.
Obtaining an API Token
- Log in to your Elneuro account
- Navigate to Account Settings > API Access
- Click "Generate API Key"
- Copy and securely store your token
Using Your Token
Security Best Practices
- Never commit API tokens to version control
- Use environment variables to store tokens
- Rotate tokens periodically
- Use separate tokens for development and production
Rate Limits
API requests are rate-limited based on your subscription tier:
| Tier | Requests/Minute | Requests/Day |
|---|---|---|
| Pro | 60 | 10,000 |
| Enterprise | 300 | 100,000 |
Rate limit information is included in response headers:
Error Handling
The API uses standard HTTP status codes and returns detailed error information:
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
Error Response Format
Data Management
Upload a dataset for analysis. Supports CSV and Excel formats.
Request Body (multipart/form-data)
| Parameter | Type | Description |
|---|---|---|
| file required | file | CSV or Excel file (max 50MB) |
| name | string | Dataset name (auto-generated if not provided) |
Response
List all datasets associated with your account.
Response
Statistical Analysis
Compute descriptive statistics for specified columns.
Request Body
Response
Perform hypothesis tests (t-test, ANOVA, chi-square, etc.).
Request Body
Machine Learning
Train a machine learning model on your dataset.
Request Body
Supported Model Types
linear_regression,ridge,lassologistic_regressiondecision_tree,random_forest,gradient_boostingsvm,knnneural_network
Generate predictions using a trained model.
Request Body
Control Charts (SPC)
Generate a control chart with calculated limits.
Request Body
Chart Types
xbar_r- X-bar and R chartxbar_s- X-bar and S charti_mr- Individuals and Moving Rangep_chart- Proportion chartnp_chart- Count chartc_chart- Defects chartu_chart- Defects per unitcusum- CUSUM chartewma- EWMA chart
Python SDK
The official Python SDK provides a convenient interface to the Elneuro API.
Installation
Quick Start
Integrations
Database Connections
Connect directly to your data sources:
- PostgreSQL, MySQL, SQL Server
- Snowflake, BigQuery, Redshift
- MongoDB, Elasticsearch
BI Tool Integration
Embed Elneuro analytics in your dashboards:
- Tableau, Power BI
- Looker, Metabase
- Custom iframe embedding
Webhooks
Configure webhooks to receive notifications when analyses complete or thresholds are breached.