Integrate AI-powered chat into your website or app in minutes with our easy-to-use SDKs.
Add Docurest to your website with just two lines of code
<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.
One script tag for any website
<!-- Add to your website -->
<script src="https://docurest.com/widget.js"></script>
<script>
DocurestWidget.init({
key: "YOUR_WIDGET_KEY",
position: "bottom-right"
});
</script>Native Kotlin SDK with full UI
// Add to build.gradle implementation 'com.docurest:android-sdk:1.0.0' // Initialize in your Application class DocurestSDK.init(context, "YOUR_API_KEY")
Native Swift SDK with SwiftUI
// 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")
Cross-platform with Expo support
// 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" />Dart SDK for iOS & Android
# Add to pubspec.yaml dependencies: docurest_flutter: ^1.0.0 // Use in your app DocurestChat(apiKey: 'YOUR_API_KEY')
One-click AI assistant for 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!
Direct HTTP integration for any language
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?"}'Lightweight client using requests
from docurest import DocurestClient client = DocurestClient(api_key="API_your_key_here") response = client.chat(message="What is the return policy?") print(response["answer"])
Zero-dependency client with built-in fetch
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);cURL-based client for PHP 7.4+
require_once 'DocurestClient.php';
$client = new DocurestClient('API_your_key_here');
$response = $client->chat('What is the return policy?');
echo $response['answer'];HttpClient-based SDK for .NET 8+
using var client = new DocurestClient("API_your_key_here");
var response = await client.ChatAsync("What is the return policy?");
Console.WriteLine(response.Answer);Zero-dependency client for Java 11+
DocurestClient client = new DocurestClient("API_your_key_here");
String response = client.chat("What is the return policy?");
System.out.println(response);Standard library client for Go 1.21+
client := docurest.NewClient("API_your_key_here")
chat, _ := client.Chat(docurest.ChatRequest{
Message: "What is the return policy?",
})
fmt.Println(chat.Answer)Full API access for custom integrations
Send messages and receive AI responses
POST /api/v1/chatSecure authentication for your apps
X-Api-Key: API_xxx