Skip to content

API docs

How to call the Realty API with a token.

Base URL

Every path in these docs starts here.

Authentication

Send the token in the Authorization header.

Header
Authorization: Bearer {token}

Make a token on the page API tokens

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.

Error body
{"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

List the agent-conversations of the realty app.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations?sort=-name"
Get one agent-conversations of the realty app by its id.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID"
Create one agent-conversations in the realty app.
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"
Change the given fields of one agent-conversations of the realty app.
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"
Delete one agent-conversations of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID"
List the comments of one agent-conversations of the realty app, newest first.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/comments"
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.
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"
Delete one comment of one agent-conversations of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/comments/$COMMENT"
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.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/files"
Add one file to one agent-conversations of the realty app.
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/files"
Download one file of one agent-conversations of the realty app. The answer is the file content as an attachment, not JSON.
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/agent-conversations/$ID/files/$FILE"
Delete one file of one agent-conversations of the realty app.
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

List the brokers of the realty app.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers?sort=-name"
Get one brokers of the realty app by its id.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID"
Create one brokers in the realty app.
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/brokers"
Change the given fields of one brokers of the realty app.
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/brokers/$ID"
Delete one brokers of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID"
List the comments of one brokers of the realty app, newest first.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/comments"
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.
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"
Delete one comment of one brokers of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/comments/$COMMENT"
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.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/files"
Add one file to one brokers of the realty app.
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/files"
Download one file of one brokers of the realty app. The answer is the file content as an attachment, not JSON.
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/brokers/$ID/files/$FILE"
Delete one file of one brokers of the realty app.
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

List the leads of the realty app.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads?sort=-name"
Get one leads of the realty app by its id.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID"
Create one leads in the realty app.
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"
Change the given fields of one leads of the realty app.
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/leads/$ID"
Run the move action on one leads of the realty app.
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"
Delete one leads of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID"
List the comments of one leads of the realty app, newest first.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID/comments"
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.
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"
Delete one comment of one leads of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID/comments/$COMMENT"
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.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID/files"
Add one file to one leads of the realty app.
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/leads/$ID/files"
Download one file of one leads of the realty app. The answer is the file content as an attachment, not JSON.
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/leads/$ID/files/$FILE"
Delete one file of one leads of the realty app.
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

List the offers of the realty app.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers?sort=-name"
Get one offers of the realty app by its id.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID"
Create one offers in the realty app.
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"
Change the given fields of one offers of the realty app.
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/offers/$ID"
Run the accept action on one offers of the realty app.
curl -X POST -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/accept"
Delete one offers of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID"
List the comments of one offers of the realty app, newest first.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/comments"
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.
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"
Delete one comment of one offers of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/comments/$COMMENT"
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.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/files"
Add one file to one offers of the realty app.
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/offers/$ID/files"
Download one file of one offers of the realty app. The answer is the file content as an attachment, not JSON.
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/offers/$ID/files/$FILE"
Delete one file of one offers of the realty app.
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

List the properties of the realty app.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties?sort=-name"
Get one properties of the realty app by its id.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID"
Create one properties in the realty app.
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"
Change the given fields of one properties of the realty app.
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/properties/$ID"
Delete one properties of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID"
List the comments of one properties of the realty app, newest first.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID/comments"
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.
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"
Delete one comment of one properties of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID/comments/$COMMENT"
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.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID/files"
Add one file to one properties of the realty app.
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/properties/$ID/files"
Download one file of one properties of the realty app. The answer is the file content as an attachment, not JSON.
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/properties/$ID/files/$FILE"
Delete one file of one properties of the realty app.
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

List the property-owners of the realty app.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners?sort=-name"
Get one property-owners of the realty app by its id.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID"
Create one property-owners in the realty app.
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/property-owners"
Change the given fields of one property-owners of the realty app.
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"
Delete one property-owners of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID"
List the comments of one property-owners of the realty app, newest first.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/comments"
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.
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"
Delete one comment of one property-owners of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/comments/$COMMENT"
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.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/files"
Add one file to one property-owners of the realty app.
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/files"
Download one file of one property-owners of the realty app. The answer is the file content as an attachment, not JSON.
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/property-owners/$ID/files/$FILE"
Delete one file of one property-owners of the realty app.
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

List the showings of the realty app.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings?sort=-name"
Get one showings of the realty app by its id.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID"
Create one showings in the realty app.
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"
Change the given fields of one showings of the realty app.
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"name":"Example"}' "https://demo.velosyd.com/realty/api/v1/showings/$ID"
Delete one showings of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID"
List the comments of one showings of the realty app, newest first.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID/comments"
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.
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"
Delete one comment of one showings of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID/comments/$COMMENT"
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.
curl -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID/files"
Add one file to one showings of the realty app.
curl -X POST -H "Authorization: Bearer $TOKEN" -F "file=@report.pdf" "https://demo.velosyd.com/realty/api/v1/showings/$ID/files"
Download one file of one showings of the realty app. The answer is the file content as an attachment, not JSON.
curl -OJ -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID/files/$FILE"
Delete one file of one showings of the realty app.
curl -X DELETE -H "Authorization: Bearer $TOKEN" "https://demo.velosyd.com/realty/api/v1/showings/$ID/files/$FILE"