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

# Filesystem Integration

> Sync files from a shared filesystem into your workspace.

The filesystem integration connects a shared directory to your workspace. **Enable the filesystem connector first** in the operator guide: [Filesystem integration setup](https://docs.zylon.ai/en/v1.57/operator-manual/knowledge-base/file-system.md).

## Basic request and response

Create a filesystem integration with `POST /api/v1/app/integration/filesystem`.

```bash theme={null}
curl -X POST "https://{BASE_URL}/api/v1/app/integration/filesystem" \
  -H "Authorization: Bearer {API_TOKEN}" \
  -H "x-org: {org_slug}" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "{file_system_username}",
    "password": "{file_system_password}"
  }'
```

> [accordion] Example response
>
> ```json theme={null}
> {
>   "id": "fs_9f8e7d6c5b4a3c2d",
>   "user_id": "user_4b7c2a1d9e5f3c8b",
>   "org_id": "org_2f3a9d1c7b5e4a8f",
>   "type": "FileSystem",
>   "created_at": "2026-02-08T14:10:00Z",
>   "updated_at": "2026-02-08T14:10:00Z"
> }
> ```

## Update integration credentials

> [accordion] Endpoint parameters
>
> | Type | Name | Required | Notes |
> | - | - | - | - |
> | Path | `integrationID` | Yes | Integration identifier. |
> | Body | `username` | Yes | Filesystem username. |
> | Body | `password` | Yes | Filesystem password. |

```bash theme={null}
curl -X POST "https://{BASE_URL}/api/v1/app/integration/filesystem/{integrationID}" \
  -H "Authorization: Bearer {API_TOKEN}" \
  -H "x-org: {org_slug}" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "{file_system_username}",
    "password": "{file_system_password}"
  }'
```

> [accordion] Example response
>
> ```json theme={null}
> {
>   "id": "fs_9f8e7d6c5b4a3c2d",
>   "user_id": "user_4b7c2a1d9e5f3c8b",
>   "org_id": "org_2f3a9d1c7b5e4a8f",
>   "type": "FileSystem",
>   "created_at": "2026-02-08T14:10:00Z",
>   "updated_at": "2026-02-08T15:02:00Z"
> }
> ```

## Get integration config

```bash theme={null}
curl "https://{BASE_URL}/api/v1/app/integration/filesystem/{integrationID}/config" \
  -H "Authorization: Bearer {API_TOKEN}"
  -H "x-org: {org_slug}"
```

> [accordion] Example response
>
> ```json theme={null}
> {
>   "path": "/mnt/shared/support"
> }
> ```

## Validate credentials

> [accordion] Endpoint parameters
>
> | Type | Name | Required | Notes |
> | - | - | - | - |
> | Query | `username` | Yes | Filesystem username to validate. |
> | Query | `password` | Yes | Filesystem password to validate. |

```bash theme={null}
curl "https://{BASE_URL}/api/v1/app/integration/filesystem/validate?username={file_system_username}&password={file_system_password}" \
  -H "Authorization: Bearer {API_TOKEN}"
  -H "x-org: {org_slug}"
```

> [accordion] Example response
>
> ```json theme={null}
> true
> ```

## List files

> [accordion] Endpoint parameters
>
> | Type | Name | Required | Notes |
> | - | - | - | - |
> | Query | `integrationId` | Yes | Filesystem integration identifier. |

```bash theme={null}
curl "https://{BASE_URL}/api/v1/app/integration/filesystem/files?integrationId={integrationID}" \
  -H "Authorization: Bearer {API_TOKEN}"
  -H "x-org: {org_slug}"
```

> [accordion] Example response
>
> ```json theme={null}
> [
>   {
>     "path": "/mnt/shared/support/weekly-brief.pdf",
>     "name": "weekly-brief.pdf",
>     "size": 287104,
>     "updated_at": "2026-02-07T19:22:10Z"
>   }
> ]
> ```

## Start an ingest sync

```bash theme={null}
curl -X POST "https://{BASE_URL}/api/v1/app/integration/filesystem/{integrationID}/ingest" \
  -H "Authorization: Bearer {API_TOKEN}" \
  -H "x-org: {org_slug}" \
  -H "Content-Type: application/json"
```

> [accordion] Example response
>
> ```json theme={null}
> {
>   "type": "sync_started",
>   "current_artifact_count": 12,
>   "integration_item_count": 48
> }
> ```

## Errors and edge cases

* **403**: connector not enabled or missing permissions.
* **400**: invalid credentials.
* **404**: integration ID not found.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.