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

# Database & Dev Container

> Manage project databases, backups, checkpoints, and dev container terminal

## Overview

These endpoints manage project databases (operations, checkpoints, SQL backups) and dev container access.

***

## Trigger AI Indexing

<ParamField path="POST" type="/builder/ai/index-trigger">
  Trigger re-indexing of project files for AI context.
</ParamField>

**Request Body**

```json theme={null}
{
  "projectId": "project_abc123"
}
```

***

## Database Operations

<ParamField path="GET" type="/builder/database/{projectId}/operations">
  List active database operations for a project.
</ParamField>

**Path Parameters**

| Parameter   | Type   | Description        |
| ----------- | ------ | ------------------ |
| `projectId` | string | The project's UUID |

***

## Database Checkpoints

### List Checkpoints

<ParamField path="GET" type="/builder/database/{projectId}/checkpoints">
  List all database checkpoints for a project.
</ParamField>

### Restore Checkpoint

<ParamField path="POST" type="/builder/database/{projectId}/checkpoints/{hash}/restore">
  Restore a database to a specific checkpoint.
</ParamField>

**Path Parameters**

| Parameter   | Type   | Description         |
| ----------- | ------ | ------------------- |
| `projectId` | string | The project's UUID  |
| `hash`      | string | The checkpoint hash |

***

## SQL Backups

### List Backups

<ParamField path="GET" type="/builder/database/{projectId}/sql-backups">
  List all SQL backups for a project.
</ParamField>

### Download Backup

<ParamField path="GET" type="/builder/database/{projectId}/sql-backups/{s3Key}/download">
  Download a specific SQL backup file.
</ParamField>

**Path Parameters**

| Parameter   | Type   | Description                |
| ----------- | ------ | -------------------------- |
| `projectId` | string | The project's UUID         |
| `s3Key`     | string | The backup file identifier |

***

## Terminal

<ParamField path="WebSocket" type="/builder/dev-container/{projectId}/terminal">
  WebSocket connection to the project's dev container terminal.
</ParamField>

This endpoint upgrades to a WebSocket connection for real-time terminal I/O.
