Create feed
https://api.casafari.com/alerts-api/feedsLegacy API (api.casafari.com). Eine Route der bestehenden API für Casafari-Kunden mit Vertrag, nicht der Plattform. Auf der Plattform: Noch keine Plattform-Route verfügbar.
Für die Legacy API unter https://api.casafari.com (Vertragskunden): Senden Sie Authorization: Bearer $CASAFARI_TOKEN; siehe wie Sie ein Token erhalten. Für neue Nutzer: die REST API der Plattform, Plattform-API-Schlüssel.
Description
Create a new alert feed that delivers matching real estate events to your webhook URL.
Alert Delivery Format
Events are delivered as a POST request with a single JSON object body:
{
"alert_id": 100042,
"url": "https://www.casafari.com/listing/12345",
"address": "Rua do Exemplo 12, Lisbon",
"location": "Lisbon",
"sale_status": "active",
"sale_price": 250000,
"sale_price_psqm": 2500.0,
"sale_currency": "EUR",
"rent_status": "none",
"rent_price": 0,
"rent_period": "none",
"rent_price_psqm": 0.0,
"rent_currency": "EUR",
"thumbnails": [
"https://cdn.example.com/thumb1.jpg"
],
"matched_feeds": [
{
"feed_id": 42,
"feed_name": "My Alert Feed"
}
]
}Your server must respond with HTTP 200. Any other status code is treated as a failure.
Before You Start: Configure Your Webhook
Feeds deliver to your per-user webhook URL — one URL for all feeds, managed separately:
PUT /webhooks— set your delivery URL (it is probed with a GET and must answer 200)- Create feeds — this endpoint returns 409 until the webhook is configured
Changing the URL via PUT /webhooks instantly affects all feeds, including already-queued alerts.
Retry Policy
If your server does not respond with HTTP 200 within 5 seconds, delivery is retried — 60 seconds after the first failure, then every 10 minutes — until the alert expires (typically 24h). Feeds are never disabled automatically.
Authentication of deliveries
Every delivery is signed with Standard Webhooks: each POST
carries webhook-id, webhook-timestamp, and webhook-signature headers. Verify the
HMAC-SHA256 signature over the raw request body using the secret from PUT /webhooks
(rotate it via POST /webhooks/rotate-secret).
Request-Body
Content-Type application/json. Erforderlich. Typ: object.
feed_nameZeichenfolgeerforderlichfiltersobjecterforderlich28 properties
location_idsinteger[]kann null seintypesstring[]kann null sein42 zulässige Werte
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel building other_commercial restaurant werkstatt urban_plot rural_plot room parking garage other apartment_building office_building mix_use_building apartment_development house_developmentbusiness_typeZeichenfolgeerforderlichsale rentstatuses(string | string)[]kann null seinalert_subtypesstring[]kann null seinnew price_increased price_decreased reserved delisted soldcustom_locationsobject[][]kann null sein2 Eigenschaften
latitudenumbererforderlichlongitudenumbererforderlichprivatebooleankann null seinprice_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinprice_psqm_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinbathrooms_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinbedrooms_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seintotal_area_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinnew_developmentbooleankann null seinbankbooleankann null seinauctionbooleankann null seinconstruction_year_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinplot_area_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinfloorsstring[]kann null seinno_floor ground middle topconditionsstring[]kann null seinnew used ruin very-good otherorientationZeichenfolgekann null seinexterior interiorviewsstring[]kann null seinwater landscape city golf parkdirectionsstring[]kann null seinnorth south east westcharacteristicsstring[]kann null seinbalcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityhas_phonebooleankann null seinhas_emailbooleankann null seinhas_agency_namebooleankann null seinref_numbersstring[]kann null seinlisting_idsinteger[]kann null seinBeispielanfrage
Nur Platzhalter: Ersetzen Sie das Token und die Werte durch Ihre eigenen.
curl -X POST "https://api.casafari.com/alerts-api/feeds" \
-H "Authorization: Bearer $CASAFARI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"feed_name": "<feed_name>",
"filters": {
"business_type": "sale"
}
}'Antworten
200 Erfolgreiche Antwort
Typ: object.
Show the response shape (47 fields)
feed_idintegererforderlichfeed_nameZeichenfolgeerforderlichfiltersobjecterforderlich28 properties
location_idsinteger[]kann null seintypesstring[]kann null sein42 zulässige Werte
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel building other_commercial restaurant werkstatt urban_plot rural_plot room parking garage other apartment_building office_building mix_use_building apartment_development house_developmentbusiness_typeZeichenfolgeerforderlichsale rentstatuses(string | string)[]kann null seinalert_subtypesstring[]kann null seinnew price_increased price_decreased reserved delisted soldcustom_locationsobject[][]kann null sein2 Eigenschaften
latitudenumbererforderlichlongitudenumbererforderlichprivatebooleankann null seinprice_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinprice_psqm_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinbathrooms_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinbedrooms_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seintotal_area_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinnew_developmentbooleankann null seinbankbooleankann null seinauctionbooleankann null seinconstruction_year_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinplot_area_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinfloorsstring[]kann null seinno_floor ground middle topconditionsstring[]kann null seinnew used ruin very-good otherorientationZeichenfolgekann null seinexterior interiorviewsstring[]kann null seinwater landscape city golf parkdirectionsstring[]kann null seinnorth south east westcharacteristicsstring[]kann null seinbalcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityhas_phonebooleankann null seinhas_emailbooleankann null seinhas_agency_namebooleankann null seinref_numbersstring[]kann null seinlisting_idsinteger[]kann null sein409 Webhook is not configured.
Typ: object.
Antwortstruktur anzeigen (1 Feld)
detailZeichenfolgeerforderlichBeispiel aus der API-Beschreibung
{
"detail": "No webhook configured. Set your delivery URL via PUT /webhooks first."
}422 Validierungsfehler
Typ: object.
Antwortstruktur anzeigen (6 Felder)
detailobject[]5 Eigenschaften
loc(string | integer)[]erforderlichmsgZeichenfolgeerforderlichtypeZeichenfolgeerforderlichinputanyctxobject