Platform

Casafari to platforma analityczna danych nieruchomości zorientowana na agentów AI. Najpełniejszy indeks nieruchomości w Europie: zdeduplikowany i wyczyszczony graf nieruchomości mieszkalnych i komercyjnych na sprzedaż oraz na wynajem w 16 krajach.Najpełniejszy indeks nieruchomości w Europie: zdeduplikowany i wyczyszczony graf nieruchomości.

Jak budowany jest graf

Alerts · REST API

Set a feed's own webhook

PUThttps://platform.casafari.com/v1/alerts/feeds/{feed_id}/webhook
Klucz APIdarmowe (0 tokenów)2 parametry

Prześlij Authorization: Bearer $CASAFARI_API_KEY: klucz API platformy (cf_sk_...) z konsoli lub token dostępu OAuth; X-API-Key również przenosi klucz. Zobacz klucze API platformy. Darmowe: 0 tokenów.

The platform's OpenAPI file leaves the shape open; what is shown comes from the same definitions the platform publishes elsewhere: request: the hub's fragment from the platform's contract; response 200: the hub's fragment from the platform's contract.

Przez MCP: brak; ten produkt jest dostępny wyłącznie przez REST.

Description

Free (uses no tokens). Each alert delivered to this webhook costs 1 token; when the account has no tokens left, deliveries pause until it has tokens again.

Parametry ścieżki

feed_idstringwymagany

Treść żądania

Typ zawartości application/json. Opcjonalny. Typ: object.

urlstring (uri)wymagany
The feed's own webhook, https.
at most 2083 characters

Przykładowe żądanie

Tylko symbole zastępcze: zastąp token i wartości własnymi danymi.

curl
curl -X PUT "https://platform.casafari.com/v1/alerts/feeds/<feed_id>/webhook" \
  -H "Authorization: Bearer $CASAFARI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/casafari/lisbon"
}'

Odpowiedzi

200 Success.

Typ: object.

Pokaż strukturę odpowiedzi (2 pola)
urlstringwymagany
The webhook URL, https.
secretstringwymagany
The signing secret, whsec_ followed by base64. Shown when a webhook is first set; store it, it is not shown again.
Przykład z przykładowymi wartościami (identyfikatory i liczby mają charakter poglądowy)
JSON
{
  "url": "https://example.com/casafari/lisbon",
  "secret": "whsec_Z8xC7vB6nM5aS4dF3gH2jK1lQ0wE9rTy"
}

Błędy

Każdy błąd to ciało typu application/problem+json (RFC 9457) zawierające type (strona z wyjaśnieniem), title, status, detail (co zrobić), instance, code oraz request_id (do podania przy zgłoszeniu wsparcia). Błąd 402 zawiera upgrade_url, a 429 nagłówek Retry-After. Kody, które może zwrócić każdy status:

Wskazówka: dodaj .md do dowolnego URL, aby wyświetlić go jako Markdown.