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

# API Overview

> ContextOne API for indexing and querying documentations

## Overview

ContextOne provides easy-to-use APIs to search and query documentation from GitHub, LLMs.txt files, and websites. It works with both public and private data.

## Key Features

* **Repository Indexing**: Index documentation from GitHub repositories with branch and release versioning support.
* **Web Crawling**: Extract and index documentation from websites.
* **LLMs.txt Indexing**: Add documentation from LLMs.txt.
* **Version Control**: Manage different documentation versions.
* **Public & Private**: Works with both public and private sources.

## Authentication

Most endpoints require authentication via Bearer token:

```bash theme={null}
Authorization: Bearer <your-token>
```

For private sources, include the organization ID:

```bash theme={null}
X-Org-Id: <organization-id>
```

## Response Format

All responses follow this structure:

```json theme={null}
{
  "success": boolean,
  "message": "string", // Present on errors or specific messages
  "data": object      // Present on successful responses
}
```

## Error Codes

* `200` - Success
* `400` - Bad Request
* `401` - Unauthorized
* `402` - Payment Required (insufficient credits)
* `403` - Forbidden
* `404` - Not Found
* `409` - Conflict
* `500` - Internal Server Error
