Your First API Call
Get started with Tork in three simple steps. By the end of this guide, you'll have made your first content evaluation request.
Create Your Account
Sign up for a free Tork account to get started.
Create your account at the Tork dashboard. The free tier includes:
- 1,000 API calls per month
- Access to all evaluation endpoints
- Basic analytics dashboard
- Email support
Get Your API Key
Generate an API key from your dashboard.
Once logged in, navigate to Settings → API Keys and click "Generate New Key".
tork_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxKeep your API key secure. Never expose it in client-side code or public repositories.
Make Your First Call
Install the SDK and scan text for PII.
Python
JavaScript
cURL
Replace YOUR_API_KEY with your actual API key:
Expected Response
Understanding the Response
| action | Governance decision: allow, redact, or deny |
| redacted | Text with PII replaced by placeholders |
| original | The original input text |
| pii_detected | Array of detected PII with types and positions |
| processing_time_ms | Time to process in milliseconds |
| request_id | Unique ID for this request (useful for debugging) |
Bonus: Test PII Detection
See how Tork detects sensitive PII
Try this example to see how Tork detects sensitive PII like SSN and credit cards:
Response (Unsafe Detected)
Notice how action: "deny" blocks high-risk PII and the pii_detected array shows what was found.
You're All Set!
You've successfully made your first API call. Explore the full documentation to discover all available endpoints and features.
Quick Reference
https://api.torkgovernance.com/v1Authorization: Bearer <key>application/json1,000 calls/month