Quick Start
Get started with Scrub in just a few minutes.
Prerequisites
- A Scrub account (request access)
- An API key from your preferred AI provider (OpenAI, Anthropic, or Google)
Step 1: Get Your API Key
- Log in to your Scrub Dashboard
- Navigate to API Keys
- Click Create New Key
- Copy your API key (it won't be shown again)
Step 2: Configure Your Provider
- In the Dashboard, go to Providers
- Select your AI provider (OpenAI, Anthropic, or Google)
- Enter your provider's API key
- Save your configuration
Step 3: Make Your First Request
Replace YOUR_SCRUB_API_KEY with your actual API key:
curl https://api.scrub.health/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_SCRUB_API_KEY" \
-d '{
"model": "gpt-4",
"messages": [
{"role": "user", "content": "Hello, how can you help me today?"}
]
}'
That's it! Scrub will automatically:
- Scan your request for PHI
- Forward it to your configured provider
- Return the response
- Log everything for audit purposes
Step 4: Configure PHI Handling (Optional)
By default, Scrub operates in audit mode - it detects PHI and logs it, but doesn't block requests. To change this:
- Go to Settings in your Dashboard
- Choose your preferred PHI handling mode:
- Flag/Audit - Detect and log PHI, but allow requests (default)
- Block - Reject requests containing PHI
- Redact - Remove PHI from requests before forwarding
- Mask - Replace PHI with placeholder tokens
Next Steps
- API Reference - Explore all available endpoints
- PHI Detection Patterns - See what PHI types are detected
- Code Examples - Integration examples in your language