N.L.D.S. API Documentation
Overview
The Natural Language Detection System (N.L.D.S.) API provides advanced natural language processing capabilities as the Tier 0 component of the JAEGIS Enhanced Agent System. This RESTful API enables seamless integration of natural language understanding, intent recognition, and JAEGIS command generation.
Base URL
Production: https://api.jaegis.ai/v2
Staging: https://staging-api.jaegis.ai/v2
Development: http://localhost:8000/v2Authentication
N.L.D.S. API supports multiple authentication methods:
JWT Token Authentication (Recommended)
curl -H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
https://api.jaegis.ai/v2/processAPI Key Authentication
curl -H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
https://api.jaegis.ai/v2/processCore Endpoints
1. Process Natural Language Input
Endpoint: POST /process
Description: Process natural language input and generate JAEGIS commands with confidence scoring.
Request Body:
Response:
2. Health Check
Endpoint: GET /health
Description: Check system health and status.
Response:
3. User Profile Management
Endpoint: GET /user/{user_id}/profile
Description: Retrieve user profile and preferences.
Response:
4. Batch Processing
Endpoint: POST /batch
Description: Process multiple natural language inputs in a single request.
Request Body:
Response:
Processing Dimensions
N.L.D.S. supports multi-dimensional analysis:
logical
Logical reasoning and technical analysis
System design, technical implementation
emotional
Emotional context and user experience
UX design, user feedback analysis
creative
Creative problem-solving and innovation
Brainstorming, alternative solutions
all
Combined analysis across all dimensions
Comprehensive understanding
JAEGIS Integration
Squad Types
development
Software development tasks
FRED:IMPLEMENT, FRED:BUILD
analysis
Analysis and research tasks
TYLER:ANALYZE, TYLER:INVESTIGATE
security
Security-related tasks
SECURE:PROTECT, SECURE:AUDIT
content
Documentation and content
DOCUMENT:CREATE, DOCUMENT:UPDATE
integration
System integration tasks
INTEGRATE:CONNECT, INTEGRATE:SYNC
Operation Modes
1
Basic operations
Simple tasks
2
Standard operations
Moderate complexity
3
Advanced operations
Complex tasks
4
Expert operations
Highly complex tasks
5
Specialized operations
Domain-specific expertise
Error Handling
HTTP Status Codes
200
Success
Request processed successfully
400
Bad Request
Invalid request format or parameters
401
Unauthorized
Authentication required or invalid
403
Forbidden
Insufficient permissions
429
Too Many Requests
Rate limit exceeded
500
Internal Server Error
Server-side processing error
Error Response Format
Rate Limiting
N.L.D.S. implements intelligent rate limiting based on user tiers:
Basic
100
1,000
10,000
Premium
500
5,000
50,000
Enterprise
1,000
10,000
100,000
Unlimited
β
β
β
Rate Limit Headers
SDK Integration
Python SDK
JavaScript SDK
Webhooks
N.L.D.S. supports webhooks for real-time notifications:
Webhook Configuration
Webhook Payload
Performance Optimization
Caching
N.L.D.S. implements intelligent caching:
Session Context: Cached for 1 hour
User Preferences: Cached for 24 hours
Common Patterns: Cached for 7 days
Request Optimization
Monitoring and Analytics
Real-time Metrics
Access real-time performance metrics:
Endpoint: GET /metrics
Compliance and Security
Data Protection
All data encrypted in transit (TLS 1.3)
Sensitive data encrypted at rest (AES-256)
GDPR compliant data handling
SOC 2 Type II certified
Audit Logging
All API requests are logged with:
Request/response details
User identification
Processing metrics
Security events
Support and Resources
Documentation Links
Support Channels
Technical Support: support@jaegis.ai
API Issues: api-support@jaegis.ai
Documentation: docs@jaegis.ai
Emergency: emergency@jaegis.ai
Status Page
Monitor API status: https://status.jaegis.ai
API Version: 2.2.0 Last Updated: January 15, 2024 Next Update: February 1, 2024
Last updated