Get property by listing IDs (v1)
POST
https://api.casafari.com/api/v1/properties/match-by-listingsBearer token1 parameter
Send Authorization: Bearer $CASAFARI_TOKEN; see how to get a token.
Over MCP: no tool does this. MCP and REST compared.
Description
Returns a mapping properties IDs to listing IDs.
Request body
Content type application/json. Optional. Type: object.
listing_idsinteger[]requiredList of listing IDs.
at most 100 items≥ 1
Example request
Placeholders only: replace the token and the values with your own.
curl -X POST "https://api.casafari.com/api/v1/properties/match-by-listings" \
-H "Authorization: Bearer $CASAFARI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"listing_ids": [
1,
2,
3,
4
]
}'Responses
200 OK
Type: object.
Show the response shape (2 fields)
property_idintegerrequiredID of the property.
listing_idsinteger[]requiredList of listing IDs.
1–2147483647
Example from the API description (long arrays shortened)
[
{
"property_id": 12,
"listing_ids": [
1,
2
]
},
{
"property_id": 34,
"listing_ids": [
3,
4
]
}
]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.