NexusBack to Home

Documentation

Developer Guide

Everything you need to integrate Nexus AI into your product stack.

1. Quick Start

Nexus AI provides a fully managed API and embeddable widget to deploy autonomous AI agents on your platform within minutes. Follow the steps below to get your first AI agent live.

# Install the Nexus SDK

npm install @nexus-ai/sdk

2. Authentication

All API requests must be authenticated using your secret API key. Your key can be found in the Dashboard under Settings → API Keys. Never expose your secret key in client-side code.

# Initialize with your secret key

import { NexusClient } from '@nexus-ai/sdk';

const client = new NexusClient({ apiKey: process.env.NEXUS_SECRET_KEY });

3. Embedding the Widget

The Nexus Widget is a fully customizable, embeddable chat interface. Add the following script tag to your HTML to deploy your AI agent instantly.

<script src="https://cdn.nexus-ai.com/widget.js" data-agent-id="YOUR_AGENT_ID" async></script>

4. API Reference

The Nexus API is RESTful and all responses are JSON-encoded. The base URL for all API requests is https://api.nexus-ai.com/v1.

POST/chat/completionsSend a message and receive an AI response
GET/agentsList all deployed agents in your workspace
POST/agentsCreate and deploy a new AI agent
GET/analytics/summaryFetch aggregated performance metrics

5. Rate Limits

Starter plans are rate-limited to 100 requests per minute. Growth plans receive 1,000 requests per minute. Enterprise plans have custom rate limits based on your agreement. All rate limit information is returned in the response headers as X-RateLimit-Remaining.