Create a listing or save a draft
Access: Bearer token required. Also requires: KYC verified.
Creates a property owned by the authenticated user (landlordId is always the caller). The route has no role check: the only gate is that the caller's account is KYC-verified, and that applies to drafts as well.
Send multipart/form-data with photos in images (max 20) and videos (max 5); files are uploaded to Cloudinary and stored as media.images[] / media.videos[]. Nested fields (location, details, pricing, availability, shortLet, amenities, imagesMetadata, videosMetadata) must be JSON-encoded strings in multipart; a plain application/json body with real objects also works when there are no files. A media key in the body is rejected by validation.
Two validation modes. With status: "draft" only shape and upper bounds are checked (type is still required) and the listing is saved as draft, invisible to public search. Without status, the full ruleset applies and the listing is saved as pending_verification with verification.isVerified: false; any status other than draft is a 400. shortLet is required when type is SHORTLET and forbidden for every other type.
Side effects for non-drafts. The listing is compared with nearby listings and, if it looks like a duplicate, a duplicate flag is opened for the admin queue (this never fails the request and nothing about it is returned). If an admin has set a default legal partner, a legal verification assignment is created, the listing moves to legalStatus: under_legal_review, and that lawyer gets an in-app notification (socket event notifications:new), push and email. The response body is the document as first saved, so it still shows legalStatus: pending_verification even when a lawyer was auto-assigned.
Gotchas. location and its sub-fields are optional in request validation but required by the model for non-drafts, so leaving them out produces a 500 (Property validation failed: ...) rather than a 400. details.bedrooms and details.bathrooms are required by request validation for every type, including LAND.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
multipart/form-data- body
images?unknownListing photos, up to 20 files of at most 10 MB each. Accepted extensions for photos: jpg, jpeg, png, gif. The first image is the cover. Stored in upload order as media.images[].
videos?unknownUp to 5 files of at most 10 MB each. The shared upload filter only allows jpg, jpeg, png, gif, pdf, doc, docx, xls, xlsx, ppt, pptx and txt, so ordinary video files (mp4, mov) are currently rejected with a 500.
status?stringOnly draft is accepted. Omit it to submit the listing for verification.
title*string5-200 characters. For a draft: optional, may be empty, max 200.
description*string20-5000 characters. For a draft: optional, may be empty, max 5000.
type*stringOne of APARTMENT, HOUSE, VILLA, LAND, COMMERCIAL, SHORTLET, OFFICE. Required for drafts too.
location?JSON string in multipart. { state, lga, community, street, nearestLandmark?, coordinates: [longitude, latitude] }. Optional in request validation, but state, lga, community, street and coordinates are required by the model for a non-draft (missing ones give a 500). coordinates of [0, 0] is rejected for a non-draft. Extra keys are allowed but not stored.
details*JSON string in multipart. { bedrooms: 0-50, bathrooms: 0-50, squareFeet: >= 100, features?: string[] }; all three numbers are required for a non-draft. For a draft the object and every field are optional (squareFeet >= 0).
pricing?JSON string in multipart. { rentPrice?: number >= 0, salePrice?: number >= 0, currency?: NGN | USD | GHS | KES | ZAR (default NGN), rentDurationYears?: integer 1-3 (default 1) }. rentPrice is always the per-year figure; rentDurationYears is how many years are collected up front.
availability*JSON string in multipart. { availableFrom: date }. Required for a non-draft; optional for a draft.
shortLet?JSON string in multipart. { maxNights: 1-365, nightlyPrice: number >= 0, minNights?: >= 1 (default 1) }. Required when type is SHORTLET (fields optional on a draft); forbidden for any other type.
amenities?array<unknown>JSON string in multipart. Up to 40 strings of 1-40 characters each: preset keys such as wifi or the lister's own labels such as Borehole.
imagesMetadata?array<unknown>JSON string in multipart. One entry per uploaded image, matched by index. Only address (string), coordinates ([longitude, latitude]), gps ([longitude, latitude] the photo was taken at, read from EXIF by the client) and tag (room label, trimmed to 30 characters) are kept; anything else is dropped.
videosMetadata?array<unknown>JSON string in multipart. One entry per uploaded video, matched by index and stored as sent (the model keeps address and coordinates).
Listing created. status is pending_verification (or draft when status: "draft" was sent). data is the full property document; views is only present on this create response.
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X POST 'http://localhost:4000/api/v1/property/create' \ -F 'title=Serviced 3-bedroom apartment in Lekki Phase 1' \ -F 'description=Spacious serviced 3-bedroom apartment with a fitted kitchen, 24-hour power and secure parking, five minutes from Admiralty Way.' \ -F 'type=APARTMENT' \ -F 'location={"state":"Lagos","lga":"Eti-Osa","community":"Lekki Phase 1","street":"12 Admiralty Way","nearestLandmark":"Lekki Phase 1 Gate","coordinates":[3.4723,6.4474]}' \ -F 'details={"bedrooms":3,"bathrooms":3,"squareFeet":1800,"features":["Fitted kitchen","En-suite rooms"]}' \ -F 'pricing={"rentPrice":4500000,"currency":"NGN","rentDurationYears":1}' \ -F 'availability={"availableFrom":"2026-12-01"}' \ -F 'amenities=wifi' \ -F 'amenities=parking' \ -F 'amenities=Borehole' \ -F 'imagesMetadata={"address":"12 Admiralty Way, Lekki Phase 1, Lagos","coordinates":[3.4723,6.4474],"gps":[3.4725,6.4476],"tag":"Living Room"}'{ "status": 201, "success": true, "message": "Property created successfully", "data": { "_id": "665f1c2e9b1d4a0012ab34cd", "landlordId": "664a0b7e2f8c3d0011aa22bb", "agentId": null, "title": "Serviced 3-bedroom apartment in Lekki Phase 1", "description": "Spacious serviced 3-bedroom apartment with a fitted kitchen, 24-hour power and secure parking, five minutes from Admiralty Way.", "type": "APARTMENT", "status": "pending_verification", "location": { "state": "Lagos", "lga": "Eti-Osa", "community": "Lekki Phase 1", "street": "12 Admiralty Way", "nearestLandmark": "Lekki Phase 1 Gate", "coordinates": { "type": "Point", "coordinates": [ 3.4723, 6.4474 ] } }, "details": { "bedrooms": 3, "bathrooms": 3, "squareFeet": 1800, "features": [ "Fitted kitchen", "En-suite rooms" ] }, "pricing": { "rentPrice": 4500000, "salePrice": null, "currency": "NGN", "rentDurationYears": 1 }, "availability": { "availableFrom": "2026-12-01T00:00:00.000Z", "bookingCalendar": [] }, "shortLet": { "minNights": 1, "bookedRanges": [] }, "amenities": [ "wifi", "parking", "Borehole" ], "media": { "images": [ { "url": "https://res.cloudinary.com/homelinkhub/image/upload/v1764061200/homelinkhub/media/lekki-3bed-living.jpg", "metadata": { "address": "12 Admiralty Way, Lekki Phase 1, Lagos", "coordinates": [ 3.4723, 6.4474 ], "gps": [ 3.4725, 6.4476 ], "tag": "Living Room" }, "_id": "665f1c2e9b1d4a0012ab34ce" } ], "videos": [] }, "verification": { "isVerified": false }, "rating": { "averageRating": 0, "reviewCount": 0 }, "landlordKYCStatus": "VERIFIED", "legalStatus": "pending_verification", "activeLegalAssignmentId": null, "deletedAt": null, "createdAt": "2026-11-25T09:30:00.000Z", "updatedAt": "2026-11-25T09:30:00.000Z", "__v": 0, "views": [] }}