Docurest
Try Free
Developer Documentation

Build with Docurest

Integrate AI-powered chat into your website or app in minutes with our easy-to-use SDKs.

Quick Start

Add Docurest to your website with just two lines of code

HTML
<script src="https://docurest.com/widget.js"></script>
<script>
  DocurestWidget.init({ key: "YOUR_WIDGET_KEY" });
</script>

Get your widget key from the dashboard after signing up.

Choose Your Platform

Web Widget

One script tag for any website

HTML
<!-- Add to your website -->
<script src="https://docurest.com/widget.js"></script>
<script>
  DocurestWidget.init({
    key: "YOUR_WIDGET_KEY",
    position: "bottom-right"
  });
</script>

Android SDK

Native Kotlin SDK with full UI

Download Sample
android
// Add to build.gradle
implementation 'com.docurest:android-sdk:1.0.0'

// Initialize in your Application class
DocurestSDK.init(context, "YOUR_API_KEY")

iOS SDK

Native Swift SDK with SwiftUI

Download Sample
ios
// Add to Package.swift or use CocoaPods
.package(url: "https://github.com/docurest/ios-sdk", from: "1.0.0")

// Initialize in AppDelegate
DocurestSDK.shared.configure(apiKey: "YOUR_API_KEY")

React Native

Cross-platform with Expo support

Download Sample
react-native
// Install the package
npm install @docurest/react-native-sdk

// Use in your app
import { DocurestChat } from '@docurest/react-native-sdk';

<DocurestChat apiKey="YOUR_API_KEY" />

Flutter

Dart SDK for iOS & Android

Download Sample
Dart
# Add to pubspec.yaml
dependencies:
  docurest_flutter: ^1.0.0

// Use in your app
DocurestChat(apiKey: 'YOUR_API_KEY')

WordPress Plugin

One-click AI assistant for WordPress

Download Sample
wordpress
1. Install the plugin (upload ZIP or search "Docurest AI Assistant")
2. Go to Settings → Docurest AI Assistant
3. Paste your widget snippet from the Docurest Dashboard
4. Click Save Settings — done!

REST API

Direct HTTP integration for any language

rest-api
curl -X POST https://docurest.com/api/v1/chat \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: API_your_key_here" \
  -d '{"message": "What is the return policy?"}'

Python SDK

Lightweight client using requests

Download Sample
python
from docurest import DocurestClient

client = DocurestClient(api_key="API_your_key_here")
response = client.chat(message="What is the return policy?")
print(response["answer"])

Node.js SDK

Zero-dependency client with built-in fetch

Download Sample
nodejs
const { DocurestClient } = require('./docurest');
const client = new DocurestClient('API_your_key_here');

const response = await client.chat('What is the return policy?');
console.log(response.answer);

PHP SDK

cURL-based client for PHP 7.4+

Download Sample
php
require_once 'DocurestClient.php';
$client = new DocurestClient('API_your_key_here');

$response = $client->chat('What is the return policy?');
echo $response['answer'];

C# SDK

HttpClient-based SDK for .NET 8+

Download Sample
csharp
using var client = new DocurestClient("API_your_key_here");
var response = await client.ChatAsync("What is the return policy?");
Console.WriteLine(response.Answer);

Java SDK

Zero-dependency client for Java 11+

Download Sample
java
DocurestClient client = new DocurestClient("API_your_key_here");
String response = client.chat("What is the return policy?");
System.out.println(response);

Go SDK

Standard library client for Go 1.21+

Download Sample
go
client := docurest.NewClient("API_your_key_here")
chat, _ := client.Chat(docurest.ChatRequest{
    Message: "What is the return policy?",
})
fmt.Println(chat.Answer)

REST API

Full API access for custom integrations

📡

Chat Endpoint

Send messages and receive AI responses

POST /api/v1/chat
🔐

API Key Auth

Secure authentication for your apps

X-Api-Key: API_xxx

Ready to Build?

Sign up for free and get your API keys in seconds.

Get API Keys