For householdsOverview

For households

If you are finding temporary housing for yourself — you signed up to Havnly on your own rather than being invited by an insurer — this is your part of the API.

https://api.havnly.ai/functions/v1/household

It does what you do in the app, for the requests you opened yourself: open a request, follow it, look at the homes you are sent, and answer them.

Who gets a household key

You are…Your API
A household that signed up on its ownThis one — /household
A household invited by an insurer or housing companyNone of your own. The organisation that invited you holds the API and runs the request.
An insurer, TPA or housing company/claims
A landlord or property manager/properties

A household key reaches only the requests you opened yourself. It cannot see anyone else’s, and it is refused by /claims and /properties.

Getting a key

In Havnly, open API Console → API keys and create one. Choose what it may do:

ScopeAllows
claims:readList and read your requests, their timeline and the homes you have been sent
claims:writeOpen and edit requests, and answer homes — save, decline, apply, dates, cancel, refund

The key is shown once. Havnly keeps only a hash of it.

A household key stops working if the account behind it stops being a household that signed up on its own.

Live and sandbox

PrefixWhat it does
Livehvn_pk_…Opens real requests. A coordinator is assigned and real homes are found.
Sandboxhvn_sk_…For building against. Requests are marked sandbox: no coordinator is assigned, nobody is contacted, and only demonstration homes are ever offered.

Sandbox requests are only visible to sandbox keys, and live ones only to live keys.

How it runs

Every call acts as you, through the same steps the app takes when you click the button. So the API accepts and refuses exactly what the app does — if the app would say “No lease dates to approve yet”, so does the API.

What it covers

  • Your requests — open, list, read and edit a request, and its timeline
  • Your homes — the homes you have been sent, and what you do with each one

Not yet over the API: tours, ALE expenses, documents, deposit returns, and webhooks for household requests. Use the app for these for now.