API Keys
API keys are your credentials for accessing Fincept API. This guide covers key types, obtaining keys, managing them, and security practices.Key Types
Registered User Keys
Permanent keys for full API access. Format:fk_user_ + 43-character random string
Example: fk_user_Hy8kL2mN9pQ1rS3tU4vW5xY6zA7bC8dE9fG0hI1jK2lM3nO4pQ5rS6tU7vW8xY9z
Features:
| Feature | Available |
|---|---|
| Validity | Permanent (never expires) |
| Credit Management | Full access |
| Tier Access | Based on subscription |
| Usage Analytics | Complete history |
| MFA Support | Yes |
| Key Regeneration | Anytime |
Guest Keys
Temporary 24-hour keys for testing. Format:fk_guest_ + 43-character random string
Example: fk_guest_Aa1bB2cC3dD4eE5fF6gG7hH8iI9jJ0kK1lL2mM3nN4oO5pP6qQ7rR8sS9tT0uU1v
Features:
| Feature | Available |
|---|---|
| Validity | 24 hours |
| Credit Management | 50 credits (no top-up) |
| Tier Access | Free tier only |
| Usage Analytics | Limited |
| MFA Support | No |
| Key Regeneration | No |
Obtaining API Keys
Get Registered User Key
Step 1: RegisterGet Guest Key
No email required - instant access:Using Your API Key
Authentication Header
Include in every request:Environment Variables
Linux/macOS:In Code
Python:Managing Your API Key
Retrieve Existing Key
Login to get your current API key:Regenerate API Key
If compromised, regenerate immediately:View Key Info
Check when your key was created:Key Lifecycle
Registered User Keys
States:active- Key is valid and usablesuspended- Temporarily disabled (admin action)revoked- Permanently disabled after regeneration
Guest Keys
Auto-cleanup: Expired guest keys are automatically deleted after 7 days.Security Features
Key Validation
Every request validates:- Key format matches
fk_user_*orfk_guest_* - Key exists in database
- Key status is
active - User account is verified
- Key hasn’t expired (for guests)
Rate Limiting
API keys are rate-limited to prevent abuse:| Account Type | Limit |
|---|---|
| Guest | 60/hour, 50/day |
| Free | 500/hour |
| Basic | 1,000/hour |
| Standard | 2,000/hour |
| Pro | 5,000/hour |
IP Tracking
All key usage is logged with IP address for security auditing.Troubleshooting
Invalid API Key Error
- Check key was copied correctly (no spaces)
- Verify key hasn’t been regenerated
- For guests, check expiry time
- Login to retrieve current key
Key Not Working After Regeneration
Cause: Old key cached in application Solution: Clear environment variables and restart applicationGuest Key Expired
- Create new guest account (another 24 hours)
- Register for permanent account (350 free credits)
Best Practices
1. Store Securely
1. Store Securely
- Use environment variables
- Never commit to git
- Use password managers
- Encrypt in production configs
2. Rotate Regularly
2. Rotate Regularly
- Regenerate every 90 days
- Immediately if compromised
- Track creation dates
3. Separate Environments
3. Separate Environments
- Different keys for dev/staging/prod
- Separate accounts for team members
- Use guest keys for local testing
4. Monitor Usage
4. Monitor Usage
- Check login history regularly
- Review API usage patterns
- Set up alerts for unusual activity
5. Enable MFA
5. Enable MFA
- Add extra security layer
- Protect high-value accounts
- Required for enterprise
