Returns the operations (sale, rent, short-term rental, 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/operations
Parameters
This endpoint does not receive parameters.
Sample code
GET /api/action/mapaprop-chat-ai-v1/operations 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 | operations | Array of Operation | yes | The list of operations used by the customer |
| Operation | id | int | yes | Operation ID. Constants |
| description | string | yes | Translated description of the operation |
Sample response
{
"operations": [
{ "id": 1, "description": "Venta" },
{ "id": 2, "description": "Alquiler" },
{ "id": 3, "description": "Alquiler Temporario" }
]
}