Welcome to duohub API

duohub provides blazing fast knowledge graphs as a service, enabling efficient memory retrieval for voice AI applications. Our API allows you to seamlessly integrate powerful knowledge graph capabilities into your applications.

Authentication

All API endpoints require authentication using an API key. The API key should be included in the request headers as X-API-Key.

X-API-Key: your_api_key_here

Quick Start

The fastest way to interact with duohub is through our official Python package:

from duohub import Duohub

client = Duohub(api_key='YOUR_API_KEY')
response = client.query(
    query='What is the capital of France?',
    memoryID='your_memory_id',
    facts=True,
    assisted=True
)
print(response)

API Specification

Our API is built on REST principles and uses standard HTTP response codes. The API accepts and returns JSON data. You can view our complete OpenAPI specification below:

duohub API Specification

View the complete OpenAPI specification

Base URL

All API requests should be made to:

https://api.duohub.ai