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

# Introduction

> ZeroDrift Validation API Documentation

## Overview

The ZeroDrift Validation API enables compliance validation of financial documents and communications. Submit documents for automated regulatory compliance checks against configurable rule packs.

**Version:** 0.1.0
**Base URL:** `https://{api-url}`

## Authentication

All API endpoints require authentication via API Key in the request header.

| Header      | Description            |
| ----------- | ---------------------- |
| `x-api-key` | Your ZeroDrift API key |

The Validation API and Admin API use separate API keys. Your validation API key is provisioned when your account is created. Admin API keys are issued separately for customer management operations.

```bash theme={null}
curl "https://{api-url}/api/rulepacks/" \
  -H "x-api-key: YOUR_API_KEY"
```

## Quick Start

The API supports multiple validation workflows:

### Option A: Direct Upload (Small Documents \< 6MB)

```
POST /api/validate_stream/  →  POST /api/validate_stream_result/
```

1. Submit your document with `validate_stream`
2. Poll for results with `validate_stream_result`

### Option B: S3 Presigned URL (Large Documents)

```
POST /api/validate_stream_presigned_url/  →  Upload to S3  →  POST /api/validate_stream_start/  →  POST /api/validate_stream_result/
```

1. Request a presigned URL
2. Upload your file directly to S3
3. Trigger validation with `validate_stream_start`
4. Poll for results with `validate_stream_result`

### Option C: Text Snippet or Email

```
POST /api/validate_snippet_stream/  →  POST /api/validate_stream_result/
POST /api/validate_email/           →  POST /api/validate_stream_result/
```

1. Submit plain text or email content directly
2. Poll for results with `validate_stream_result`

### Custom Policy Rules

Import your organization's compliance policies and extract enforceable rules:

```
POST /api/policies/import  →  GET /api/policies/import/{id}  →  POST /api/policies/import/{id}/activate
```

1. Upload a policy document (PDF, DOCX, or plain text)
2. Poll until AI rule extraction completes
3. Review and activate rules — they'll run on all future validations

## Rate Limits

| Tier     | Requests/Second | Burst |
| -------- | --------------- | ----- |
| Standard | 10              | 50    |

Contact [support@zerodrift.ai](mailto:support@zerodrift.ai) for higher limits.

## Support

For API support or to request higher rate limits, contact: **[support@zerodrift.ai](mailto:support@zerodrift.ai)**
