Skip to main content
McpApi reuses the same configured HEVN API key as the rest of the CLI. Transfer endpoints no longer require an app id; the backend resolves the owning app from the calling API key.

Balance

CLI surface:
Purpose:
  • returns the MCP wallet email,
  • returns the MCP wallet address,
  • returns USDC balance,
  • returns remaining allowance.

API-key introspection

CLI surface:
Purpose:
  • returns the user name and email,
  • returns the owning app id and app name,
  • returns granted API-key scopes,
  • returns balance and remaining spend limit.

Submit transfer

CLI surfaces:
Headers:
If the CLI is configured with HEVN_API_KEY_HEADER=X-Api-Key, the same request uses X-Api-Key: hvn_... instead. Invoice transfer payload:
Contact transfer payload:
Payout quote transfer payload:
At least one of contactId, invoiceId, or quoteId is required.

Transfer history

Query parameters: Example:
The current CLI exposes transaction history through hevn transfer list, which uses the app /transactions endpoint. The MCP transfer history wrapper exists in McpApi for direct internal use.

Legacy routes

Older API specs exposed POST /apps/{app_id}/transfer. The current CLI does not call that route and does not read HEVN_APP_ID.