Platform

Casafari es la plataforma de inteligencia de datos inmobiliarios nativa para agentes de IA. El índice inmobiliario más completo de Europa: un grafo inmobiliario limpio y deduplicado de propiedades residenciales y comerciales, en venta y alquiler, en 16 países.El índice inmobiliario más completo de Europa: un grafo inmobiliario limpio y deduplicado.

Cómo se construye el grafo

Comparables & Valuation · REST API

Initialize an AI Builder session (v2)

POSThttps://api.casafari.com/api/v2/comparables/ai-builder
Token Bearer15 parameters

En la API existente en https://api.casafari.com (clientes con contrato): envíe Authorization: Bearer $CASAFARI_TOKEN; consulte cómo obtener un token. Usuarios nuevos: la API REST de la plataforma, claves de API de la plataforma.

Over MCP: no tool does this. MCP and REST compared.

Description

Initializes an AI Builder session from a saved CMA (valuation) and returns the generated report ID along with the URL of the AI Builder session.

Cuerpo de la solicitud

Content type application/json. Opcional. Tipo: object.

valuation_idintegerobligatorio
ID of the saved CMA to build the session from.
agentobjectnullable
Agent data to display in the Builder.
11 properties
first_namestringobligatorio
First name of the agent displayed in the Builder.
last_namestringnullable
Last name of the agent displayed in the Builder.
shop_namestringnullable
Name of the agency or brokerage displayed alongside the agent information.
photo_urlstring (uri)nullable
URL to the profile picture of the agent.
pattern ^(?:[a-z0-9.+-]*)://(?:[^\s:@/]+(?::[^\s:@/]*)?@)?(?:(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)(?:\.(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)){3}|\[[0-9a-f:.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::[0-9]{1,5})?(?:[/?#][^\s]*)?\z
emailcadena (correo electrónico)nullable
Agent's email address displayed in the Builder and available for client contact.
phonestringnullable
Phone number of the agent.
whatsappstringnullable
Agent's WhatsApp phone number displayed as a contact option. Include the country code.
instagramstringnullable
Agent's Instagram username or profile identifier displayed in the Builder.
telegramstringnullable
Agent's Telegram username displayed in the Builder.
agent_webpagestring (uri)nullable
Public URL of the agent's personal or professional webpage.
pattern ^(?:[a-z0-9.+-]*)://(?:[^\s:@/]+(?::[^\s:@/]*)?@)?(?:(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)(?:\.(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)){3}|\[[0-9a-f:.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::[0-9]{1,5})?(?:[/?#][^\s]*)?\z
agent_biostringnullable
Short biography or description of the agent. Displayed in the Builder only if the photo_url field is provided in the request.
languagestring
Language of the Builder session.
en es pt
por defecto "en"
external_refstringnullable

Ejemplo de solicitud

Solo marcadores de posición: reemplace el token y los valores por los suyos.

curl
curl -X POST "https://api.casafari.com/api/v2/comparables/ai-builder" \
  -H "Authorization: Bearer $CASAFARI_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "valuation_id": 1,
  "agent": {
    "first_name": "John",
    "last_name": "Doe",
    "shop_name": "Example Realty",
    "photo_url": "https://example.com/photo.jpg",
    "email": "john.doe@example.com",
    "phone": "+351912345678",
    "whatsapp": "+351912345678",
    "instagram": "example_agent",
    "telegram": "example_agent",
    "agent_webpage": "https://example.com/agent-page",
    "agent_bio": "Experienced real estate agent."
  },
  "language": "en",
  "external_ref": "CRM-12345"
}'

Respuestas

200 OK

Tipo: object.

Mostrar la estructura de la respuesta (2 campos)
idstringobligatorio
ID of the initialized AI Builder session.
urlstringobligatorio
URL of the initialized AI Builder session.
Ejemplo de la descripción de la API
JSON
{
  "id": "6a43a32841b3e35c735b9053",
  "url": "https://www.casafari.com/market-report/valuation/builder/6a43a32841b3e35c735b9053"
}

401 No autorizado

Tipo: object.

Mostrar la estructura de la respuesta (1 campo)
detailstring
Descripción del error encontrado.

403 Prohibido

Tipo: object.

Mostrar la estructura de la respuesta (1 campo)
detailstring
Descripción del error encontrado.

404 No encontrado

Tipo: object.

Mostrar la estructura de la respuesta (1 campo)
errorsobject
Descripción de los errores encontrados.

Consejo: añada .md a cualquier URL para leerla como Markdown.