N.L.D.S. API Reference
Overview
The N.L.D.S. (Natural Language Detection System) API provides comprehensive natural language processing capabilities as the Tier 0 component of the JAEGIS Enhanced Agent System. This reference documentation covers all available endpoints, request/response formats, and integration patterns.
Base Information
Base URL:
https://api.jaegis.ai/v2Protocol: HTTPS only
Content-Type:
application/jsonAPI Version: 2.2.0
Rate Limiting: Tier-based (see Rate Limiting)
Authentication
JWT Token (Recommended)
Authorization: Bearer <jwt_token>API Key
X-API-Key: <api_key>Core Endpoints
POST /process
Process natural language input and generate JAEGIS commands.
Request
Request Body Schema:
Field Descriptions:
input_text
string
Yes
Natural language input to process (1-10000 chars)
user_id
string
No
User identifier for personalization
session_id
string
No
Session identifier for context continuity
processing_dimensions
array
No
Dimensions to analyze: logical, emotional, creative, all
preferred_mode
integer
No
JAEGIS operation mode (1-5)
preferred_squad
string
No
Preferred squad for execution
context
object
No
Additional context information
require_high_confidence
boolean
No
Require β₯85% confidence (default: true)
timeout_ms
integer
No
Processing timeout in milliseconds
Response
Success Response (200):
Error Responses:
POST /batch
Process multiple natural language inputs in a single request.
Request
Response
GET /health
Check system health and operational status.
Response
GET /user/{user_id}/profile
Retrieve user profile and processing preferences.
Response
GET /metrics
Retrieve real-time system metrics and analytics.
Response
Rate Limiting
N.L.D.S. implements intelligent rate limiting based on user tiers:
Basic
100
1,000
10,000
20
Premium
500
5,000
50,000
100
Enterprise
1,000
10,000
100,000
200
Unlimited
β
β
β
β
Rate Limit Headers
All responses include rate limiting information:
Error Handling
Standard Error Format
Common Error Codes
INVALID_INPUT
400
Request validation failed
AUTHENTICATION_REQUIRED
401
Authentication token missing or invalid
INSUFFICIENT_PERMISSIONS
403
User lacks required permissions
RESOURCE_NOT_FOUND
404
Requested resource does not exist
RATE_LIMIT_EXCEEDED
429
Request rate limit exceeded
PROCESSING_TIMEOUT
408
Request processing timed out
INTERNAL_ERROR
500
Internal server error
SERVICE_UNAVAILABLE
503
Service temporarily unavailable
Webhooks
Configure webhooks to receive real-time notifications:
Webhook Events
processing_complete: Processing finished successfullyhigh_confidence_result: Result with confidence β₯95%low_confidence_result: Result with confidence <70%processing_error: Processing failedrate_limit_warning: Approaching rate limit
Webhook Payload
API Version: 2.2.0 Last Updated: January 15, 2024 Support: api-support@jaegis.ai
Last updated