OpenAPI Specification
Machine-readable API definition for code generators, agent frameworks, and SDK builders.
OpenAPI 3.1 — JSON
Compatible with Swagger, Postman, and all OpenAPI tooling
GET https://api.bithaven.ai/openapi.jsonEndpoints Summary
Auth/api/v1/auth
POST
/signupCreate account (returns JWT + user)POST
/loginAuthenticate (returns JWT + user)POST
/logoutInvalidate tokenGET
/meGet current userMaster Wallet/api/v1/wallet
GET
/Wallet details + deposit addressGET
/balanceCurrent USDC balanceGET
/depositsPaginated deposit historyPOST
/withdrawWithdraw USDC (requires password)Agent Wallets/api/v1/agent-wallets
POST
/Create agent walletGET
/List all agent walletsGET
/:idGet wallet detailsPATCH
/:idUpdate labelPOST
/:id/fundFund from master walletPOST
/:id/withdrawWithdraw to master walletPOST
/:id/freezeFreeze walletPOST
/:id/unfreezeUnfreeze walletAPI Keys/api/v1/agent-wallets/:walletId/keys
POST
/Create API key (returns rawKey once)GET
/List keys for walletPOST
/:keyId/revokeRevoke a keyPOST
/:keyId/rotateRotate key (revoke + create)Policies/api/v1/agent-wallets/:walletId/policies
POST
/Create policyGET
/List policies for walletPATCH
/:policyIdUpdate policyDELETE
/:policyIdDelete policyTransactions/api/v1/agent-wallets/:walletId/transactions
GET
/List transactions for walletGET
/pendingList pending approvalsPOST
/:txId/approveApprove transactionPOST
/:txId/rejectReject transactionMCP Tools/mcp/v1
POST
/check-balanceAgent balance + remaining capPOST
/send-paymentInitiate USDC transferPOST
/get-tx-historyAgent transaction historyPOST
/request-approvalEscalate to humanSubscriptions/api/v1/subscription
GET
/tierCurrent plan + usage + limitsGET
/plansAll plan definitionsPOST
/checkoutStart Stripe checkoutPOST
/portalOpen Stripe billing portalPOST
/cancelCancel at period endPOST
/resumeResume pending cancellationAuthentication
The API uses two authentication methods depending on the caller:
Human (JWT)
For account management, wallet operations, policy setup
Authorization: Bearer <jwt>Agent (API Key)
For MCP tools — balance, payments, history
Authorization: Bearer bh_live_...Use With Tools
Import to Postman
File → Import → Link → https://api.bithaven.ai/openapi.jsonGenerate TypeScript client
npx openapi-typescript https://api.bithaven.ai/openapi.json -o bithaven-api.d.tsGenerate Python client
openapi-python-client generate --url https://api.bithaven.ai/openapi.json