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
- returns the MCP wallet email,
- returns the MCP wallet address,
- returns USDC balance,
- returns remaining allowance.
API-key introspection
- 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
HEVN_API_KEY_HEADER=X-Api-Key, the same request uses X-Api-Key: hvn_... instead.
Invoice transfer payload:
contactId, invoiceId, or quoteId is required.
Transfer history
| Parameter | Type | Purpose |
|---|---|---|
limit | integer | Maximum number of transfers to return. |
offset | integer | Pagination offset. |
idempotency_key | string | Filter or look up by idempotency key. |
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 exposedPOST /apps/{app_id}/transfer. The current CLI does not call that route and does not read HEVN_APP_ID.