Skip to main content

API Keys

All interactions with the Havn Finance API require authentication via a Bearer token provided in the Authorization header. Our infrastructure uses high-entropy, cryptographically secure keys tied directly to your registered Web3 wallet address.
Authorization: Bearer havn_live_abc123def456

Obtaining API Keys

  1. Navigate to the Havn Dashboard.
  2. Connect your funding wallet (e.g., Phantom or MetaMask).
  3. Navigate to Developer Settings > API Keys.
  4. Generate a new key with appropriate permissions (Read-Only or Full Access).
  5. Store the key securely—it will only be shown once.
Never expose your API key in client-side code, public repositories, or frontend applications. The API is designed for server-to-server communication to protect your funding source.

Key Permissions (Scopes)

API access requires explicit scope grants to limit the blast radius if a key is compromised.
ScopeDescription
read:walletView linked wallet balances and supported chains.
read:cardsView issued card details (excluding full PAN) and transaction history.
write:cardsRequest the provisioning of a new virtual card.

Rate Limits

To protect the liquidity routing engine and banking APIs, rate limits are strictly enforced at the edge.
TierRequests/secRequests/day
Developer510,000
Production50500,000
EnterpriseCustomUnlimited
Rate limit headers are included in every API response:
  • X-RateLimit-Limit: Your current tier’s request limit.
  • X-RateLimit-Remaining: Number of requests left in the current window.
  • X-RateLimit-Reset: Unix timestamp when the limit resets.