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

# API Reference

> Overview of the Pathors API integrations

Welcome to the Pathors API reference documentation. Our API provides multiple integration options and powerful knowledge management features.

## Integrations

<CardGroup cols={2}>
  <Card title="LINE Integration" icon="line" href="/en/api-reference/integration/line">
    Integrate with LINE Messaging API to create chatbots for LINE platform.
  </Card>

  <Card title="Completions API" icon="code" href="/en/api-reference/integration/api">
    Use our OpenAI-compatible API to integrate with any platform.
  </Card>
</CardGroup>

## Calls

<CardGroup cols={2}>
  <Card title="Create Call" icon="phone" href="/en/api-reference/call/create-call">
    Create calls from configured phone numbers to target numbers.
  </Card>
</CardGroup>

## Knowledge Management

<CardGroup cols={2}>
  <Card title="Knowledgebase" icon="database" href="/en/api-reference/knowledgebase/get-knowledgebases">
    Create and manage knowledgebases to store and organize your data.
  </Card>

  <Card title="Dataset" icon="file" href="/en/api-reference/dataset/get-datasets">
    Upload and manage datasets within your knowledgebase.
  </Card>
</CardGroup>

## Session Management

<CardGroup cols={2}>
  <Card title="Create Session" icon="message" href="/en/api-reference/session/create-session">
    Create a new session to maintain conversation context across multiple API calls.
  </Card>

  <Card title="Query Session" icon="search" href="/en/api-reference/session/query-session">
    Query session information by session ID to view conversation context and variables.
  </Card>
</CardGroup>

## Authentication

All APIs (except LINE Integration) use **Developer Key** (`dk_` prefix) for authentication. You can create and manage Developer Keys in **Developer Keys** from your account menu.

| Integration                  | Auth Method               | Header                         |
| ---------------------------- | ------------------------- | ------------------------------ |
| LINE Integration             | LINE channel access token | Per LINE docs                  |
| Completions API              | Developer Key             | `Authorization: Bearer dk_...` |
| Call APIs                    | Developer Key             | `Authorization: Bearer dk_...` |
| Knowledgebase / Dataset APIs | Developer Key             | `Authorization: Bearer dk_...` |

## MCP Integration

<CardGroup cols={2}>
  <Card title="MCP Server" icon="plug" href="/en/api-reference/mcp/introduction">
    Connect to Pathors from Claude Desktop, Claude Code, or any MCP client.
  </Card>

  <Card title="Claude Code Skills" icon="wand-magic-sparkles" href="/en/api-reference/skills/introduction">
    Pre-built workflows for building and managing agents with Claude Code.
  </Card>
</CardGroup>

## Getting Started

1. Choose the features that best fit your needs
2. Create a Project API Key in **Project Settings > API Keys**
3. Follow the setup guide for your chosen features
4. Test your implementation using our example code
5. Deploy to production

For detailed information about each feature, click on the respective cards above.
