Base URL
Every path in these docs starts here.
Authentication
Send the token in the Authorization header.
Authorization: Bearer {token}
Scopes
A token has one scope for each resource and operation, and the scope of the app.
| Resource | Read | Write | Delete |
|---|---|---|---|
| Agent conversations | agent-conversations:read |
agent-conversations:write |
agent-conversations:delete |
| Brokers | brokers:read |
brokers:write |
brokers:delete |
| Leads | leads:read |
leads:write |
leads:delete |
| Offers | offers:read |
offers:write |
offers:delete |
| Properties | properties:read |
properties:write |
properties:delete |
| Property owners | property-owners:read |
property-owners:write |
property-owners:delete |
| Showings | showings:read |
showings:write |
showings:delete |
app:realty is always on the token. Write does not include Read. Older tokens can carry read, write, delete for all resources.
Rate limit
60 requests in one minute for each token. The next request gets 429.
Lists
search- Text to find.
filter[field]- Filter by one field. Use filter[field]=value for one value, filter[field]=a,b for a list, filter[field][from] and filter[field][to] for a range, and filter[field]=null or not_null for a null check.
sort- A field. Add - for descending.
page- Starts at 1.
per_page- 25 by default, 100 at most.
Errors
Every error is JSON.
{"message": "..."}
| Code | Meaning |
|---|---|
| 401 | No token, or the token is unknown, revoked or expired. |
| 403 | The token has no scope for this call, or no access to this app. |
| 404 | The record does not exist. |
| 422 | The input is not valid. The body names each field. |
| 429 | Too many requests in one minute. |
Agent conversations
Operations, fields and examples.
Operations
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /agent-conversations |
agent-conversations:read |
List the agent-conversations of the realty app. |
| GET | /agent-conversations/{id} |
agent-conversations:read |
Get one agent-conversations of the realty app by its id. |
| POST | /agent-conversations |
agent-conversations:write |
Create one agent-conversations in the realty app. |
| PATCH | /agent-conversations/{id} |
agent-conversations:write |
Change the given fields of one agent-conversations of the realty app. |
| DELETE | /agent-conversations/{id} |
agent-conversations:delete |
Delete one agent-conversations of the realty app. |
| GET | /agent-conversations/{id}/comments |
agent-conversations:read |
List the comments of one agent-conversations of the realty app, newest first. |
| POST | /agent-conversations/{id}/comments |
agent-conversations:write |
Add a comment to one agent-conversations of the realty app. The body is plain text, and each mentions id is a member of the realty app. |
| DELETE | /agent-conversations/{id}/comments/{comment} |
agent-conversations:delete |
Delete one comment of one agent-conversations of the realty app. |
| GET | /agent-conversations/{id}/files |
agent-conversations:read |
List the files of one agent-conversations of the realty app, newest first. The answer gives the metadata and the REST download path, not the file content. |
| POST | /agent-conversations/{id}/files |
agent-conversations:write |
Add one file to one agent-conversations of the realty app. |
| GET | /agent-conversations/{id}/files/{file} |
agent-conversations:read |
Download one file of one agent-conversations of the realty app. The answer is the file content as an attachment, not JSON. |
| DELETE | /agent-conversations/{id}/files/{file} |
agent-conversations:delete |
Delete one file of one agent-conversations of the realty app. |
Each record has comments and files. Post a comment with body (plain text, at most 5000 characters) and mentions (a list of user ids of active members of the app, at most 20). Upload one file in the multipart field file, at most 10 MB. The download is an attachment. The scope of the resource applies: read to list and download, write to post and upload, delete to delete.
Fields
| Field | Type | Required on create | Note |
|---|---|---|---|
id |
uuid | No | Read only. |
name |
string, max 255 | Yes | |
description |
string | No | Can be null. |
lead_id |
uuid | No | Can be null. |
channel |
enum: whatsapp, web_chat, email, sms | Yes | |
outcome |
enum: in_progress, qualified, showing_booked, handed_to_broker, no_reply, opted_out | Yes | |
started_at |
date-time | Yes | |
messages |
string | No | Can be null. |
created_at |
date-time | No | Read only. |
updated_at |
date-time | No | Read only. |
Filters
| Filter | Type | Example |
|---|---|---|
channel |
Exact | filter[channel]=whatsapp |
outcome |
Exact | filter[outcome]=in_progress |
Sorts and search
Sort by name, started_at, created_at. Search matches name.
Examples
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations?sort=-name"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example","channel":"whatsapp","outcome":"in_progress","started_at":"Example","messages.*.author":"agent","messages.*.body":"Example"}' "https://demo.velosyd.com/realty/api/v1/agent-conversations"
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/comments"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"body":"Example"}' "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/comments"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/comments/$COMMENT"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/files"
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/files"
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/files/$FILE"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/files/$FILE"
Brokers
Operations, fields and examples.
Operations
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /brokers |
brokers:read |
List the brokers of the realty app. |
| GET | /brokers/{id} |
brokers:read |
Get one brokers of the realty app by its id. |
| POST | /brokers |
brokers:write |
Create one brokers in the realty app. |
| PATCH | /brokers/{id} |
brokers:write |
Change the given fields of one brokers of the realty app. |
| DELETE | /brokers/{id} |
brokers:delete |
Delete one brokers of the realty app. |
| GET | /brokers/{id}/comments |
brokers:read |
List the comments of one brokers of the realty app, newest first. |
| POST | /brokers/{id}/comments |
brokers:write |
Add a comment to one brokers of the realty app. The body is plain text, and each mentions id is a member of the realty app. |
| DELETE | /brokers/{id}/comments/{comment} |
brokers:delete |
Delete one comment of one brokers of the realty app. |
| GET | /brokers/{id}/files |
brokers:read |
List the files of one brokers of the realty app, newest first. The answer gives the metadata and the REST download path, not the file content. |
| POST | /brokers/{id}/files |
brokers:write |
Add one file to one brokers of the realty app. |
| GET | /brokers/{id}/files/{file} |
brokers:read |
Download one file of one brokers of the realty app. The answer is the file content as an attachment, not JSON. |
| DELETE | /brokers/{id}/files/{file} |
brokers:delete |
Delete one file of one brokers of the realty app. |
Each record has comments and files. Post a comment with body (plain text, at most 5000 characters) and mentions (a list of user ids of active members of the app, at most 20). Upload one file in the multipart field file, at most 10 MB. The download is an attachment. The scope of the resource applies: read to list and download, write to post and upload, delete to delete.
Fields
| Field | Type | Required on create | Note |
|---|---|---|---|
id |
uuid | No | Read only. |
name |
string, max 255 | Yes | |
description |
string | No | Can be null. |
user_id |
integer | No | Can be null. |
email |
email, max 255 | No | Can be null. |
phone |
string, max 32 | No | Can be null. |
license_number |
string, max 32 | No | Can be null. |
is_active |
boolean | No | |
created_at |
date-time | No | Read only. |
updated_at |
date-time | No | Read only. |
Filters
This resource has no filters.
Sorts and search
Sort by name, created_at. Search matches name, email.
Examples
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers?sort=-name"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/brokers"
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/brokers/$ID"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/comments"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"body":"Example"}' "https://demo.velosyd.com/realty/api/v1/brokers/$ID/comments"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/comments/$COMMENT"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/files"
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/files"
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/files/$FILE"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/files/$FILE"
Leads
Operations, fields and examples.
Operations
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /leads |
leads:read |
List the leads of the realty app. |
| GET | /leads/{id} |
leads:read |
Get one leads of the realty app by its id. |
| POST | /leads |
leads:write |
Create one leads in the realty app. |
| PATCH | /leads/{id} |
leads:write |
Change the given fields of one leads of the realty app. |
| POST | /leads/{id}/move |
leads:write |
Run the move action on one leads of the realty app. |
| DELETE | /leads/{id} |
leads:delete |
Delete one leads of the realty app. |
| GET | /leads/{id}/comments |
leads:read |
List the comments of one leads of the realty app, newest first. |
| POST | /leads/{id}/comments |
leads:write |
Add a comment to one leads of the realty app. The body is plain text, and each mentions id is a member of the realty app. |
| DELETE | /leads/{id}/comments/{comment} |
leads:delete |
Delete one comment of one leads of the realty app. |
| GET | /leads/{id}/files |
leads:read |
List the files of one leads of the realty app, newest first. The answer gives the metadata and the REST download path, not the file content. |
| POST | /leads/{id}/files |
leads:write |
Add one file to one leads of the realty app. |
| GET | /leads/{id}/files/{file} |
leads:read |
Download one file of one leads of the realty app. The answer is the file content as an attachment, not JSON. |
| DELETE | /leads/{id}/files/{file} |
leads:delete |
Delete one file of one leads of the realty app. |
Each record has comments and files. Post a comment with body (plain text, at most 5000 characters) and mentions (a list of user ids of active members of the app, at most 20). Upload one file in the multipart field file, at most 10 MB. The download is an attachment. The scope of the resource applies: read to list and download, write to post and upload, delete to delete.
Fields
| Field | Type | Required on create | Note |
|---|---|---|---|
id |
uuid | No | Read only. |
name |
string, max 255 | Yes | |
description |
string | No | Can be null. |
email |
email, max 255 | No | Can be null. |
phone |
string, max 32 | No | Can be null. |
status |
enum: new, contacted, qualified, viewing, negotiating, won, lost | Yes | |
source |
enum: website, referral, portal, whatsapp, walk_in, ai_agent | Yes | |
budget_min |
decimal string | No | Can be null. |
budget_max |
decimal string | No | Can be null. |
bedrooms_min |
integer | No | Can be null. |
preferred_city |
string, max 80 | No | Can be null. |
broker_id |
uuid | No | Can be null. |
created_at |
date-time | No | Read only. |
updated_at |
date-time | No | Read only. |
Filters
| Filter | Type | Example |
|---|---|---|
status |
Exact | filter[status]=new |
source |
Exact | filter[source]=website |
Sorts and search
Sort by name, created_at. Search matches name, email, preferred_city.
Examples
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads?sort=-name"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example","status":"new","source":"website"}' "https://demo.velosyd.com/realty/api/v1/leads"
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/leads/$ID"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"status":"new"}' "https://demo.velosyd.com/realty/api/v1/leads/$ID/move"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID/comments"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"body":"Example"}' "https://demo.velosyd.com/realty/api/v1/leads/$ID/comments"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID/comments/$COMMENT"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID/files"
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/leads/$ID/files"
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID/files/$FILE"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID/files/$FILE"
Offers
Operations, fields and examples.
Operations
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /offers |
offers:read |
List the offers of the realty app. |
| GET | /offers/{id} |
offers:read |
Get one offers of the realty app by its id. |
| POST | /offers |
offers:write |
Create one offers in the realty app. |
| PATCH | /offers/{id} |
offers:write |
Change the given fields of one offers of the realty app. |
| POST | /offers/{id}/accept |
offers:write |
Run the accept action on one offers of the realty app. |
| DELETE | /offers/{id} |
offers:delete |
Delete one offers of the realty app. |
| GET | /offers/{id}/comments |
offers:read |
List the comments of one offers of the realty app, newest first. |
| POST | /offers/{id}/comments |
offers:write |
Add a comment to one offers of the realty app. The body is plain text, and each mentions id is a member of the realty app. |
| DELETE | /offers/{id}/comments/{comment} |
offers:delete |
Delete one comment of one offers of the realty app. |
| GET | /offers/{id}/files |
offers:read |
List the files of one offers of the realty app, newest first. The answer gives the metadata and the REST download path, not the file content. |
| POST | /offers/{id}/files |
offers:write |
Add one file to one offers of the realty app. |
| GET | /offers/{id}/files/{file} |
offers:read |
Download one file of one offers of the realty app. The answer is the file content as an attachment, not JSON. |
| DELETE | /offers/{id}/files/{file} |
offers:delete |
Delete one file of one offers of the realty app. |
Each record has comments and files. Post a comment with body (plain text, at most 5000 characters) and mentions (a list of user ids of active members of the app, at most 20). Upload one file in the multipart field file, at most 10 MB. The download is an attachment. The scope of the resource applies: read to list and download, write to post and upload, delete to delete.
Fields
| Field | Type | Required on create | Note |
|---|---|---|---|
id |
uuid | No | Read only. |
name |
string, max 255 | Yes | |
description |
string | No | Can be null. |
property_id |
uuid | Yes | |
lead_id |
uuid | Yes | |
amount |
decimal string | Yes | |
status |
enum: draft, submitted, countered, accepted, rejected, withdrawn | Yes | |
expires_at |
date-time | No | Can be null. |
conditions |
string | No | Can be null. |
created_at |
date-time | No | Read only. |
updated_at |
date-time | No | Read only. |
Filters
| Filter | Type | Example |
|---|---|---|
status |
Exact | filter[status]=draft |
Sorts and search
Sort by name, amount, created_at. Search matches name.
Examples
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers?sort=-name"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example","property_id":"019a0000-0000-7000-8000-000000000000","lead_id":"019a0000-0000-7000-8000-000000000000","amount":100,"status":"draft","conditions.*.condition":"Example"}' "https://demo.velosyd.com/realty/api/v1/offers"
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/offers/$ID"
curl -X POST -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/accept"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/comments"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"body":"Example"}' "https://demo.velosyd.com/realty/api/v1/offers/$ID/comments"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/comments/$COMMENT"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/files"
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/offers/$ID/files"
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/files/$FILE"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/files/$FILE"
Properties
Operations, fields and examples.
Operations
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /properties |
properties:read |
List the properties of the realty app. |
| GET | /properties/{id} |
properties:read |
Get one properties of the realty app by its id. |
| POST | /properties |
properties:write |
Create one properties in the realty app. |
| PATCH | /properties/{id} |
properties:write |
Change the given fields of one properties of the realty app. |
| DELETE | /properties/{id} |
properties:delete |
Delete one properties of the realty app. |
| GET | /properties/{id}/comments |
properties:read |
List the comments of one properties of the realty app, newest first. |
| POST | /properties/{id}/comments |
properties:write |
Add a comment to one properties of the realty app. The body is plain text, and each mentions id is a member of the realty app. |
| DELETE | /properties/{id}/comments/{comment} |
properties:delete |
Delete one comment of one properties of the realty app. |
| GET | /properties/{id}/files |
properties:read |
List the files of one properties of the realty app, newest first. The answer gives the metadata and the REST download path, not the file content. |
| POST | /properties/{id}/files |
properties:write |
Add one file to one properties of the realty app. |
| GET | /properties/{id}/files/{file} |
properties:read |
Download one file of one properties of the realty app. The answer is the file content as an attachment, not JSON. |
| DELETE | /properties/{id}/files/{file} |
properties:delete |
Delete one file of one properties of the realty app. |
Each record has comments and files. Post a comment with body (plain text, at most 5000 characters) and mentions (a list of user ids of active members of the app, at most 20). Upload one file in the multipart field file, at most 10 MB. The download is an attachment. The scope of the resource applies: read to list and download, write to post and upload, delete to delete.
Fields
| Field | Type | Required on create | Note |
|---|---|---|---|
id |
uuid | No | Read only. |
name |
string, max 255 | Yes | |
description |
string | No | Can be null. |
property_owner_id |
uuid | Yes | |
broker_id |
uuid | No | Can be null. |
status |
enum: draft, available, under_offer, sold, withdrawn | Yes | |
type |
enum: house, apartment, townhouse, land, commercial | Yes | |
price |
decimal string | Yes | |
bedrooms |
integer | No | |
bathrooms |
integer | No | |
area_sqm |
integer | No | Can be null. |
city |
string, max 80 | Yes | |
neighborhood |
string, max 80 | No | Can be null. |
address |
string, max 255 | No | Can be null. |
is_featured |
boolean | No | |
highlights |
string | No | Can be null. |
listed_at |
date-time | No | Can be null. |
created_at |
date-time | No | Read only. |
updated_at |
date-time | No | Read only. |
Filters
| Filter | Type | Example |
|---|---|---|
status |
Exact | filter[status]=draft |
type |
Exact | filter[type]=house |
Sorts and search
Sort by name, price, created_at. Search matches name, city.
Examples
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties?sort=-name"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example","property_owner_id":"019a0000-0000-7000-8000-000000000000","status":"draft","type":"house","price":100,"city":"Example","highlights.*.label":"Example","highlights.*.value":"Example"}' "https://demo.velosyd.com/realty/api/v1/properties"
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/properties/$ID"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID/comments"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"body":"Example"}' "https://demo.velosyd.com/realty/api/v1/properties/$ID/comments"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID/comments/$COMMENT"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID/files"
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/properties/$ID/files"
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID/files/$FILE"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID/files/$FILE"
Property owners
Operations, fields and examples.
Operations
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /property-owners |
property-owners:read |
List the property-owners of the realty app. |
| GET | /property-owners/{id} |
property-owners:read |
Get one property-owners of the realty app by its id. |
| POST | /property-owners |
property-owners:write |
Create one property-owners in the realty app. |
| PATCH | /property-owners/{id} |
property-owners:write |
Change the given fields of one property-owners of the realty app. |
| DELETE | /property-owners/{id} |
property-owners:delete |
Delete one property-owners of the realty app. |
| GET | /property-owners/{id}/comments |
property-owners:read |
List the comments of one property-owners of the realty app, newest first. |
| POST | /property-owners/{id}/comments |
property-owners:write |
Add a comment to one property-owners of the realty app. The body is plain text, and each mentions id is a member of the realty app. |
| DELETE | /property-owners/{id}/comments/{comment} |
property-owners:delete |
Delete one comment of one property-owners of the realty app. |
| GET | /property-owners/{id}/files |
property-owners:read |
List the files of one property-owners of the realty app, newest first. The answer gives the metadata and the REST download path, not the file content. |
| POST | /property-owners/{id}/files |
property-owners:write |
Add one file to one property-owners of the realty app. |
| GET | /property-owners/{id}/files/{file} |
property-owners:read |
Download one file of one property-owners of the realty app. The answer is the file content as an attachment, not JSON. |
| DELETE | /property-owners/{id}/files/{file} |
property-owners:delete |
Delete one file of one property-owners of the realty app. |
Each record has comments and files. Post a comment with body (plain text, at most 5000 characters) and mentions (a list of user ids of active members of the app, at most 20). Upload one file in the multipart field file, at most 10 MB. The download is an attachment. The scope of the resource applies: read to list and download, write to post and upload, delete to delete.
Fields
| Field | Type | Required on create | Note |
|---|---|---|---|
id |
uuid | No | Read only. |
name |
string, max 255 | Yes | |
description |
string | No | Can be null. |
email |
email, max 255 | No | Can be null. |
phone |
string, max 32 | No | Can be null. |
created_at |
date-time | No | Read only. |
updated_at |
date-time | No | Read only. |
Filters
This resource has no filters.
Sorts and search
Sort by name, created_at. Search matches name, email.
Examples
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners?sort=-name"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/property-owners"
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/property-owners/$ID"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/comments"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"body":"Example"}' "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/comments"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/comments/$COMMENT"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/files"
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/files"
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/files/$FILE"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/files/$FILE"
Showings
Operations, fields and examples.
Operations
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /showings |
showings:read |
List the showings of the realty app. |
| GET | /showings/{id} |
showings:read |
Get one showings of the realty app by its id. |
| POST | /showings |
showings:write |
Create one showings in the realty app. |
| PATCH | /showings/{id} |
showings:write |
Change the given fields of one showings of the realty app. |
| DELETE | /showings/{id} |
showings:delete |
Delete one showings of the realty app. |
| GET | /showings/{id}/comments |
showings:read |
List the comments of one showings of the realty app, newest first. |
| POST | /showings/{id}/comments |
showings:write |
Add a comment to one showings of the realty app. The body is plain text, and each mentions id is a member of the realty app. |
| DELETE | /showings/{id}/comments/{comment} |
showings:delete |
Delete one comment of one showings of the realty app. |
| GET | /showings/{id}/files |
showings:read |
List the files of one showings of the realty app, newest first. The answer gives the metadata and the REST download path, not the file content. |
| POST | /showings/{id}/files |
showings:write |
Add one file to one showings of the realty app. |
| GET | /showings/{id}/files/{file} |
showings:read |
Download one file of one showings of the realty app. The answer is the file content as an attachment, not JSON. |
| DELETE | /showings/{id}/files/{file} |
showings:delete |
Delete one file of one showings of the realty app. |
Each record has comments and files. Post a comment with body (plain text, at most 5000 characters) and mentions (a list of user ids of active members of the app, at most 20). Upload one file in the multipart field file, at most 10 MB. The download is an attachment. The scope of the resource applies: read to list and download, write to post and upload, delete to delete.
Fields
| Field | Type | Required on create | Note |
|---|---|---|---|
id |
uuid | No | Read only. |
name |
string, max 255 | Yes | |
description |
string | No | Can be null. |
property_id |
uuid | Yes | |
lead_id |
uuid | Yes | |
broker_id |
uuid | No | Can be null. |
scheduled_at |
date-time | Yes | |
duration_minutes |
integer | No | |
status |
enum: scheduled, confirmed, completed, cancelled, no_show | Yes | |
created_at |
date-time | No | Read only. |
updated_at |
date-time | No | Read only. |
Filters
| Filter | Type | Example |
|---|---|---|
status |
Exact | filter[status]=scheduled |
Sorts and search
Sort by name, scheduled_at, created_at. Search matches name.
Examples
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings?sort=-name"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example","property_id":"019a0000-0000-7000-8000-000000000000","lead_id":"019a0000-0000-7000-8000-000000000000","scheduled_at":"Example","status":"scheduled"}' "https://demo.velosyd.com/realty/api/v1/showings"
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/showings/$ID"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID/comments"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"body":"Example"}' "https://demo.velosyd.com/realty/api/v1/showings/$ID/comments"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID/comments/$COMMENT"
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID/files"
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/showings/$ID/files"
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID/files/$FILE"
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID/files/$FILE"