Getting Started
Configuration
Configure Tork for your environment with API keys, regions, and advanced options.
API Key Setup
Set your API key using environment variables (recommended) or pass it directly to the client:
Never commit API keys to version control. Add .env to your .gitignore file.
Client Configuration
Configure the client with additional options:
Data Regions
Choose a region for data residency compliance:
| Region | Location | Compliance |
|---|---|---|
| us | United States | SOC 2, HIPAA |
| eu | European Union | GDPR, SOC 2 |
| apac | Asia Pacific | SOC 2 |
Environment Variables Reference
| Variable | Description | Default |
|---|---|---|
| TORK_API_KEY | Your API key | Required |
| TORK_ENVIRONMENT | Environment name | production |
| TORK_REGION | Data region | us |
| TORK_TIMEOUT | Request timeout (ms) | 30000 |
| TORK_LOG_LEVEL | Logging level | info |
Next Step: Learn about PII Detection to start protecting sensitive data.