API Documentation

NarodGPT API Reference

Comprehensive documentation for integrating with the NarodGPT API

API Overview

Getting started with the NarodGPT API

The NarodGPT API allows you to integrate AI-powered chat capabilities into your applications. Our RESTful API provides endpoints for sending messages, managing knowledge bases, and handling webhooks.

Base URL

https://api.narodgpt.com/v1

Request Format

All requests should be sent with the Content-Type: application/json header. Request bodies should be valid JSON.

Response Format

All responses are returned in JSON format. Successful responses will have a 2xx status code, while errors will have a 4xx or 5xx status code.

Error Handling

Error responses include a detail field with a description of the error:

{
  "detail": "Invalid API key"
}

Rate Limiting

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

  • X-RateLimit-Limit: Maximum requests per hour
  • X-RateLimit-Remaining: Remaining requests for the current period
  • X-RateLimit-Reset: Time when the rate limit resets (Unix timestamp)

Authentication

Learn how to authenticate your API requests using API keys

Chat API

Send messages and receive AI-powered responses

Webhooks

Receive real-time notifications for chat events

SDKs & Libraries

Official client libraries for popular programming languages

JavaScript/TypeScript

npm install @narodgpt/sdk
View on GitHub

Python

pip install narodgpt
View on GitHub

PHP

composer require narodgpt/sdk
View on GitHub