Developer Tools

API & Integrations

Full REST API for integrating ThinkLocAI into your applications. Streaming support, OAuth, and comprehensive documentation.

Without API Integration

  • Manual copy-paste between systems
  • No automation of AI tasks
  • Isolated AI with no connectivity
  • Time-consuming manual processes

With ThinkLocAI API

  • Complete REST API for all features
  • SSE streaming for real-time responses
  • OAuth 2.0 for secure authentication
  • OpenAPI specification and SDKs
Interactive Demo

Experience It Yourself

ThinkLocAI - API Playground

Request

// ThinkLocAI REST API
const response = await fetch('/api/chat', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
  },
  body: JSON.stringify({
    model: 'llama-3.1-70b',
    messages: [
      { role: 'user', content: 'Zusammenfassung...' }
    ],
    stream: true
  })
});

Response

Response appears here...
Features in Detail

Everything You Need

REST API

Full RESTful API with JSON responses for all ThinkLocAI features.

SSE Streaming

Server-Sent Events for real-time token streaming of responses.

OAuth 2.0

Secure authentication with bearer tokens and refresh mechanism.

Webhooks

Event-based notifications for asynchronous workflows.

OpenAPI Spec

Complete OpenAPI 3.0 documentation for automatic client generation.

SDK Support

Native SDKs for Python, JavaScript/TypeScript, and more languages.

Technical Details

Under the Hood

API Endpoints

  • /api/chat - Conversations
  • /api/documents - RAG Upload
  • /api/users - User Management
  • /api/audit - Audit Logs

Authentication

  • Bearer Token Auth
  • API Key Support
  • OAuth 2.0 Flow
  • CORS Configuration

Response Formats

  • JSON Standard
  • SSE Streaming
  • Pagination
  • Error Handling
Use Cases

Practical Scenarios

Workflow Automation

Integrate AI into your existing automation platforms like n8n or Zapier.

Enterprise Integration

Connect to ERP, CRM, and other enterprise systems via API.

Custom Applications

Build tailored AI applications on top of the ThinkLocAI API.

Ready for integration?

Get started with our API documentation and build your AI application.