API Reference
Complete REST API documentation for Halo Protocol. All endpoints use JSON request and response bodies.
Base URL
https://app.haloprotocol.ioAll endpoints are relative to this base URL. Authentication is performed via session tokens passed in the Authorization header.
Authentication
Wallet-based authentication using HMAC-signed session tokens. Connect your Solana wallet and receive a session token for subsequent API calls.
/api/auth/connectConnect wallet and create a session. Returns an HMAC-signed session token.
/api/auth/verifyVerify an existing session token. Returns wallet address and expiration.
/api/auth/disconnectInvalidate the current session token.
Circles
Create, manage, and query lending circles. All write operations require authentication.
/api/circlesList all available circles. Supports filtering by status, trust tier, and contribution amount.
/api/circlesCreate a new lending circle. Requires authentication. Returns the circle address.
/api/circles/:idFetch details for a specific circle including members, round state, and escrow balance.
/api/circles/:id/joinJoin an existing circle. Requires authentication and meeting the minimum trust score.
/api/circles/:id/contributeMake a contribution to the current round. Requires authentication and circle membership.
/api/circles/:id/distributeTrigger payout distribution for the current round. Requires circle authority.
/api/circles/myList circles the authenticated user is a member of.
Trust Score
Query and manage on-chain trust scores. Scores range from 0-1000 across four tiers: Newcomer, Silver, Gold, Platinum.
/api/trust-scoreFetch the trust score for the authenticated wallet. Returns score, tier, and component breakdown.
/api/trust-score/initializeInitialize a trust score account on-chain for the authenticated wallet.
/api/trust-score/batchFetch trust scores for multiple wallet addresses in a single request.
Users
Manage user profiles and query user data. Profiles are linked to Solana wallet addresses.
/api/users/meFetch the authenticated user's profile including display name, avatar, and stats.
/api/users/meUpdate the authenticated user's profile (display name, avatar URL).
/api/users/:walletFetch a public user profile by wallet address.
/api/users/:wallet/statsFetch user statistics: circles joined, circles completed, total contributions, trust score.
Webhooks
Helius-powered webhook endpoints for real-time on-chain event processing. These endpoints are called by the Helius indexer, not by clients directly.
/api/webhooks/heliusReceive and process Solana transaction events from Helius. Requires HELIUS_WEBHOOK_SECRET.
Need More Detail?
For request/response schemas, error codes, and code examples, visit our SDK documentation or browse the source code.