Authentication
The Infinite API uses API keys for authentication. All requests must include a valid API key in the Authorization header.API Keys
API keys are unique identifiers that authenticate your requests to the Infinite API. Each key is tied to your organization and determines what resources you can access.Key Format
API keys follow this format:- Live keys:
sk_live_...- For production use - Sandbox keys:
sk_sandbox_...- For development and testing
Making Authenticated Requests
Include your API key in theAuthorization header using the Bearer scheme:
Error Responses
Authentication failures return specific error codes:Invalid API Key
Missing Authorization Header
Insufficient Permissions
Best Practices
Secure Storage
Secure Storage
Store API keys securely using environment variables or secret management systems. Never hardcode them in your application.
Key Rotation
Key Rotation
Regularly rotate your API keys for security. Generate new keys in the
dashboard and update your applications before revoking old keys.
Environment Separation
Environment Separation
Use different API keys for sandbox and production environments.
This ensures proper isolation and prevents accidental production changes.