N.L.D.S. API Reference Documentation

Overview

The Natural Language Detection System (N.L.D.S.) API provides a comprehensive RESTful interface for processing natural language input and generating optimized JAEGIS commands. As the Tier 0 component of JAEGIS v2.2, N.L.D.S. serves as the primary human-AI interface.

Base URL

Production: https://api.jaegis.ai/v1
Development: http://localhost:8000

Authentication

All API requests require authentication using JWT tokens or API keys.

JWT Authentication

Authorization: Bearer <jwt_token>

API Key Authentication

Authorization: Bearer <api_key>

Authentication Endpoints

POST /auth/login

Authenticate user and receive JWT tokens.

Request Body:

Response:

POST /auth/refresh

Refresh access token using refresh token.

Request Body:

Response:

Core Processing Endpoints

POST /process

Process natural language input through the N.L.D.S. pipeline.

Request Body:

Response:

POST /analyze

Perform multi-dimensional analysis of processed input.

Request Body:

Response:

POST /translate

Translate analysis results into optimized JAEGIS commands.

Request Body:

Response:

JAEGIS Integration Endpoints

POST /jaegis/submit

Submit JAEGIS command for execution.

Request Body:

Response:

GET /jaegis/status/{command_id}

Get JAEGIS command execution status.

Response:

GET /jaegis/results/{command_id}

Retrieve JAEGIS command execution results.

Response:

System Status Endpoints

GET /health

System health check (no authentication required).

Response:

GET /status

Detailed system status (requires authentication).

Response:

GET /metrics

Prometheus-compatible metrics (requires admin role).

Response:

Error Handling

Error Response Format

Common Error Codes

Code
HTTP Status
Description

VALIDATION_ERROR

400

Request validation failed

AUTHENTICATION_REQUIRED

401

Authentication required

INSUFFICIENT_PERMISSIONS

403

Insufficient permissions

RESOURCE_NOT_FOUND

404

Requested resource not found

RATE_LIMIT_EXCEEDED

429

Rate limit exceeded

PROCESSING_ERROR

500

Internal processing error

SERVICE_UNAVAILABLE

503

Service temporarily unavailable

TIMEOUT_ERROR

504

Request timeout

Rate Limiting

Rate Limit Headers

Rate Limit Tiers

User Role
Requests/Minute
Burst Limit

ReadOnly

100

150

User

500

750

Developer

1000

1500

Admin

Unlimited

Unlimited

Service

2000

3000

Webhooks

Webhook Configuration

Webhook Payload

Advanced Features

Batch Processing

POST /batch/process

Process multiple inputs in a single request.

Request Body:

Response:

Streaming API

POST /stream/process

Process input with real-time streaming response.

Request:

Response (Server-Sent Events):

WebSocket API

WS /ws/realtime

Real-time bidirectional communication.

Connection:

SDK Examples

Python SDK

JavaScript SDK

cURL Examples

Basic Processing

Complete Pipeline


API Version: 1.0 Last Updated: July 26, 2025 Status: Production Ready Support: api-support@jaegis.ai

Last updated