API Authentication¶
All DeepTagger API requests require authentication using an API key.
Getting an API Key¶
- Log in to deeptagger.com
- Go to Settings → API Keys
- Click Generate New API Key
- Copy and save the key securely
Keep it secret!
API keys provide full access to your account. Never share them publicly or commit them to version control.
Using the API Key¶
Include your API key in the x-api-key
header with every request:
curl -X POST https://deeptagger.com/api/v1/extract_data \
-H "x-api-key: YOUR_API_KEY" \
-F "fo_id=fo_1759714105892" \
-F "file=@document.pdf"
Authentication Errors¶
401 Unauthorized¶
Cause: Missing or invalid API key
Response:
Solution: Verify your API key is correct and included in the request.
403 Forbidden¶
Cause: Valid API key but insufficient permissions
Solution: Check your account permissions or contact support.
Security Best Practices¶
- ✅ Store keys in environment variables
- ✅ Use HTTPS for all requests
- ✅ Rotate keys periodically
- ✅ Create separate keys for different environments
- ❌ Never hardcode keys in source code
- ❌ Don't share keys via email or chat
- ❌ Don't commit keys to version control
Revoking Keys¶
To revoke a compromised key:
- Go to Settings → API Keys
- Find the key in the list
- Click Revoke or Delete
- Generate a new key for your applications