API Keys
All CAS Parser API requests require authentication via thex-api-key header.
Getting Your API Key
From the dashboard
- Sign up at app.casparser.in
- Navigate to Developers → API Keys
- Click Generate API Key
- Copy and store securely
From a coding agent (automated)
If you’re using a coding agent (Claude Code, Cursor, etc.), it can obtain an API key for you automatically. The agent generates a one-time URL, you open it in your browser and approve, and the agent receives the key — no copy-paste needed.Using API Keys
Access Tokens
For frontend/SDK applications, use short-lived access tokens instead of exposing your API key.Token Flow
Generate Access Token
Backend (server-side):Token Properties
Verify Token
Security Best Practices
1. Environment Variables
Never hardcode API keys:2. Backend Token Generation
Create a backend endpoint:3. Rate Limiting
Implement rate limiting on your backend:4. HTTPS Only
Always use HTTPS for API requests. The API will reject HTTP requests.5. Key Rotation
Rotate API keys periodically:- Generate new API key in dashboard
- Update environment variables
- Deploy updated code
- Delete old API key
Sandbox Key
For testing and development:- Returns sample data
- No credit consumption
- Rate limited to 10 requests/minute
Troubleshooting
Next Steps
Quickstart
Make your first API call
Error Handling
Handle authentication errors

