API Documentation

API Reference

Comprehensive API documentation for integrating AI Nexus Pro services into your applications. Get started quickly with our detailed guides and code examples.

API Endpoints

Explore our comprehensive API endpoints for AI chatbot, voice bot, and webhook integration.

POST
/api/auth/signup
None

User Registration

Create a new user account

Parameters:
email, password, firstName, lastName
Response:
User object with JWT token
POST
/api/auth/signin
None

User Authentication

Sign in with email and password

Parameters:
email, password
Response:
JWT token and user data
POST
/api/chatbot/send
Bearer Token

Chatbot Message

Send a message to AI chatbot

Parameters:
message, sessionId, context
Response:
AI response and conversation history
POST
/api/voice/start
Bearer Token

Voice Session

Start a voice conversation

Parameters:
language, voiceModel, sessionId
Response:
Session details and connection info
POST
/api/webhook/process
HMAC Signature

Webhook Processing

Process incoming webhooks

Parameters:
payload, signature, timestamp
Response:
Processing status and result

Code Examples

Get started quickly with our ready-to-use code examples in multiple programming languages.

JavaScript

Chatbot Integration
// Initialize chatbot
const chatbot = new AINexusChatbot({
  apiKey: 'your_api_key',
  model: 'gpt-4',
  endpoint: 'https://api.ainexuspro.online'
});

// Send message
const response = await chatbot.sendMessage({
  message: 'Hello, how can you help me?',
  sessionId: 'user_session_123',
  context: { userId: 'user_456' }
});

console.log(response.aiResponse);

Python

Voice Bot Setup
import requests

# Configure voice bot
voice_config = {
    'api_key': 'your_api_key',
    'language': 'en-US',
    'voice_model': 'nova',
    'endpoint': 'https://api.ainexuspro.online'
}

# Start voice session
response = requests.post(
    f"{voice_config['endpoint']}/api/voice/start",
    json=voice_config,
    headers={'Authorization': f"Bearer {voice_config['api_key']}"}
)

session_data = response.json()
print(f"Voice session started: {session_data['sessionId']}")

cURL

Webhook Integration
# Send webhook to AI Nexus Pro
curl -X POST https://api.ainexuspro.online/api/webhook/process \
  -H "Content-Type: application/json" \
  -H "X-Webhook-Signature: your_signature" \
  -d '{
    "event": "user_message",
    "data": {
      "userId": "user_123",
      "message": "Hello AI!",
      "timestamp": "2024-01-15T10:30:00Z"
    }
  }'

Authentication & Security

Learn about our security measures and authentication methods.

API Keys

Secure authentication with JWT tokens

  • • Generate API keys from your dashboard
  • • Include in Authorization header
  • • Keys are encrypted and secure
  • • Rate limiting per API key

Security Features

Enterprise-grade security measures

  • • HTTPS encryption for all requests
  • • HMAC signature validation
  • • IP whitelisting support
  • • Audit logging and monitoring

Ready to Get Started?

Download our official SDKs and start building AI-powered applications today.

Quick Help

Ask me anything about this page

Ready to help