Get types (v1)
https://api.casafari.com/api/v1/references/typesLegacy API (api.casafari.com). A route of the existing API for Casafari clients with a contract, not of the platform. On the platform: No platform route yet.
On the Legacy API at https://api.casafari.com (contract clients): send Authorization: Bearer $CASAFARI_TOKEN; see how to get a token. New users: the platform's REST API, platform API keys.
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[]required2 properties
groupstringrequirednamesstring[]requiredtypes_with_countriesobject[]required2 properties
namestringrequiredcountriesstring[]requiredExample 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)
detailstring403 Forbidden
Type: object.
Show the response shape (1 fields)
detailstring