> ## Documentation Index
> Fetch the complete documentation index at: https://docs.duohub.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> API reference documentation for duohub - the foundational memory layer for voice AI

## 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`.

```bash theme={null}
X-API-Key: your_api_key_here
```

## Quick Start

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

```python theme={null}
from duohub import Duohub

client = Duohub(api_key='YOUR_API_KEY')
response = client.query(
    query='What were Leonhard Euler\'s contributions to graph theory?',
    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:

<Card title="duohub API Specification" icon="code" href="https://api.duohub.ai/memory/openapi.json">
  View the complete OpenAPI specification
</Card>

## Base URL

All API requests should be made to:

```bash theme={null}
https://api.duohub.ai
```
