Authorization:
GET /schema, which is public and does not require a key.
What a Key Does
A key acts on behalf of the account that created it. It can do exactly what the account can do in the portal, with the same limitations:- the listings created via the API belong to the account, as if you had added them through the form;
- if you are a member of an agency, the listing gets the agency, just like when you publish from the account;
- if you are an owner or admin of the agency, you can see and manage through the API the listings of your colleagues;
- the name and contact email of the listing are those of the account, and the phone number is the one from the account unless you send another one in
contact_phone.
How to Create a Key
1
Open Settings → API
In production, at housera.ro/setari/api. In sandbox, at
https://staging.housera.ro/setari/api. You need an account with a confirmed email.2
Choose the name, permissions, and validity
The name helps you recognize the key later (for example
crm-productie). You only check the permissions you need.3
Copy the key
The key is shown only once, immediately after creation. Housera does not store it in plaintext, so it cannot show it to you again. If you lose it, you revoke it and create another one.
Permissions
A complete integration requires all three. For a panel that only displays the listings,
listings:read is sufficient.
Prefixes
The prefix immediately tells you on what environment a key operates:
The complete key has the form
<id>|hsr_live_<secret>. Send the entire string, with the id and the vertical bar.
Validity
Each key expires. Upon creation, you choose 30, 90 or 365 days. The expiration date is visible on the Settings → API page, next to the creation date and the last usage date. When a key expires, requests receive401. To avoid interruptions, create the new key before the deadline, put it in your system, and then revoke the old one.
An account has at most 10 keys at the same time: enough for one key per integration, with room for rotation.
Revocation
From Settings → API, you revoke any key with one click. The effect is immediate: the next request with that key receives401. Key creation and revocation appear in the activity log of the account.
Authentication Errors
The body is a “problem details” object (RFC 9457), with a stable
code that you can test in your code:
403, code is missing_ability when the key lacks the required permission and forbidden otherwise.