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

# Egnyte Integration

> Enterprise file sharing and content governance with Egnyte

## Overview

The Egnyte integration provides enterprise-grade file management and syncing capabilities.

**Router**: `api/app/routers/egnyte.py`
**Service**: `scripts/egnyte_service/`

## Features

* OAuth authentication with Egnyte
* File and folder synchronization
* Version control
* Access control integration

## Setup

### 1. Connect Egnyte

Configure OAuth in Egnyte dashboard, then:

```bash theme={null}
POST /api/egnyte/oauth/init
```

### 2. Configure Folders

```bash theme={null}
POST /api/egnyte/sync-folders
{
  "folders": [
    {
      "egnyte_path": "/Shared/Deals",
      "company_id": "uuid"
    }
  ]
}
```

## API Endpoints

### List Files

```bash theme={null}
GET /api/egnyte/files
```

### Upload File

```bash theme={null}
POST /api/egnyte/upload
```

### Sync Folder

```bash theme={null}
POST /api/egnyte/sync/{folder_id}
```

## Next Steps

<CardGroup cols={2}>
  <Card title="Egnyte API" icon="code" href="/api-reference/egnyte">
    API documentation
  </Card>

  <Card title="Files API" icon="file" href="/api-reference/files">
    File management
  </Card>
</CardGroup>
