Skip to content

Data & Compliance

GateFlow provides enterprise-grade data handling and compliance features for regulated industries.

Overview

Data Pillar

Secure document processing and retrieval for AI applications.

Document Ingestion

Upload and process documents:

bash
curl -X POST https://api.gateflow.ai/v1/data/documents \
  -H "Authorization: Bearer gw_prod_..." \
  -F "file=@contract.pdf" \
  -F "classification=confidential"

Supported formats: PDF, DOCX, TXT, MD, HTML

Learn more →

PII/PHI Detection

Automatic detection and handling of sensitive data:

json
{
  "detected_entities": [
    {"type": "PERSON", "text": "John Smith", "confidence": 0.98},
    {"type": "SSN", "text": "***-**-1234", "confidence": 0.99},
    {"type": "PHONE", "text": "(555) ***-****", "confidence": 0.95}
  ],
  "action_taken": "redacted"
}

Powered by Microsoft Presidio.

Learn more →

Vector Store

Enterprise vector database with:

  • pgvector with HNSW indexing
  • Row-level security
  • Multi-tenant isolation

Learn more →

Query your documents:

bash
curl -X POST https://api.gateflow.ai/v1/data/search \
  -H "Authorization: Bearer gw_prod_..." \
  -H "Content-Type: application/json" \
  -d '{
    "query": "termination clause",
    "limit": 10,
    "classification_max": "confidential"
  }'

Learn more →

RAG Injection

Automatically inject relevant context into LLM requests:

python
response = client.chat.completions.create(
    model="gpt-5.2",
    messages=[{"role": "user", "content": "What's our refund policy?"}],
    extra_body={
        "gateflow": {
            "rag": {
                "enabled": True,
                "collection": "policies",
                "top_k": 5
            }
        }
    }
)

Learn more →

Data Security

Classification Levels

LevelDescriptionAccess
publicPublicly availableAll users
internalInternal use onlyAuthenticated users
confidentialSensitive businessRole-based
restrictedHighly sensitiveNamed individuals
top_secretMaximum protectionSpecial clearance

Learn more →

Data Isolation

Multi-tenant security:

  • Row-level security in PostgreSQL
  • Tenant-scoped encryption keys
  • Network isolation

Learn more →

Data Residency

Control where data is stored:

json
{
  "residency": {
    "primary_region": "eu-west-1",
    "allowed_regions": ["eu-west-1", "eu-central-1"],
    "prohibited_regions": ["us-*", "cn-*"]
  }
}

Learn more →

Compliance Framework

Audit Trail

Immutable, hash-chained audit logs:

json
{
  "event_id": "evt_abc123",
  "timestamp": "2024-01-15T10:30:00Z",
  "action": "document.accessed",
  "actor": "user_xyz",
  "resource": "doc_456",
  "hash": "sha256:abc123...",
  "previous_hash": "sha256:xyz789..."
}

Learn more →

Compliance Regimes

Pre-configured policies for:

RegimeFeatures
HIPAAPHI handling, BAA support, audit requirements
Legal HoldLitigation preservation, discovery support
GDPRRight to erasure, data portability, consent
EU AI ActRisk classification, human oversight

Learn more →

Compliance Reports

Generate compliance attestations:

bash
curl -X POST https://api.gateflow.ai/v1/compliance/reports \
  -H "Authorization: Bearer gw_prod_..." \
  -H "Content-Type: application/json" \
  -d '{
    "type": "hipaa_audit",
    "period": {
      "start": "2024-01-01",
      "end": "2024-03-31"
    },
    "format": "pdf"
  }'

Learn more →

Document OCR

Mistral Document AI

Enterprise OCR for complex documents:

bash
curl -X POST https://api.gateflow.ai/v1/data/ocr \
  -H "Authorization: Bearer gw_prod_..." \
  -F "file=@scanned_contract.pdf" \
  -F "extract_tables=true"

Features:

  • Table extraction
  • Handwriting recognition
  • Multi-page documents
  • 100+ languages

Learn more →

Quick Start

1. Upload a Document

bash
curl -X POST https://api.gateflow.ai/v1/data/documents \
  -H "Authorization: Bearer gw_prod_..." \
  -F "file=@policies.pdf" \
  -F "classification=internal"
bash
curl -X POST https://api.gateflow.ai/v1/data/search \
  -H "Authorization: Bearer gw_prod_..." \
  -H "Content-Type: application/json" \
  -d '{"query": "vacation policy"}'

3. Use with RAG

python
response = client.chat.completions.create(
    model="gpt-5.2",
    messages=[{"role": "user", "content": "How much vacation do I get?"}],
    extra_body={
        "gateflow": {
            "rag": {"enabled": True, "collection": "hr_policies"}
        }
    }
)

API Reference

Next Steps

Built with reliability in mind.