For hotels, inns and businesses
Inzama Home API
Sync your properties with Inzama Home from your PMS, channel manager or in-house system: publish listings, update rates and availability, and receive bookings in real time. The API is exclusive to host accounts.
1 · Getting started
- Create your host account and get it verified (businesses: CNPJ and Cadastur).
- Go to Host → Integrations and create a key. It is shown only once.
- Send it with every request:
Authorization: Bearer ihk_live_…
curl https://inzamahome.com/api/v1/me \ -H "Authorization: Bearer ihk_live_TU_LLAVE"
Want to try it risk-free? Ask for a demo host account at info@inzamahome.com.
2 · General rules
- JSON UTF-8. Amounts in BRL cents (R$ 250,00 =
25000). DatesYYYY-MM-DD;checkout/todoes not include that night. - Identify a listing by its numeric id or by your own code:
ext:MI-HAB-101. - Limit: 120 requests per minute per key (response
429withretry-after). - Every response includes
x-request-id. If something fails, quote it to support. - Errors:
{"error":{"code":"validation_error","message":"…","field":"title"}}with HTTP 400, 401, 403, 404, 409, 422, 429 or 500. - Listings created via the API are placed under review: Inzama approves them before publishing (hotels: CNPJ, Cadastur, license and room types; at least 5 photos).
- Guest data: first name and country only. Phone and email are never delivered through the API.
3 · Endpoints
| GET | /me | Your account and limits. |
| GET | /meta | Valid cities, types, amenities, categories and events. |
| GET | /listings | Your listings. Filters ?external_id= and ?status=. |
| POST | /listings | Creates a listing (with photo_urls, 5 to 8 https URLs). |
| GET · PATCH | /listings/{id} | Reads or updates. status only toggles approved ↔ paused. |
| PUT | /listings/{id}/photos | Replaces the gallery (5 to 8 JPG/PNG/WebP photos, max. 8 MB). |
| GET · PUT | /listings/{id}/availability | Per-night calendar; block and unblock date ranges. |
| GET · PUT | /listings/{id}/rates | Base price, cleaning fee, minimum stay and date-based rules. |
| GET | /bookings | Bookings. Filters: status, checkin_from, checkin_to, created_since, listing_id, limit, cursor. |
| GET | /bookings/{code} | Details of a booking. |
| GET · POST · DELETE | /webhooks | Manage your webhooks (max. 5). |
Create a listing
curl -X POST https://inzamahome.com/api/v1/listings \
-H "Authorization: Bearer ihk_live_TU_LLAVE" -H "Content-Type: application/json" \
-d '{
"external_id": "POUSADA-SUITE-12",
"title": "Suite vista al mar en Canasvieiras",
"description": "Suite con balcón, desayuno incluido y piscina…",
"city": "florianopolis", "neighborhood": "Canasvieiras", "type": "posada",
"price_cents": 45000, "cleaning_cents": 0, "min_nights": 2,
"max_guests": 3, "bedrooms": 1, "beds": 2, "baths": 1,
"amenities": ["wifi","piscina","desayuno","aire"],
"host_category": "Pousada", "cnpj": "…", "cadastur": "…", "license_number": "…", "license_valid": true,
"room_types": [{"name":"Suite mar","qty":4,"guests":3}],
"photo_urls": ["https://…/1.jpg","https://…/2.jpg","https://…/3.jpg","https://…/4.jpg","https://…/5.jpg"]
}'Use GET /meta for the valid values of city, type and amenities. For hotels and inns, host_category, cnpj, cadastur, license_number, license_valid and room_types are required.
Block nights and change rates
# Block from the 22nd to the 24th (nights of the 22nd and 23rd)
curl -X PUT https://inzamahome.com/api/v1/listings/ext:POUSADA-SUITE-12/availability \
-H "Authorization: Bearer ihk_live_TU_LLAVE" -d '{"block":[{"from":"2026-12-22","to":"2026-12-24","reason":"PMS"}]}'
# High-season rate (from/to inclusive)
curl -X PUT https://inzamahome.com/api/v1/listings/ext:POUSADA-SUITE-12/rates \
-H "Authorization: Bearer ihk_live_TU_LLAVE" \
-d '{"price_cents":45000,"rules":[{"from":"2026-12-26","to":"2027-01-05","price_cents":90000,"label":"Año nuevo","min_nights":4}]}'4 · Webhooks
We send a POST JSON to your public https URL. Events: booking.confirmed, booking.cancelled, listing.approved, listing.rejected and ping (test). We retry up to 5 times if your server does not return 2xx within 5 seconds.
{ "id": "evt_9f2c…", "type": "booking.confirmed", "api_version": "v1",
"created": "2026-12-01T14:03:00.000Z",
"data": { "code": "IH-AB12CD34", "status": "confirmed", "checkin": "2027-02-10", … } }Verify the signature
Each delivery includes X-InzamaHome-Signature: t=<timestamp>,v1=<hmac>, where hmac = HMAC-SHA256 of "timestamp.body" with your secret whsec_…. Reject deliveries more than 5 minutes off.
import crypto from "node:crypto";
function verify(rawBody, header, secret) {
const [t, v1] = header.split(",").map((p) => p.split("=")[1]);
const expected = crypto.createHmac("sha256", secret).update(t + "." + rawBody).digest("hex");
const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300;
return fresh && crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}5 · Support
Hosts have a priority channel under Host → Support (category “API”). From Integrations, one click on “Ask for help” attaches the request_id of the failed call. Also: info@inzamahome.com.
Version v1. Breaking changes will be published as v2 with prior notice.
