Source: https://www.brixit.io/docs/api-listings-create

# Create listing

To create listing in Brixit, send a POST request to /api/automation/v1/execute with operation set to listings.create. Use the data fields below for supported input and filters.

[Listings API](https://www.brixit.io/docs/api-listings) · `listings.create`

[URL](https://www.brixit.io/docs/api-listings-create#url-and-authentication) · [Fields](https://www.brixit.io/docs/api-listings-create#fields) · [Example](https://www.brixit.io/docs/api-listings-create#example-request) · [Response](https://www.brixit.io/docs/api-listings-create#response) · [Try it](https://www.brixit.io/docs/api-listings-create#try-it)

## URL and authentication

`POST https://YOUR-BACKEND/api/automation/v1/execute`

Send `Authorization: Bearer <connection key>`, `Accept: application/json` and
`Content-Type: application/json`. [Create a connection](https://www.brixit.io/docs/api#get-connected).

This operation requires **write access** and CRM permission `add_listing`.
The gateway invokes `POST /api/v1/app/listing` internally.
Use the POST URL above with your automation key, including for read and delete operations.

## Request parameters

| Key | Type | Requirement |
| --- | --- | --- |
| `operation` | string | Required; exactly `listings.create` |
| `data` | object | Required; see fields below |
| `idempotency_key` | string | Required; 8–100 characters. Unique per action; keep unchanged for identical retries. |

## Fields

New binary uploads are not supported through this gateway. Upload images/documents through the CRM. Creation uses assigned_to_id for assignment. Required size depends on the listing type and installation configuration.

Fields below belong inside `data`. Dot paths describe nested objects; `*` means each
array item. `nullable` permits null and `sometimes` validates a supplied field.
`in:` lists allowed values; `min:` and `max:` limit the value, length or item count.
`exists:` and `exists_in_company:` require a valid record ID. Conditional rules
such as `required_if` and `required_with` refer to other fields in the same payload.
Use YYYY-MM-DD for date-only values and timestamps with timezone offsets for follow-ups.

| Field | Type | Requirement | Format / validation |
| --- | --- | --- | --- |
| `title` | string | Required | required; string |
| `description` | string | Required | required; string |
| `bathrooms` | integer | Optional | nullable; integer |
| `is_exclusive` | boolean | Optional | nullable; boolean |
| `bedrooms` | integer | Optional | nullable; integer |
| `parkings` | integer | Optional | nullable; integer |
| `price` | number | Optional | nullable; numeric |
| `size` | number | Conditional | numeric — Required unless the listing type is land/agricultural when those types are configured; otherwise nullable. |
| `plot_size` | number | Optional | nullable; numeric |
| `total_floors` | integer | Optional | nullable; integer; min:1 |
| `status` | string | Required | required; string; in:draft,active,under_negotiation,reserved,finalizing,closed,archived |
| `furnished` | string | Optional | nullable; string; in:furnished,semi-furnished,unfurnished |
| `developer_id` | integer | Optional | nullable; integer; exists_in_company:developers |
| `build_year` | string | Optional | nullable; date_format:Y |
| `images` | array | Optional | nullable; array |
| `images.*` | string&#124;object | Optional | nullable — Existing media reference: string or object with id, url, or key. New uploads are not supported by the automation gateway. Use the CRM to upload media. |
| `apply_watermark` | boolean | Optional | nullable; boolean |
| `documents` | array | Optional | nullable; array |
| `documents.*` | file | Optional | nullable; file; mimes:ppt,pptx,doc,docx,pdf,xls,xlsx; max:10240 —  Binary upload is not supported by the JSON automation gateway; use the CRM upload interface. |
| `default_image` | string | Optional | nullable; string |
| `listing_purpose` | string | Required | required; string; in:sell,rent |
| `floor_number` | integer | Optional | nullable; integer |
| `unit_number` | string | Optional | nullable; string |
| `source_id` | integer | Optional | nullable; integer; integer; exists_in_company:listing_sources |
| `default_period` | string | Optional | nullable; string |
| `rent_frequency` | string | Optional | nullable; string; in:daily,weekly,monthly,yearly,quarterly,half_yearly |
| `video_link` | string | Optional | nullable; url |
| `vr_link` | string | Optional | nullable; url |
| `listing_type_id` | integer | Required | required; integer; exists:listing_types,id |
| `location` | object | Required | required; array |
| `location.address` | string | Required | required; string |
| `location.long` | number | Required | required; numeric |
| `location.lat` | number | Required | required; numeric |
| `location.place_id` | string | Required | required; string |
| `owner_id` | integer | Optional | nullable; integer; exists_in_company:leads |
| `assigned_to_id` | integer | Optional | nullable; integer; exists_in_company:users |
| `amenities` | array | Optional | nullable; array |
| `amenities.*` | integer | Optional | nullable; integer; integer; exists_in_company:amenities |
| `floor_plans` | array | Optional | nullable; array |
| `floor_plans.*.title` | string | Conditional | required_with:floor_plans; string |
| `floor_plans.*.bedrooms` | integer | Optional | nullable; integer |
| `floor_plans.*.price` | number | Optional | nullable; numeric |
| `floor_plans.*.size` | string | Optional | nullable; string |
| `floor_plans.*.images` | array | Optional | nullable; array |
| `floor_plans.*.images.*` | image | Optional | nullable; image; mimes:jpeg,jpg,png,webp,gif,svg; max:10240 —  Binary upload is not supported by the JSON automation gateway; use the CRM upload interface. |
| `database_record_id` | integer | Optional | nullable; integer; exists:cold_calling_leads,id |
| `custom_fields_data` | object | Optional | array — Object keyed by field_&lt;id&gt;. Required fields depend on your installation. URL fields require a URL; percentages are 0–100. File custom fields cannot be uploaded through this JSON API. |

## Example request

Replace the example IDs and values with records in your installation. Supply any
additional custom fields required by your company.

```json
{
  "operation": "listings.create",
  "data": {
    "title": "Example apartment",
    "description": "Synthetic listing for API testing.",
    "status": "draft",
    "listing_purpose": "sell",
    "listing_type_id": 1,
    "size": 1000,
    "location": {
      "address": "Dubai Marina, Dubai",
      "lat": 25.0805,
      "long": 55.1403,
      "place_id": "REPLACE_WITH_REAL_PLACE_ID"
    }
  },
  "idempotency_key": "example-event-12345"
}
```

## Response

Returns the created listing in `data`. Use `data.id` for subsequent requests. Related fields depend on the resource and your permissions.

The gateway preserves the underlying HTTP status and JSON body. Successful requests return **HTTP 200**. A response may also include localized message fields.

Illustrative response excerpt (additional fields may be returned):

```json
{
  "status": "success",
  "data": {
    "id": 456,
    "title": "Example apartment",
    "status": "draft",
    "listing_purpose": "sell"
  }
}
```

## Errors

| HTTP status | Meaning |
| --- | --- |
| 400 | A CRM business rule rejected the action. |
| 401 | Missing, invalid, expired or revoked connection key. |
| 403 | Connection access or CRM permissions do not allow this action. |
| 404 | Operation or record unavailable. |
| 409 | This idempotency key was already used with a different request. |
| 413 | Request or result exceeds its size limit; reduce payload or page size. |
| 422 | Missing or invalid fields, or a CRM business rule rejected the operation. |
| 429 | Rate limit exceeded; wait before retrying. |
| 500 | The server could not complete the operation. |

Validation failures may return `message` / `errors`, or an `error` string with
an optional `fields` array. The tester shows the actual HTTP status and full body.
[Read about limits and retries](https://www.brixit.io/docs/api#errors-and-limits).

## Try it

[Open the interactive API tester](https://www.brixit.io/docs/api-listings-create#try-it)
