Skip to main content

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
###Guest Keys Temporary 24-hour keys for testing and evaluation. Format: 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:
Response:
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:
Response:
Important: Save your API key securely - it will only be shown once!

Login to Existing Account

Retrieve your API key if you already have an account:
Response:
After 5 failed login attempts, your account will be locked for 30 minutes for security.

Create Guest Account

Get a temporary key for testing (no email required):
Response:

Using Your API Key

Include your API key in the X-API-Key header for all requests:
Store your API key in an environment variable:
Then use it in requests:

API Key Management

View Your Profile

Check your account details and credit balance:
Response:

Regenerate API Key

If your key is compromised, regenerate it immediately:
Response:
Your old API key will stop working immediately. Update all applications using the old key.

View Login History

Monitor recent login activity for security:
Response:

Multi-Factor Authentication (MFA)

Add an extra layer of security with email-based MFA.

Enable MFA

Response:

Login with MFA

When MFA is enabled, logging in is a two-step process: Step 1: Login with credentials
Response:
Step 2: Verify MFA code
Response:

Disable MFA

Requires password confirmation:

Password Management

Reset Password

If you forgot your password: Step 1: Request reset code
Step 2: Reset with OTP

Security Best Practices

Protect Your API Key

Add your API key to .gitignore and use environment variables instead.
Store API keys in environment variables, not in code.
Regenerate API keys periodically (every 90 days recommended).
Create different accounts for development, staging, and production.
Regularly check your login history for suspicious activity.
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
Guest Users:
  • 50 requests/day
  • 60 requests/hour
Rate limit headers in responses:

Error Responses

Invalid API Key

HTTP Status: 401 Unauthorized

Expired Guest Key

HTTP Status: 401 Unauthorized

Rate Limit Exceeded

HTTP Status: 429 Too Many Requests Includes Retry-After header with seconds until reset.

Account Locked

HTTP Status: 423 Locked

Code Examples

Python with requests

JavaScript with fetch

cURL with environment variable

FAQs

Register at /user/register, verify your email with the OTP, and you’ll receive your permanent API key.
No, each account has one API key. Create multiple accounts if you need separate keys for different environments.
Login to your account at /user/login to retrieve your existing API key.
Yes, use the /user/regenerate-api-key endpoint to generate a new key. Your old key will stop working immediately.
Guest keys only have access to Free tier endpoints. Upgrade to a registered account for full access.
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
Need help? Contact us at support@fincept.in or join our Discord community.