Skip to main content

API Reference

Welcome to the Nexus API Reference. This section contains detailed documentation for all available API endpoints.

Base URL

All API requests should be made to:
https://api.nexusgpt.io/api/public

Available Endpoints

The Nexus API provides the following endpoints:

Create Session

POST /sessions - Initialize a new chat session

Send Message

POST /messages - Send messages to an active session

Get Session

GET /sessions/ - Retrieve session information

List Messages

GET /messages - Get conversation history with pagination

Authentication

All endpoints require authentication via API key in the api-key header:
api-key: YOUR_API_KEY

Response Format

All endpoints return JSON responses with consistent structure:
{
  "success": true,
  "data": {
    // Endpoint-specific response data
  }
}

Need More Information?

For a comprehensive integration guide including authentication, error handling, and best practices, see the Nexus API Integration Documentation.