HappierleadsDocs
Embed Happierleads screens

Scenario 2: a client logs in

A client who already has a website signs in: nothing is created, your server asks for a one-time link and their leads open.

A client who already has a website (from sign-up or the one-off migration) signs in and opens the page. Nothing is created: your server only asks for a link.

Every API call, in orderClick any row: the call, a cURL to copy and the page where you can run it.

A client who already has a website (from sign-up or the one-off migration) signs in and opens the page. Nothing is created: your server only asks for a link.

Your user's browseryour pageYour serverholds both keysHappierleadsAPI + screens on your domainEmbedded screenthe iframe on your page1POST /login · your own sign-in2Set-Cookie · your session3GET /api/leads-embed?view=leads4Signed in? Find company.happierleadsWebsiteId5POST /v3/embed/sessions · Bearer hle_…6201 { url } · one use, 60 s7200 { url } · Cache-Control: no-store8<iframe src="{url}"> · the screen loads
Request to HappierleadsResponseYour own app (no Happierleads call)A check or a dashboard step
Already have clients? Before you go live, run the one-off migration: it gives every client you already have a website, the same calls as Scenario 1, so they see their screens the first time they log in.

On this page