Skip to main content
With HEVN Connect, your customer links a HEVN account to you in a HEVN-hosted sign-in window and approves each payout there. Start with POST /dapi/v1/connect/sessions, which returns the URL your site opens in a popup. It is the recommended integration. HEVN provides the wallet, the sign-in and the approval screen, and your backend does the rest with its developer key.

What a client is

A HEVN account is a profile plus a Base smart wallet. With HEVN Connect, a client is your customer’s HEVN account, created in the sign-in window and linked to you when the holder allows your product there. The wallet is non-custodial. The holder’s key is the signer on it, and HEVN holds no key to it (Account structure). Your developer key is not a signer on a client’s wallet. POST /dapi/v1/clients/link returns the client’s cl_… id. Your backend sends it in X-Hevn-Account to act for that client (Acting as a client).

What your customer sees

HEVN Connect is not a full whitelabel. Your customer signs in to HEVN with Google or an email code, in a HEVN-hosted window that names your product, and approves payouts in the same window. HEVN sets the window’s title, logo and colours on request. The holder can also sign in to HEVN without your product. To keep HEVN out of your interface, see External wallets. That integration is enabled per integrator, and your product provides the wallet and its signing flow.

Integration steps

HEVN activates your integrator account before the first step works (What HEVN must enable).

Who signs

A payout booked for a linked client returns authorization: "client" and no approval. The holder signs it in a sign session (Authorization values). The refusals and their routes are in Money movement. Who signs for your own integrator account is in Accounts and control.

What you build

Bind each sign-in to the browser that started it, and exchange the code on your server (Bind the session to this browser). Do not accept a client id from the browser.

Next: Quickstart