API Documentation

Complete REST API reference for the NextGen AI Pipeline

Endpoints

POST/api/validate

Validate conversation data quality and completeness

Agent

Data Validation Agent

Rate Limit

1000 req/min

Authentication

Bearer token required

Request

{
  "conversationData": {
    "participants": ["Alice", "Bob"],
    "messages": [
      {
        "senderName": "Alice",
        "text": "Hello Bob",
        "timestamp": 1609459200000
      }
    ]
  }
}

Response

{
  "data_quality_score": "high",
  "issues": [],
  "analysis_ready": true
}

Example cURL

curl -X POST https://api.nextgen-ai.com/api/validate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "conversationData": {
    "participants": ["Alice", "Bob"],
    "messages": [
      {
        "senderName": "Alice",
        "text": "Hello Bob",
        "timestamp": 1609459200000
      }
    ]
  }
}'

Authentication

API Key

All API requests require a Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Getting Your API Key

  1. Sign up at https://nextgen-ai.com/dashboard
  2. Navigate to API Keys section
  3. Click "Create New Key"
  4. Copy your key and store it securely
  5. Use it in the Authorization header for all requests

Rate Limiting

API requests are rate limited based on your plan. Rate limit information is included in response headers:

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1609459260

Free Plan

100 requests/day

Pro Plan

10,000 requests/day

Enterprise

Custom limits

Error Handling

HTTP Status Codes

200

Success - Request completed successfully

400

Bad Request - Invalid parameters or malformed JSON

401

Unauthorized - Missing or invalid API key

429

Too Many Requests - Rate limit exceeded

500

Server Error - Internal server error

Need Help?

Check our documentation, explore code examples, or contact our support team