Integrations & APIs
Powerful APIs, webhooks, and SDKs to integrate SME Analytica's AI-powered business intelligence into your applications.
API Overview
SME Analytica provides a comprehensive RESTful API that allows you to access all platform features programmatically. Our API is designed with developers in mind, featuring clear documentation, consistent responses, and robust error handling.
RESTful API
Standard HTTP methods with JSON responses and comprehensive error handling
Secure Authentication
JWT-based authentication with API keys and role-based access control
Interactive Docs
Swagger/OpenAPI documentation with live testing capabilities
Core API Endpoints
Access all SME Analytica features through our comprehensive API
Authentication API
POST /api/v1/auth/login
User authentication and token generation
POST /api/v1/auth/register
New user registration
POST /api/v1/auth/refresh-token
Token refresh for extended sessions
Analysis API
POST /api/v1/analysis/new
Create new business analysis
GET /api/v1/analysis/history
Retrieve analysis history
GET /api/v1/analysis/{id}
Get specific analysis results
Dynamic Pricing API
GET /api/v1/analysis/pricing
Get current pricing recommendations
POST /api/v1/analysis/pricing
Request new pricing analysis
GET /api/v1/analysis/pricing/history
Historical pricing data
Profile & Subscription API
GET /api/v1/profile/me
Get user profile information
PUT /api/v1/profile/me
Update user profile
GET /api/v1/subscription
Subscription status and usage
Quick Start Guide
1. Authentication
Get your API access token
curl -X POST https://api.smeanalytica.dev/api/v1/auth/login \ -H "Content-Type: application/json" \ -d '{ "email": "your-email@example.com", "password": "your-password" }'
2. Create Analysis
Request a business analysis
curl -X POST https://api.smeanalytica.dev/api/v1/analysis/new \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "type": "sentiment", "data": { "business_name": "Your Business", "location": "Your Location" } }'
3. Get Results
Retrieve analysis results
curl -X GET https://api.smeanalytica.dev/api/v1/analysis/ANALYSIS_ID \ -H "Authorization: Bearer YOUR_TOKEN"
Webhooks
Real-time Notifications
Get notified when analysis completes, pricing updates, or other events occur
Supported Events
- •
analysis.completed
- Analysis processing finished - •
pricing.updated
- Dynamic pricing recommendations updated - •
subscription.changed
- Subscription status changed - •
usage.limit_reached
- API usage limit reached
Webhook Payload Example
{ "event": "analysis.completed", "timestamp": "2024-01-15T10:30:00Z", "data": { "analysis_id": "analysis_123", "type": "sentiment", "status": "completed", "confidence_score": 0.85 } }
SDKs & Libraries
Official SDKs and community libraries for popular programming languages
JavaScript/Node.js
Official SDK for JavaScript and Node.js applications
Python
Python SDK for data science and backend applications
React Native
Mobile SDK for React Native applications
Ready to Start Building?
Explore our comprehensive API documentation and start integrating today