Authentication
Fincept API uses API key authentication to secure all requests. This guide covers registration, API key management, security best practices, and multi-factor authentication.API Key Types
Registered User Keys
Permanent API keys with full access to all features and credit management. Format:fk_user_ followed by a secure random string
Features:
- Permanent access (never expires)
- Full tier access based on subscription
- Credit balance and top-up management
- Usage analytics and history
- Multi-factor authentication support
- API key regeneration
- Session management
fk_guest_ followed by a secure random string
Features:
- 24-hour validity
- Free tier access only
- 50 credits for testing
- No credit top-up
- No persistent storage after expiry
- Limited to 50 requests/day
Getting Started
Register a New Account
Create a permanent user account:An OTP (One-Time Password) will be sent to your email. You must verify within 10 minutes.
Verify Your Email
Enter the 6-digit OTP received via email:Login to Existing Account
Retrieve your API key if you already have an account:Create Guest Account
Get a temporary key for testing (no email required):Using Your API Key
Include your API key in theX-API-Key header for all requests:
Environment Variables (Recommended)
Store your API key in an environment variable:API Key Management
View Your Profile
Check your account details and credit balance:Regenerate API Key
If your key is compromised, regenerate it immediately:View Login History
Monitor recent login activity for security:Multi-Factor Authentication (MFA)
Add an extra layer of security with email-based MFA.Enable MFA
Login with MFA
When MFA is enabled, logging in is a two-step process: Step 1: Login with credentialsDisable MFA
Requires password confirmation:Password Management
Reset Password
If you forgot your password: Step 1: Request reset codeSecurity Best Practices
Protect Your API Key
Never commit keys to version control
Never commit keys to version control
Add your API key to
.gitignore and use environment variables instead.Use environment variables
Use environment variables
Store API keys in environment variables, not in code.
Rotate keys regularly
Rotate keys regularly
Regenerate API keys periodically (every 90 days recommended).
Use separate keys per environment
Use separate keys per environment
Create different accounts for development, staging, and production.
Monitor login activity
Monitor login activity
Regularly check your login history for suspicious activity.
Enable MFA
Enable MFA
Add multi-factor authentication for sensitive accounts.
Rate Limits
Prevent abuse and ensure fair usage: Registered Users:- Free tier: 500 requests/hour
- Basic tier: 1,000 requests/hour
- Standard tier: 2,000 requests/hour
- Pro tier: 5,000 requests/hour
- Enterprise tier: Custom limits
- 50 requests/day
- 60 requests/hour
Error Responses
Invalid API Key
Expired Guest Key
Rate Limit Exceeded
Retry-After header with seconds until reset.
Account Locked
Code Examples
Python with requests
JavaScript with fetch
cURL with environment variable
FAQs
How do I get an API key?
How do I get an API key?
Register at
/user/register, verify your email with the OTP, and you’ll receive your permanent API key.Can I have multiple API keys?
Can I have multiple API keys?
No, each account has one API key. Create multiple accounts if you need separate keys for different environments.
What happens if I lose my API key?
What happens if I lose my API key?
Login to your account at
/user/login to retrieve your existing API key.Can I change my API key?
Can I change my API key?
Yes, use the
/user/regenerate-api-key endpoint to generate a new key. Your old key will stop working immediately.Do guest keys support all endpoints?
Do guest keys support all endpoints?
Guest keys only have access to Free tier endpoints. Upgrade to a registered account for full access.
How long do API keys last?
How long do API keys last?
Registered user keys never expire. Guest keys expire after 24 hours.
Next Steps
Pricing Guide
Learn about credit costs and subscription plans
Quickstart
Make your first API call in 5 minutes
API Reference
Browse complete endpoint documentation
QuantLib Overview
Explore all modules and capabilities
