Returns the property types (apartment, house, land, etc.) actually used in the customer's listings. customerId is resolved from the access token.
| Resource information | |
|---|---|
| Authentication | Required (API Token, Bearer) |
| HTTP Method | GET |
| Response | JSON |
| Version | 1 |
| Cache | 1 day |
Resource URL
https://mapaprop.app/api/action/mapaprop-chat-ai-v1/types
Parameters
This endpoint does not receive parameters.
Sample code
GET /api/action/mapaprop-chat-ai-v1/types HTTP/1.1
Host: mapaprop.app
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Authorization: Bearer {access_token}
Response
| Object | Field | Type | Required | Description |
|---|---|---|---|---|
| Response | types | Array of Type | yes | The list of types used by the customer |
| Type | id | int | yes | Property type ID. Constants |
| description | string | yes | Translated description of the type |
Sample response
{
"types": [
{ "id": 1, "description": "Departamento" },
{ "id": 2, "description": "Casa" },
{ "id": 4, "description": "Terreno" }
]
}