Comparables & Valuation · REST API
Initialize an AI Builder session (v2)
https://api.casafari.com/api/v2/comparables/ai-builderEn 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_idintegerobligatorioagentobjectnullable11 properties
first_namestringobligatoriolast_namestringnullableshop_namestringnullablephoto_urlstring (uri)nullable^(?:[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]*)?\zemailcadena (correo electrónico)nullablephonestringnullablewhatsappstringnullableinstagramstringnullabletelegramstringnullableagent_webpagestring (uri)nullable^(?:[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]*)?\zagent_biostringnullablephoto_url field is provided in the request.languagestringen es ptexternal_refstringnullableEjemplo de solicitud
Solo marcadores de posición: reemplace el token y los valores por los suyos.
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)
idstringobligatoriourlstringobligatorioEjemplo de la descripción de la API
{
"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)
detailstring403 Prohibido
Tipo: object.
Mostrar la estructura de la respuesta (1 campo)
detailstring404 No encontrado
Tipo: object.
Mostrar la estructura de la respuesta (1 campo)
errorsobject