# New Property Created (Instant) — Melo

> Emit new event when a new property ad is created in Melo. Requires a Production Environment.

- Key: `melo-new-property-created`
- Type: Trigger (Instant)
- Version: 0.0.1
- App: Melo (`melo`) — https://pipedream.com/apps/melo.md
- This page (HTML): https://pipedream.com/apps/melo/triggers/new-property-created
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/melo/sources/new-property-created/new-property-created.mjs

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `title` | `string` | Yes | Title of the created search. |
| `transactionType` | `string` | Yes | Type of transaction. Sell 0, Rent 1. |
| `propertyTypes` | `string[]` | Yes | Type of property. Apartment 0, House 1, Building 2, Parking 3, Office 4, Land 5, Shop 6. Example: propertyTypes[]=0&propertyTypes[]=1 |
| `bedroomMin` | `integer` | No | Minimum number of bedrooms in the property. |
| `bedroomMax` | `integer` | No | Maximum number of bedrooms in the property. |
| `budgetMin` | `integer` | No | Minimum budget for the property. |
| `budgetMax` | `integer` | Yes | Maximum budget for the property. |
| `excludedCities` | `string[]` | No | Cities to be excluded. |
| `excludedSiteCategories` | `string[]` | No | Site categories to be excluded. |
| `furnished` | `boolean` | No | Whether the property is furnished or not. |
| `hidePropertyContact` | `boolean` | No | Whether to hide property contact information or not. |
| `includedCities` | `string[]` | No | Included cities. |
| `includedDepartments` | `string[]` | No | Included departments. |
| `includedSiteCategories` | `string[]` | No | Included site categories. |
| `includedZipcodes` | `string[]` | No | Included zipcodes. |
| `landSurfaceMax` | `integer` | No | Maximum land surface. |
| `landSurfaceMin` | `integer` | No | Minimum land surface. |
| `lat` | `string` | No | Latitude. Will work if latitude exists in the property. |
| `lon` | `string` | No | Longitude. Will work if latitude exists in the property. |
| `pricePerMeterMax` | `integer` | No | Maximum price per meter. |
| `pricePerMeterMin` | `integer` | No | Minimum price per meter. |
| `publisherTypes` | `string[]` | No | Type of publisher. Individual 0, Professional 1. |
| `radius` | `integer` | No | Distance expressed in kilometers. Will work if latitude & longitude parameters are also set. |
| `roomMin` | `integer` | No | Minimum number of rooms. |
| `roomMax` | `integer` | No | Maximum number of rooms. |
| `surfaceMax` | `integer` | No | Maximum property surface area. |
| `surfaceMin` | `integer` | No | Minimum property surface area. |
| `withCoherentPrice` | `boolean` | No | Having properties with coherent prices. |
| `withVirtualTour` | `boolean` | No | Whether the property includes a virtual tour. |

## Returns

Events emitted by Melo.

## Run it

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const deployed = await pd.triggers.deploy({
  id: "melo-new-property-created",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    melo: { authProvisionId: "apn_xxxxxxx" },
    title: "Title",
    transactionType: "Transaction Type",
  },
  webhookUrl: "https://example.com/webhooks/melo",
})

console.log(deployed.id)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "melo-new-property-created",
    "webhook_url": "https://example.com/webhooks/melo",
    "configured_props": {
      "melo": { "authProvisionId": "apn_xxxxxxx" },
      "title": "Title",
      "transactionType": "Transaction Type"
    }
  }'
```

**MCP**

MCP servers expose Melo actions as on-demand tools.

New Property Created (Instant) is an event source, so your application deploys it with the Connect SDK or API and then either receives each event at a webhook URL or retrieves events on demand with the trigger events API.

## Event delivery

Every event is sent to the HTTP endpoint you choose when you deploy the source. Or: no webhook required — your app or agent can fetch recent events from the [trigger events API](https://pipedream.com/docs/connect/api-reference/list-trigger-events.md) instead.

---

- App: https://pipedream.com/apps/melo.md · All apps: https://pipedream.com/apps
