Skip to main content

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:

Guest Keys

Temporary 24-hour keys for testing. Format: fk_guest_ + 43-character random string Example: fk_guest_Aa1bB2cC3dD4eE5fF6gG7hH8iI9jJ0kK1lL2mM3nN4oO5pP6qQ7rR8sS9tT0uU1v Features:

Obtaining API Keys

Get Registered User Key

Step 1: Register
Step 2: Verify Email (OTP)
Response includes your API key:
Save this key immediately! Store it in a password manager or environment variable. It’s only shown once.

Get Guest Key

No email required - instant access:
Response:

Using Your API Key

Authentication Header

Include in every request:

Environment Variables

Linux/macOS:
Windows CMD:
Windows PowerShell:

In Code

Python:
JavaScript/Node.js:

Managing Your API Key

Retrieve Existing Key

Login to get your current API key:
Response:

Regenerate API Key

If compromised, regenerate immediately:
Response:
Old key stops working immediately! Update all applications before regenerating.

View Key Info

Check when your key was created:
Response includes:

Key Lifecycle

Registered User Keys

States:
  • active - Key is valid and usable
  • suspended - 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:
  1. Key format matches fk_user_* or fk_guest_*
  2. Key exists in database
  3. Key status is active
  4. User account is verified
  5. Key hasn’t expired (for guests)

Rate Limiting

API keys are rate-limited to prevent abuse:

IP Tracking

All key usage is logged with IP address for security auditing.

Troubleshooting

Invalid API Key Error

Solutions:
  • 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 application

Guest Key Expired

Solutions:
  • Create new guest account (another 24 hours)
  • Register for permanent account (350 free credits)

Best Practices

  • Use environment variables
  • Never commit to git
  • Use password managers
  • Encrypt in production configs
  • Regenerate every 90 days
  • Immediately if compromised
  • Track creation dates
  • Different keys for dev/staging/prod
  • Separate accounts for team members
  • Use guest keys for local testing
  • Check login history regularly
  • Review API usage patterns
  • Set up alerts for unusual activity
  • Add extra security layer
  • Protect high-value accounts
  • Required for enterprise

Next Steps

MFA Setup

Enable multi-factor authentication

Security Practices

Learn security best practices

Quickstart

Make your first API call

Authentication Guide

Complete authentication documentation