> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.gpt.nexus/llms.txt
> Use this file to discover all available pages before exploring further.

# API Reference

> Explore all available Nexus API endpoints

# 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:

<CardGroup cols={2}>
  <Card title="Create Session" icon="plus" href="/api-reference/nexus-endpoints/create-session">
    POST /sessions - Initialize a new chat session
  </Card>

  <Card title="Send Message" icon="message" href="/api-reference/nexus-endpoints/send-message">
    POST /messages - Send messages to an active session
  </Card>

  <Card title="Get Session" icon="eye" href="/api-reference/nexus-endpoints/get-session">
    GET /sessions/{id} - Retrieve session information
  </Card>

  <Card title="List Messages" icon="list" href="/api-reference/nexus-endpoints/list-messages">
    GET /messages - Get conversation history with pagination
  </Card>
</CardGroup>

## Authentication

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

```http theme={null}
api-key: YOUR_API_KEY
```

## Response Format

All endpoints return JSON responses with consistent structure:

```json theme={null}
{
  "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](/NEXUS_API_DOCUMENTATION).

## Quick Links

* [Authentication Guide](/authentication) - Detailed authentication setup
* [Error Handling](/error-handling) - Handle API errors effectively
* [Rate Limiting](/rate-limiting) - Understand rate limits
* [SDK Examples](/sdk-examples) - Code examples in multiple languages
