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

> Integrate with Cura's AI model for safe, contextual healthcare responses with automatic conversation management

# Cura's AI Model External API

Build intelligent healthcare conversations with **automatic context management**. The Cura's AI model API provides stateful conversations, patient data integration, and safe AI responses specifically designed for healthcare applications.

<Note>
  **New: Conversation Threads** - Our recommended way to build multi-turn conversations. The server handles context automatically so you can focus on building great features.
</Note>

## Quick Start

Build your first AI health conversation in 5 minutes.

<CardGroup cols={2}>
  <Card title="5-Minute Quickstart" icon="rocket" href="/quickstart">
    Create a thread, send messages, and watch the AI remember everything automatically.
  </Card>

  <Card title="Conversation Threads Guide" icon="messages" href="/conversation-threads">
    Learn about automatic context management, thread expiration, and best practices.
  </Card>
</CardGroup>

## Core Features

Everything you need to integrate healthcare AI into your application.

<CardGroup cols={2}>
  <Card title="Conversation Threads" icon="brain" href="/conversation-threads">
    **Automatic Context** - Server manages the last 20 messages. No manual history tracking needed.
  </Card>

  <Card title="AI Chat" icon="comments" href="/api-reference/endpoint/chat">
    **Contextual Responses** - Generate AI responses with patient data and conversation history.
  </Card>

  <Card title="Patient Management" icon="user-doctor" href="/api-reference/endpoint/create-patient">
    **Rich Context** - Create and manage patient records with medications, conditions, and allergies.
  </Card>

  <Card title="Secure Authentication" icon="shield-check" href="/authentication">
    **Enterprise Security** - API key authentication with multiple environment support.
  </Card>
</CardGroup>

## Why Conversation Threads?

<CardGroup cols={2}>
  <Card title="Automatic Memory" icon="brain">
    Server stores and injects the last 20 messages automatically - no manual context management
  </Card>

  <Card title="Auto-Cleanup" icon="clock">
    Threads expire after 30 minutes of inactivity for privacy and security
  </Card>

  <Card title="Thread Independence" icon="lock">
    Each thread is isolated - perfect for multiple users or conversation topics
  </Card>

  <Card title="Patient Linking" icon="link">
    Optional patient linking provides medical context (medications, conditions, allergies)
  </Card>
</CardGroup>

## Integration Examples

Ready-to-use code examples in multiple languages.

<CardGroup cols={2}>
  <Card title="Code Examples" icon="code" href="/client-examples">
    Complete examples in Node.js, Python, PHP, and more.
  </Card>

  <Card title="Best Practices" icon="lightbulb" href="/best-practices">
    Production tips, error handling, and optimization techniques.
  </Card>

  <Card title="Authentication Guide" icon="key" href="/authentication">
    Secure API key management and implementation.
  </Card>

  <Card title="Full API Reference" icon="book" href="/api-reference/introduction">
    Complete endpoint documentation with all parameters.
  </Card>
</CardGroup>

## Key Benefits

<Note>
  **Safe Healthcare AI**: Cura AI is designed specifically for healthcare applications with built-in safety measures and contextual understanding.
</Note>

* **Automatic Context Management**: Server handles conversation history for you
* **Rich Patient Data**: Medications, conditions, allergies automatically available to AI
* **Thread Expiration**: Privacy-first design with 30-minute auto-deletion
* **Flexible Integration**: RESTful API that works with any technology stack
* **Multiple Concurrent Threads**: Handle many conversations simultaneously
