Get types (v1)
GET
https://api.casafari.com/api/v1/references/typesBearer token0 parameters
Send Authorization: Bearer $CASAFARI_TOKEN; see how to get a token.
Over MCP: no tool does this. MCP and REST compared.
Description
Returns a list of all possible estate types.
Example request
Placeholders only: replace the token and the values with your own.
curl "https://api.casafari.com/api/v1/references/types" \
-H "Authorization: Bearer $CASAFARI_TOKEN"Responses
200 OK
Type: object[].
Show the response shape (6 fields)
typesobject[]requiredList of grouped property types.
2 properties
groupstringrequiredName of the group of types.
namesstring[]requiredList of type names that belong to a specific group.
types_with_countriesobject[]requiredList of type names with countries where each type is available.
2 properties
namestringrequiredType name.
countriesstring[]requiredList of countries where the type is available.
Example from the API description (long arrays shortened)
{
"types": [
{
"group": "apartment",
"names": [
"apartment",
"studio"
]
},
{
"group": "house",
"names": [
"country_house",
"house"
]
}
],
"types_with_countries": [
{
"name": "apartment",
"countries": [
"Portugal",
"Spain"
]
},
{
"name": "studio",
"countries": [
"Portugal",
"Spain"
]
}
]
}401 Unauthorized
Type: object.
Show the response shape (1 fields)
detailstringDescription of the error encountered.
403 Forbidden
Type: object.
Show the response shape (1 fields)
detailstringDescription of the error encountered.