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

# Data Connectors

> Connect to your document repositories and storage systems

Data Connectors establish secure connections between the platform and your document storage. Once connected, the platform can discover documents, read content for metadata extraction, and write enriched metadata back to the source.

## Supported Data Connectors

> [card] Amazon S3
>
> Connect to AWS S3 buckets for scalable cloud storage.

> [card] Azure Blob Storage
>
> Connect to Azure Blob containers.

> [card] Google Cloud Storage
>
> Connect to GCS buckets.

> [card] SharePoint
>
> Integrate with Microsoft 365 document libraries.

> [card] OneDrive
>
> Connect to Microsoft OneDrive sites and folders.

> [card] PostgreSQL
>
> Connect to PostgreSQL databases with pgvector support.

> [card] Qdrant
>
> Vector database integration for semantic search.

### Configuration Details

| Source Type | Description | Key Configuration | Ideal Use Case |
| :- | :- | :- | :- |
| **Amazon S3** | AWS cloud object storage | Bucket name, Access Key, Secret Key | Large-scale document archives, cloud-native workflows |
| **Azure Blob Storage** | Azure cloud object storage | Account, Container, Credentials | Azure-native document archives |
| **Google Cloud Storage** | GCP cloud object storage | Bucket, Service Account | GCP-native document archives |
| **SharePoint** | Microsoft 365 document management | Client ID, Client Secret, Tenant ID, Site Name | Enterprise document libraries, Office 365 environments |
| **OneDrive** | Microsoft OneDrive cloud storage | Client ID, Client Secret, Tenant ID, Site | Personal and team drives in Microsoft 365 |
| **PostgreSQL** | Relational database with pgvector extension | Host URL, Database name, User credentials, Port | Structured + unstructured hybrid data, existing database workflows |
| **Qdrant** | Purpose-built vector database for AI | API Key, Collection name, URL | Semantic search applications, RAG pipelines |

See the [Integrations Overview](https://docs.deasylabs.com/integrations/overview.md) for the complete matrix of sources, destinations, and supported file types.

## Key Features

> [card] Multiple Profiles
>
> Create and manage multiple Data Connector connections

> [card] Connection Testing
>
> Validate credentials before saving

> [card] Active Profile Selection
>
> Switch between Data Connectors with one click

> [card] Schema Configuration
>
> Customize field mappings (filename key, text key, tags key)

## How Data Connectors Work

```mermaid theme={"dark"}
flowchart LR
    subgraph sources [Your Data Sources]
        S3[Amazon S3]
        SP[SharePoint]
        PG[PostgreSQL]
        QD[Qdrant]
    end
    
    subgraph platform [Deasy Labs Platform]
        DC[Data Connector]
        PROC[Processing Engine]
    end
    
    S3 --> DC
    SP --> DC
    PG --> DC
    QD --> DC
    DC --> PROC
```

**1. Create a Connector**

Select your storage type and provide the required credentials.

**2. Test the Connection**

Validate that the platform can access your documents before saving.

**3. Configure Schema Mapping**

Map your data fields (filename, text content, tags) to the platform's expected format.

**4. Start Processing**

Your documents are now available for metadata extraction.

***

## Python SDK

> [tab] Create Connector
>
> ```python theme={"dark"}
> from deasy import DeasyClient
>
> client = DeasyClient(
>     base_url="https://unstructured.your-company.com/rest/unstructured",
>     username="your-username",
>     password="your-password",
> )
>
> # Create an S3 connector
> connector = client.data_source.create(
>     connector_name="my-s3-bucket",
>     connector_body={
>         "type": "S3DataSourceManager",
>         "name": "my-s3-bucket",
>         "bucket_name": "my-documents",
>         "aws_access_key_id": "YOUR_ACCESS_KEY",
>         "aws_secret_access_key": "YOUR_SECRET_KEY",
>         "region": "us-east-1",
>     },
> )
> print(f"Created connector: {connector.profile_id}")
> ```

> [tab] List Connectors
>
> ```python theme={"dark"}
> # List all connectors (returned as a dict keyed by connector name)
> connectors = client.data_source.list()
> for name, config in connectors.connectors.items():
>     print(f"{name}: {config.type}")
> ```

> [tab] Ingest Data
>
> ```python theme={"dark"}
> import uuid
>
> # Ingest documents from a connector (runs as a background job)
> job_id = str(uuid.uuid4())
> client.data_source.ingest(
>     data_connector_name="my-s3-bucket",
>     file_names=["contracts/msa.pdf"],  # Optional: omit to ingest everything
>     job_id=job_id,
> )
>
> # Track progress
> progress = client.task_status.get_status(job_id=job_id)
> print(f"Ingestion {progress.percent_complete:.0f}% complete ({progress.status})")
> ```

> [tab] Delete Connector
>
> ```python theme={"dark"}
> # Delete a connector
> client.data_source.delete(connector_name="my-s3-bucket")
> print("Connector deleted")
> ```

***

## API Reference

> [card] [Create Connector](https://docs.deasylabs.com/api-reference/data-connectors/create.md)
>
> Create a new data connector

> [card] [Update Connector](https://docs.deasylabs.com/api-reference/data-connectors/update.md)
>
> Update an existing connector configuration

> [card] [List Connectors](https://docs.deasylabs.com/api-reference/data-connectors/list.md)
>
> List all your data connectors

> [card] [Delete Connector](https://docs.deasylabs.com/api-reference/data-connectors/delete.md)
>
> Remove a data connector

> [card] [Ingest Data](https://docs.deasylabs.com/api-reference/data-connectors/ingest.md)
>
> Ingest documents from a connector

> [card] [List Ingested Data](https://docs.deasylabs.com/api-reference/data-connectors/list-the-ingested-files-of-a-datasource.md)
>
> View ingested document metadata


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