Getting started
Authentication
API keys
Send the key as a bearer token in every request. A key acts as the user who created it, narrowed to the scopes and communities chosen for it, and never beyond that user's own permissions. Keys can expire (30 or 90 days, a year, or never) and can be revoked at any time.
Request header
Copy
Authorization: Bearer phoa_pat_…
A missing, unknown, revoked or expired key is 401 unauthorized; a key without the needed scope is 403 insufficient_scope, with the missing scope in required_scope.
Treat keys like passwords. Keep them in an environment variable or a secret manager, never in source code. Keys start with phoa_pat_, so secret scanners can spot a leaked one.
OAuth 2.1
Apps that act for other Perfect HOA users sign them in with the authorization code flow and PKCE (S256, required). Clients register themselves (dynamic client registration), so there is no client secret. Users approve the scopes and communities on a consent screen and can disconnect the app at any time. Access tokens last an hour; refresh tokens rotate on every use.
Endpoint URL
Discovery https://app.perfecthoa.com/.well-known/oauth-authorization-server
Protected resource https://app.perfecthoa.com/.well-known/oauth-protected-resource
Register (RFC 7591) POST https://app.perfecthoa.com/oauth/register
Authorize https://app.perfecthoa.com/oauth/authorize
Token POST https://app.perfecthoa.com/oauth/token
Revoke (RFC 7009) POST https://app.perfecthoa.com/oauth/revoke
GET
/api/v1/communities/{community} /units
Parameters
Name In Description
community required path Community id (GET /communities) q query title/address search tag query tag name has_balance query true|false limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /units/imports/{import} /preview
Preview of a unit#
units:write
Preview a units import: what commit would do, as a summary: counts (to create, to update (same address: the title), unchanged, duplicates in the file, errors, over the unit limit), starting balance totals, the problems (row, field, message; first 50), a sample of the first rows as they will be saved, summary_text, and the commit_token. Creates nothing.
Parameters
Name In Description
community required path Community id (GET /communities) import required path Id of the import
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/IMPORT_ID/preview" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/IMPORT_ID/preview');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/IMPORT_ID/preview", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/IMPORT_ID/preview",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /units/{id}
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the unit
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /units/{id} /ledger
Get unit ledger#
units:read invoices:read
The unit's ledger, oldest first (running balance). Needs units:read + invoices:read.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the unit from query dates (inclusive) to query dates (inclusive) limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID/ledger" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID/ledger');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID/ledger", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID/ledger",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /units
Create a unit#
units:write
Create a unit. Refused at the account's unit limit.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
address1 required — city required — state required 2-letter US code zip required — title — address2 — balance starting balance, default "0": a positive amount is billed as an "Initial Balance" invoice, a negative one is a credit balance_date default today tags list of tag names
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"address1":"string","city":"string","state":"string","zip":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'address1' => 'string',
'city' => 'string',
'state' => 'string',
'zip' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"address1": "string",
"city": "string",
"state": "string",
"zip": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"address1": "string",
"city": "string",
"state": "string",
"zip": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /units/imports/rows
Stage unit rows for an import. Send a large file in several calls with the returned import_id; rows are numbered across calls. Nothing is created until commit.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
rows required 1-250 objects: address1, city, state, zip, title?, address2?, balance? (starting balance owed; negative = credit), balance_date? import_id add to that import; omit to start one
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/rows" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"rows":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/rows');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'rows' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/rows", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"rows": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/rows",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"rows": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /units/tags
Add and / or remove tags on one or many units, as the units list's bulk "Add tags" / "Remove tags" do. Tag names match existing tags case-insensitively; new names create a tag; a unit's other tags are never touched. More than 25 units: the first call answers status "needs_confirmation" with the count, a sample and commit_token, and changes nothing; call again with the same body plus commit_token to apply.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
add tag names remove tag names tag units with this tag has_balance true: units that owe all true: every unit
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/tags" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"add":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/tags');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'add' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/tags", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"add": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/tags",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"add": "string"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /units/{id}
Update a unit#
units:write
Edit a unit. Tag names match the community's existing tags case-insensitively; new names create a tag, as on the dashboard. Absent fields are left as they are; the starting balance cannot change (post a payment or an invoice instead). To tag many units at once use POST /units/tags.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the unit Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
any required — address1 required — address2 required — city required — state required — zip required — add_tags required tag names to add; the unit's other tags stay remove_tags required tag names to take off tags required REPLACES ALL the unit's tags; only when that is really wanted
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"any":"string","address1":"string","address2":"string","city":"string","state":"string","zip":"string","add_tags":"string","remove_tags":"string","tags":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'any' => 'string',
'address1' => 'string',
'address2' => 'string',
'city' => 'string',
'state' => 'string',
'zip' => 'string',
'add_tags' => 'string',
'remove_tags' => 'string',
'tags' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"any": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"add_tags": "string",
"remove_tags": "string",
"tags": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"any": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"add_tags": "string",
"remove_tags": "string",
"tags": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /units/imports/{import} /commit
Commit a previewed units import. Long imports answer status "in_progress": call commit again with the same token to continue; a finished import answers its result again.
Parameters
Name In Description
community required path Community id (GET /communities) import required path Id of the import Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
commit_token from the preview — or their their or commit_token
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/IMPORT_ID/commit" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"commit_token":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/IMPORT_ID/commit');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'commit_token' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/IMPORT_ID/commit", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"commit_token": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/imports/IMPORT_ID/commit",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"commit_token": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /units/{id} /transfer-ownership
Transfer unit ownership#
units:write contacts:write
Transfer ownership of a unit (the dashboard's "Transfer ownership"): replace some or all owners with existing contacts and/or new people, in one transaction. Tenants are never touched; the balance stays with the unit; open collections cases are suspended for review. Needs units:write + contacts:write.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the unit Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
effective_date required today or earlier reason required sale|inheritance|correction|other notes — previous_owners contact ids of current owners leaving; the others stay existing_owners contact ids of this community becoming owners new_owners list of {first_name, last_name, email?, phone?} send_welcome_email default false
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID/transfer-ownership" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"effective_date":"2026-12-01","reason":"Second notice ignored"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID/transfer-ownership');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'effective_date' => '2026-12-01',
'reason' => 'Second notice ignored',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID/transfer-ownership", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"effective_date": "2026-12-01",
"reason": "Second notice ignored"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID/transfer-ownership",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"effective_date": "2026-12-01",
"reason": "Second notice ignored"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /units/{id}
Delete a unit#
units:write
Move a unit to the trash (scheduled for deletion; recoverable from the dashboard). Its owners are unlinked.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the unit Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/units/UNIT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /contacts
Parameters
Name In Description
community required path Community id (GET /communities) q query name/email/phone/company search type query owner|tenant|contact|vendor unit query <unit id> limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /contacts/imports/{import} /preview
Preview a contacts import: counts (to create, to update (matched by email), unchanged, merged / duplicate rows, errors), totals (owners, tenants, linked to units, without email / phone), the problems (first 50), a sample, summary_text and the commit_token. Changes nothing.
Parameters
Name In Description
community required path Community id (GET /communities) import required path Id of the import
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/IMPORT_ID/preview" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/IMPORT_ID/preview');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/IMPORT_ID/preview", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/IMPORT_ID/preview",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /contacts/{id}
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the contact
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /contacts
Create a contact.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
first_name required — last_name required — type owner|tenant|contact|vendor, default owner email — phone — company_name — mailing_address1 — sms_permission you have permission to text them units unit ids to link: an owner of those units, a tenant in them, …
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"first_name":"string","last_name":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'first_name' => 'string',
'last_name' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"first_name": "string",
"last_name": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"first_name": "string",
"last_name": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /contacts/imports/rows
Stage contact rows for an import. The same email on several rows is one contact linked to every unit. Import the units first.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
rows required 1-250 objects: first_name, last_name, email?, phone?, type? (owner|tenant|contact, default owner), unit? (unit id, title or street address), company_name?, mailing_address1?, mailing_address2?, mailing_city?, mailing_state?, mailing_zip? import_id add to that import
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/rows" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"rows":"owner"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/rows');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'rows' => 'owner',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/rows", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"rows": "owner"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/rows",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"rows": "owner"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /contacts/{id}
Edit a contact. Absent fields are left as they are; null clears an optional one. Changing type changes the contact's role on all its units (e.g. owner → tenant).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the contact Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
any required — last_name required — type required — email required — phone required — company_name required — mailing_address1 required — mailing_address2 required — mailing_city required — mailing_state required — mailing_zip required — sms_permission required —
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"any":"string","last_name":"string","type":"string","email":"string","phone":"string","company_name":"string","mailing_address1":"string","mailing_address2":"string","mailing_city":"string","mailing_state":"string","mailing_zip":"string","sms_permission":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'any' => 'string',
'last_name' => 'string',
'type' => 'string',
'email' => 'string',
'phone' => 'string',
'company_name' => 'string',
'mailing_address1' => 'string',
'mailing_address2' => 'string',
'mailing_city' => 'string',
'mailing_state' => 'string',
'mailing_zip' => 'string',
'sms_permission' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"any": "string",
"last_name": "string",
"type": "string",
"email": "string",
"phone": "string",
"company_name": "string",
"mailing_address1": "string",
"mailing_address2": "string",
"mailing_city": "string",
"mailing_state": "string",
"mailing_zip": "string",
"sms_permission": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"any": "string",
"last_name": "string",
"type": "string",
"email": "string",
"phone": "string",
"company_name": "string",
"mailing_address1": "string",
"mailing_address2": "string",
"mailing_city": "string",
"mailing_state": "string",
"mailing_zip": "string",
"sms_permission": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /contacts/imports/{import} /commit
Commit a previewed contacts import. Same rules as the units commit.
Parameters
Name In Description
community required path Community id (GET /communities) import required path Id of the import Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
commit_token required —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/IMPORT_ID/commit" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"commit_token":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/IMPORT_ID/commit');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'commit_token' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/IMPORT_ID/commit", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"commit_token": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/imports/IMPORT_ID/commit",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"commit_token": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /contacts/{id} /units
Link the contact to a unit. Linking an owner makes them an owner of the unit (portal, autopay, requests). To replace a unit's owners after a sale, use POST /units/{id}/transfer-ownership instead.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the contact Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
unit required id type owner|tenant|contact|vendor: also sets the contact's role, which applies to all its units
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID/units" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"unit":"UNIT_ID"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID/units');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'unit' => 'UNIT_ID',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID/units", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"unit": "UNIT_ID"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID/units",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"unit": "UNIT_ID"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /contacts/{id}
Delete a contact (soft delete, as on the dashboard): it stops owning its units and loses portal access.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the contact Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /contacts/{id} /units/{unit}
Unlink the contact from a unit (the contact itself is kept, with its other units).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the contact unit required path Id of the unit Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID/units/UNIT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID/units/UNIT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID/units/UNIT_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/contacts/CONTACT_ID/units/UNIT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /invoices
List invoices#
invoices:read
Newest issued first.
Parameters
Name In Description
community required path Community id (GET /communities) status query pending|paid|cancelled|missing_contacts|open unit query <unit id> overdue query true|false source query fine|request|general issued_from query dates (inclusive) issued_to query dates (inclusive) due_from query dates (inclusive) due_to query dates (inclusive) q query invoice number / unit / owner name (with limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /invoices/{id}
Get a invoice#
invoices:read
One invoice with its line items, payments (newest first) and applied late fees
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the invoice
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /invoices
Create invoices#
invoices:write
Create invoices: one per unit. Answers {data: [invoice], warnings}.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
units list of unit ids — or all_units all_units or units line_items required list of {description, qty?, rate} terms due_on_receipt|net_15|net_30|net_60, default due_on_receipt issue_date default today due_date default: issue date + the terms' days notes shown to the owner internal_notes — send_email email each invoice to the unit's owners, default true as on the dashboard
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"units":["UNIT_ID"],"line_items":[{"description":"Q1 dues","qty":1,"rate":"300.00"}]}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'units' => [
'UNIT_ID',
],
'line_items' => [
[
'description' => 'Q1 dues',
'qty' => 1,
'rate' => '300.00',
],
],
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"units": [
"UNIT_ID"
],
"line_items": [
{
"description": "Q1 dues",
"qty": 1,
"rate": "300.00"
}
]
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"units": [
"UNIT_ID"
],
"line_items": [
{
"description": "Q1 dues",
"qty": 1,
"rate": "300.00"
}
]
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /invoices/{id}
Update an invoice#
invoices:write
Edit an open invoice. A changed total is booked on the unit's ledger as an adjustment, and the owners get the updated invoice email (as on the dashboard). Paid / cancelled invoices are read-only.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the invoice Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
line_items replaces them all terms — issue_date — due_date — notes — internal_notes —
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"line_items":[{"description":"Q1 dues","qty":1,"rate":"300.00"}]}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'line_items' => [
[
'description' => 'Q1 dues',
'qty' => 1,
'rate' => '300.00',
],
],
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"line_items": [
{
"description": "Q1 dues",
"qty": 1,
"rate": "300.00"
}
]
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"line_items": [
{
"description": "Q1 dues",
"qty": 1,
"rate": "300.00"
}
]
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /invoices/{id} /cancel
Cancel an invoice#
invoices:write
Cancel (void) an open invoice with no payments: its charge is reversed on the unit's ledger and open checkout links stop working. Refused for paid / partly paid invoices (no refunds here) and for invoices in a payment plan.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the invoice Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/cancel" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/cancel');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/cancel", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/cancel",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /invoices/{id} /payments
Record an invoice payment#
invoices:write
Record a payment received outside the online checkout (check, cash, bank transfer...). The invoice becomes paid once nothing is due. Nothing is charged: this only records money already received.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the invoice Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
reference required e.g. "Check #1234" amount default: everything still due; never more paid_date default today
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/payments" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"reference":"Check #1042"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/payments');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'reference' => 'Check #1042',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/payments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"reference": "Check #1042"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/payments",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"reference": "Check #1042"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /invoices/{id} /reminders
Send an invoice reminder#
invoices:write
Email the unit's owners a reminder of this open invoice. Answers the number of owners it went to.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the invoice Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/reminders" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/reminders');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/reminders", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID/reminders",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /invoices/{id}
Delete an invoice#
invoices:write
Delete the invoice (soft delete, as on the dashboard). An open invoice's charge is reversed on the unit's ledger and what was paid on it becomes unit credit. 422 when it is in a disbursement or an open payment plan.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the invoice Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/invoices/INVOICE_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
Reference
Recurring invoices
5 endpoints
GET
/api/v1/communities/{community} /recurring-invoices
List recurring invoices#
invoices:read
Newest first.
Parameters
Name In Description
community required path Community id (GET /communities) status query active|ended frequency query monthly|annually unit query <unit id> (schedules that bill that unit, including all-units ones), as the dashboard's recurring invoice filters limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /recurring-invoices/{id}
Get a recurring invoice#
invoices:read
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the recurring invoice
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /recurring-invoices
Create a recurring invoice#
invoices:write
Create a schedule. The first invoices are issued on start_date by the nightly run.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
frequency required monthly|annually start_date required the first issue date, today or later end_date — due_after_days days from each issue date to its due date, default 0 units list of unit ids — or all_units all_units or units line_items required list of {description, qty?, rate} terms — notes — internal_notes —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"frequency":"monthly","start_date":"2026-12-01","line_items":[{"description":"Q1 dues","qty":1,"rate":"300.00"}]}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'frequency' => 'monthly',
'start_date' => '2026-12-01',
'line_items' => [
[
'description' => 'Q1 dues',
'qty' => 1,
'rate' => '300.00',
],
],
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"frequency": "monthly",
"start_date": "2026-12-01",
"line_items": [
{
"description": "Q1 dues",
"qty": 1,
"rate": "300.00"
}
]
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"frequency": "monthly",
"start_date": "2026-12-01",
"line_items": [
{
"description": "Q1 dues",
"qty": 1,
"rate": "300.00"
}
]
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /recurring-invoices/{id}
Update a recurring invoice#
invoices:write
Edit a schedule (as the dashboard's recurring invoice edit form). The total is computed from the lines. Invoices already issued are not changed; the next ones follow the new values.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the recurring invoice Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
frequency monthly|annually start_date only before its first invoice is issued; today or later: the first issue moves with it end_date null = no end due_after_days — units list of unit ids — or all_units all_units or units line_items list of {description, qty?, rate}: replaces all lines terms — notes — internal_notes —
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"frequency":"monthly"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'frequency' => 'monthly',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"frequency": "monthly"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"frequency": "monthly"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /recurring-invoices/{id}
Stop a recurring invoice#
invoices:write
Stop a schedule: no further invoices are issued from it. Invoices it already issued are not touched (cancel them one by one if needed).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the recurring invoice Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/recurring-invoices/RECURRING_INVOICE_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /collections-cases
List collections cases#
invoices:read
Newest first.
Parameters
Name In Description
community required path Community id (GET /communities) status query <CollectionsCaseResource::STATUSES key> priority query low|medium|high|urgent active query true|false unit query <unit id> limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /collections-cases/{id}
Get a collection#
invoices:read
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the collection
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /collections-cases/{id} /notes
Add a note to a collections case#
invoices:write
Add a note to the case timeline (as the case page's note box; staff only).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the collection Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
note required —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID/notes" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"note":"Owner asked for two more weeks."}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID/notes');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'note' => 'Owner asked for two more weeks.',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID/notes", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"note": "Owner asked for two more weeks."
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID/notes",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"note": "Owner asked for two more weeks."
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /collections-cases/{id} /stage
Move a collections case to another stage#
invoices:write
Move the case to a stage, as the case page's "Advance Stage". Nothing is sent by the move itself; leaving "suspended" re-arms automatic escalation, whose next stage (and its notice) runs on the next nightly escalation run.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the collection Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
stage required new|pending_review|first_notice_sent| second_notice_sent|final_notice_sent|lien_filed|attorney_referral|legal_action|judgment_obtained|resolved| written_off|suspended expected_stage 409 if the case is no longer at that stage
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID/stage" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"stage":"new"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID/stage');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'stage' => 'new',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID/stage", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"stage": "new"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/collections-cases/COLLECTION_ID/stage",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"stage": "new"
},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /requests
List requests#
requests:read
Newest first.
Parameters
Name In Description
community required path Community id (GET /communities) q query title, number "REQ-12", unit, submitter / owner name or email, description status query <name> open query true|false category query <category id or key> priority query low|normal|high|urgent unit query <unit id> submitted_from query YYYY-MM-DD, community-local days submitted_to query YYYY-MM-DD, community-local days limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /requests/{id}
Get a request#
requests:read
The request with its form answers, current votes, fees, documents and newest activity
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the request
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /requests/{id} /activity
Activity of a request#
requests:read
The request's activity (staff view: internal and resident-visible entries), oldest first within a page; the first page is the newest entries.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the request cursor query (activity_next_cursor / next_cursor) walks back to older ones.
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/activity" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/activity');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/activity", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/activity",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /requests
Create a request#
requests:write
Create a request (staff-created, as from the dashboard).
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
unit required id category required id or key title required — description — priority low|normal|high|urgent, default: the category's due_date — assignee staff id or "me" fee_amount — fee_due_date needs the fee permission: issues the fee invoice
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"unit":"UNIT_ID","category":"CATEGORY_ID","title":"Trash cans visible from the street"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'unit' => 'UNIT_ID',
'category' => 'CATEGORY_ID',
'title' => 'Trash cans visible from the street',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"unit": "UNIT_ID",
"category": "CATEGORY_ID",
"title": "Trash cans visible from the street"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"unit": "UNIT_ID",
"category": "CATEGORY_ID",
"title": "Trash cans visible from the street"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /requests/{id}
Update a request#
requests:write
Edit details. Absent fields are left as they are. Assigning someone else or routing to a committee needs the assign permission.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the request Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title — description — category id or key priority — due_date null clears assignee staff id, "me", or null to unassign committee id or null
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /requests/{id} /attachments
Attachments#
requests:write
Attach files to a request (internal: never shown to the resident). Without files the answer is an upload_url the user opens on their phone to add the files (30 minutes, single use).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the request Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
files list of {filename, content_base64}; at most 10 files, 10 MB each and 45 MB together note an internal note
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/attachments" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"files":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/attachments');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'files' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/attachments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"files": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/attachments",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"files": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /requests/{id} /decision
Record a request decision#
requests:write
Record the decision of a request decided by vote (approvers were asked: see the request's approvals); other requests are approved / declined with POST /status. Needs the approve permission.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the request Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
decision required approved|approved_conditions|declined conditions required for approved_conditions resident_note shown to the resident; required to decline override — override_note decide against pending votes
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/decision" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"decision":"approved"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/decision');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'decision' => 'approved',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/decision", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"decision": "approved"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/decision",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"decision": "approved"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /requests/{id} /notes
Add an internal note#
requests:write
Add an internal note (staff only, never shown to the resident).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the request Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
text required —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/notes" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"text":"Called the owner, sending photos."}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/notes');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Called the owner, sending photos.',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/notes", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"text": "Called the owner, sending photos."
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/notes",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"text": "Called the owner, sending photos."
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /requests/{id} /status
Change request status#
requests:write
Change the status. Approving, declining or reopening needs the approve permission.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the request Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
status required pending|in_review|awaiting_resident|scheduled_for_review|approved|declined| completed|withdrawn note required by some moves, e.g. declining: shown to the resident scheduled_review_at scheduled_for_review expected_status refused with 409 if the request is no longer in that status
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/status" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"status":"pending"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/status');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'status' => 'pending',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/status", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"status": "pending"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID/status",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"status": "pending"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /requests/{id}
Delete a request#
requests:write
Delete the request (soft delete, as on the dashboard). Its fee invoices are not touched.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the request Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/requests/REQUEST_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /violations
List violations#
violations:read
Newest first. Each row has template, offense_number and ladder_step (null without a template).
Parameters
Name In Description
community required path Community id (GET /communities) q query title, number "V-12", unit, owner name status query <name> open query true|false (active / resolved) overdue query true (active and past the resolution deadline) unit query <unit id> reported_from query YYYY-MM-DD reported_to query YYYY-MM-DD limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /violations/escalation-preview
Escalation preview of a violation#
violations:read
What reporting a violation of a template on a unit would do, without creating anything (the dashboard form's live result): which offense it is within the template's lookback, the earlier violations counted, the ladder step, the fine it invoices (or proposes, when the step requires a hearing) and the status the case moves to.
Parameters
Name In Description
community required path Community id (GET /communities) unit query unit id, required template_id query violation template id, required reported_date query (YYYY-MM-DD, default today).
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/escalation-preview" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/escalation-preview');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/escalation-preview", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/escalation-preview",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /violations/{id}
Get a violation#
violations:read
The violation with its fines, notices sent (email / SMS / letters), evidence names and newest activity. A violation reported from a template also carries template {id, name}, offense_number and ladder_step (the step applied: offense_number, fine_amount, fine_due_days, requires_hearing, proposed_fine while a hearing-required fine is not invoiced yet); all null without a template.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the violation
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /violations/{id} /activity
Activity of a violation#
violations:read
The violation's activity, oldest first within a page;.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the violation cursor query (activity_next_cursor / next_cursor) walks back
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/activity" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/activity');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/activity", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/activity",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /violations
Create a violation#
violations:write
Create a violation (as the dashboard's violation form). At least one notification channel is required, as on the dashboard. With template_id the template fills every field the caller leaves out (title, description, resolution_deadline = today + its deadline days, notify_email / notify_sms / notify_letter from its channels, letter_mailing_class) and applies its repeat-offense ladder: the offense number is computed here from the unit's earlier violations of the template within its lookback, and without fine_amount the step's fine is invoiced (a hearing-required step invoices nothing: the case moves to Hearing Scheduled and the fine is only proposed; a fine_amount > 0 on such a step is refused with 422 on fine_amount). A fine_amount (or "0" for no fine) different from the step's is recorded as an override, with override_reason in the case history. The answer carries template, offense_number and ladder_step.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
unit required id title required without template_id description — reported_date default today resolution_deadline default in 14 days fine_amount — fine_due_date issues the fine invoice notify_email default true notify_sms — notify_letter — letter_mailing_class — letter_confirmed_cost a paid letter: the cost must be confirmed request a request id: links the violation as its follow-up template_id a violation template id, see /violation-templates override_reason with template_id: why fine_amount differs from the template's fine
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"unit":"UNIT_ID"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'unit' => 'UNIT_ID',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"unit": "UNIT_ID"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"unit": "UNIT_ID"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /violations/{id}
Update a violation#
violations:write
Absent fields are left as they are. A resolved violation is read-only until reopened. Nothing is sent to the owner.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the violation Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title — description null or "" removes it resolution_deadline today or later, at most 5 years ahead deadline_reason — assignee staff id, "me", or null to unassign committee committee id, or null to remove it
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /violations/{id} /attachments
Attachments#
violations:write
Attach files to a violation. Without files the answer is an upload_url the user opens on their phone to add the files (30 minutes, single use).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the violation Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
files list of {filename, content_base64}; at most 10 files, 10 MB each and 45 MB together note an internal note saved with the files
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/attachments" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"files":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/attachments');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'files' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/attachments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"files": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/attachments",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"files": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /violations/{id} /fines
Fine a violation#
violations:write
Issue a fine: an invoice to the unit (the owner gets the invoice email), recorded on the violation, which moves to fined when it is earlier in the process.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the violation Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
amount required — due_date default today reason — notes — notify_email also email the owners a fine notice force_email send that notice even though an email notice went out in the last 24 hours; without it such a call is refused with 409 and nothing is issued
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/fines" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"amount":"125.00"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/fines');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'amount' => '125.00',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/fines", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"amount": "125.00"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/fines",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"amount": "125.00"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /violations/{id} /notes
Add a violation note#
violations:write
Add an internal note (staff only: the owner never sees it). Allowed on resolved violations too.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the violation Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
text required —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/notes" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"text":"Called the owner, sending photos."}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/notes');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Called the owner, sending photos.',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/notes", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"text": "Called the owner, sending photos."
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/notes",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"text": "Called the owner, sending photos."
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /violations/{id} /notices
Send a violation notice#
violations:write
Send the owner a notice on one channel, recorded on the violation. Answers 201 when sent, 202 when a letter may have gone out but could not be confirmed (check the notices before retrying).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the violation Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
channel required email|sms|letter message default: the standard notice text; supports [[variables]] such as [[firstName]] format text|html, default text subject email; default "Violation Notice: <title>" mailing_class letter; default first class confirmed_cost letter: required, the exact cost — a call without it answers 422 with the cost force send even though a notice on this channel went out in the last 24 hours; otherwise 409
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/notices" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"channel":"email"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/notices');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'channel' => 'email',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/notices", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"channel": "email"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/notices",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"channel": "email"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /violations/{id} /status
Change violation status#
violations:write
Change the status. Resolving emails the owners the "violation resolved" email (once a day), as on the dashboard.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the violation Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
status required pending|in_review|awaiting_compliance|hearing_scheduled|fined|lien|legal| resolved note required to reopen a resolved violation and to move into lien or legal expected_status refused with 409 if the violation is no longer in that status
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/status" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"status":"pending"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/status');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'status' => 'pending',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/status", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"status": "pending"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID/status",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"status": "pending"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /violations/{id}
Delete a violation#
violations:write
Delete the violation (soft delete, as on the dashboard). Its fine invoices are not touched.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the violation Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/violations/VIOLATION_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /work-orders
List work orders#
work_orders:read
Newest first. The query is the dashboard list's (WorkOrderRepository::createListQueryBuilder()).
Parameters
Name In Description
community required path Community id (GET /communities) q query number ("WO-12") / title / unit / vendor / description search status query and priority query one or more comma-separated keys vendor query <vendor id>|none unit query <unit id> open query true|false overdue query true created_from query and created_to query and scheduled_from query dates (inclusive, community-local days) scheduled_to query dates (inclusive, community-local days) limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /work-orders/{id}
Get a work order#
work_orders:read
With payments, documents (metadata), and the most recent history events
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the work order
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /work-orders/{id} /history
History of a work order#
work_orders:read
The full history, oldest first
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the work order limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/history" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/history');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/history", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/history",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /work-orders
Create a work order#
work_orders:write
Create a work order.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title required — description — unit id; absent / null = common area vendor id priority low|medium|high|urgent, default medium status new|assigned|in_progress|awaiting_payment; assigned needs a vendor; default new scheduled_at YYYY-MM-DD or YYYY-MM-DDTHH:MM, community time estimated_cost — notify_vendor —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /work-orders/{id}
Update a work order#
work_orders:write
Absent fields are left as they are; all of it in one locked transaction. A completed / cancelled work order only takes completion_notes until reopened.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the work order Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title — description — unit null = common area vendor null removes it priority — scheduled_at null clears it estimated_cost null clears it completion_notes —
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /work-orders/{id} /payments/{payment}
Correct a work order payment#
work_orders:write
Correct a manual payment. Linked / cheque payments are refused.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the work order payment required path Id of the payment Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
amount — paid_date — method — notes null clears
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments/PAYMENT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"amount":"125.00"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments/PAYMENT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'amount' => '125.00',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments/PAYMENT_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"amount": "125.00"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments/PAYMENT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"amount": "125.00"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /work-orders/{id} /attachments
Attachments#
work_orders:write
Attach files to a work order (internal: never shared with the vendor). Without files the answer is an upload_url the user opens on their phone to add the files (30 minutes, single use).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the work order Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
files list of {filename, content_base64}; at most 10 files, 10 MB each and 45 MB together note an internal note
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/attachments" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"files":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/attachments');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'files' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/attachments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"files": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/attachments",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"files": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /work-orders/{id} /notes
Add a work order note#
work_orders:write
Add an internal note (staff only). Allowed on closed work orders too.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the work order Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
text required —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/notes" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"text":"Called the owner, sending photos."}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/notes');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Called the owner, sending photos.',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/notes", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"text": "Called the owner, sending photos."
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/notes",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"text": "Called the owner, sending photos."
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /work-orders/{id} /payments
Record a work order payment#
work_orders:write
Record a payment made to the vendor (bookkeeping only: nothing is paid by this call). Updates the actual cost.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the work order Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
amount required — paid_date required default today method required check|credit_card|debit_card|cash|ach|wire|other notes —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"amount":"125.00","paid_date":"2026-12-01","method":"check"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'amount' => '125.00',
'paid_date' => '2026-12-01',
'method' => 'check',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"amount": "125.00",
"paid_date": "2026-12-01",
"method": "check"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"amount": "125.00",
"paid_date": "2026-12-01",
"method": "check"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /work-orders/{id} /status
Change work order status#
work_orders:write
Change the status. Assigned needs a vendor.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the work order Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
status required new|assigned|in_progress|awaiting_payment|completed|cancelled note required to cancel and to reopen a completed / cancelled work order expected_status refused with 409 if the work order is no longer in that status
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/status" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"status":"new"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/status');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'status' => 'new',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/status", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"status": "new"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/status",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"status": "new"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /work-orders/{id}
Delete a work order#
work_orders:write
Delete the work order (soft delete, as on the dashboard). Its payments are not touched.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the work order Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /work-orders/{id} /payments/{payment}
Remove a work order payment#
work_orders:write
Remove a manual payment recorded by mistake (an audit history row is kept). Linked / cheque payments are refused.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the work order payment required path Id of the payment Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments/PAYMENT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments/PAYMENT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments/PAYMENT_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/work-orders/WORK_ORDER_ID/payments/PAYMENT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /vendors
List vendors#
vendors:read
By name.
Parameters
Name In Description
community required path Community id (GET /communities) q query name/category/email search category query exact category status query active|inactive coi_expires_before query YYYY-MM-DD (vendors whose COI expires before that date, expired ones included). limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /vendors/{id}
Get a vendor#
vendors:read
With contacts, documents (metadata), recent work orders and recent work order payments
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the vendor
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /vendors
Create a vendor#
vendors:write
Create a vendor.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
name required — category required — status active|inactive, default active website — contact_name primary contact's full name contact_email — contact_phone — address1 — address2 — city — state — zip — country 2 letters, default US notes — coi_expiration_date — payment_method ACH Transfer|Check|Credit Card|Wire Transfer|Other tax_id — has_w9_on_file — is_1099_vendor —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"name":"Governing documents","category":"CATEGORY_ID"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Governing documents',
'category' => 'CATEGORY_ID',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"name": "Governing documents",
"category": "CATEGORY_ID"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Governing documents",
"category": "CATEGORY_ID"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /vendors/{id}
Update a vendor#
vendors:write
Edit a vendor. Absent fields are left as they are; contact_* update the primary contact (created when missing).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the vendor Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
any required — category required — status required — website required — contact_name required — contact_email required — contact_phone required — address1 required — address2 required — city required — state required — zip required — country required — notes required — coi_expiration_date required — payment_method required — tax_id required — has_w9_on_file required — is_1099_vendor required —
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"any":"string","category":"CATEGORY_ID","status":"string","website":"string","contact_name":"string","contact_email":"string","contact_phone":"string","address1":"string","address2":"string","city":"string","state":"string","zip":"string","country":"string","notes":"Paid at the office.","coi_expiration_date":"2026-12-01","payment_method":"string","tax_id":"string","has_w9_on_file":"string","is_1099_vendor":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'any' => 'string',
'category' => 'CATEGORY_ID',
'status' => 'string',
'website' => 'string',
'contact_name' => 'string',
'contact_email' => 'string',
'contact_phone' => 'string',
'address1' => 'string',
'address2' => 'string',
'city' => 'string',
'state' => 'string',
'zip' => 'string',
'country' => 'string',
'notes' => 'Paid at the office.',
'coi_expiration_date' => '2026-12-01',
'payment_method' => 'string',
'tax_id' => 'string',
'has_w9_on_file' => 'string',
'is_1099_vendor' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"any": "string",
"category": "CATEGORY_ID",
"status": "string",
"website": "string",
"contact_name": "string",
"contact_email": "string",
"contact_phone": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"country": "string",
"notes": "Paid at the office.",
"coi_expiration_date": "2026-12-01",
"payment_method": "string",
"tax_id": "string",
"has_w9_on_file": "string",
"is_1099_vendor": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"any": "string",
"category": "CATEGORY_ID",
"status": "string",
"website": "string",
"contact_name": "string",
"contact_email": "string",
"contact_phone": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"country": "string",
"notes": "Paid at the office.",
"coi_expiration_date": "2026-12-01",
"payment_method": "string",
"tax_id": "string",
"has_w9_on_file": "string",
"is_1099_vendor": "string"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /vendors/{id}
Delete a vendor#
vendors:write
Delete a vendor (soft delete, as the dashboard). Its work orders and payments are kept.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the vendor Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/vendors/VENDOR_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /communications
List communications#
communications:read
Newest first.
Parameters
Name In Description
community required path Community id (GET /communities) channel query email|sms|letter status query pending|ready|printing|sent|delivered|soft_bounce|hard_bounce|failed|cancelled scheduled query true|false (send date in the future) from query send dates to query send dates unit query <unit id> q query subject search limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /communications/{id}
Get a communication#
communications:read
Plain-text body, recipient names (no addresses), attachment names, delivery status
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the communication
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/COMMUNICATION_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/COMMUNICATION_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/COMMUNICATION_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/COMMUNICATION_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /communications/emails
Email a unit's contacts#
communications:write
Email a unit's contacts. Answers the recorded email and any contact the hand-off failed for.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
unit required id subject required — message required — format text|html, default text contacts contact ids of the unit; default: every contact of the unit with an email
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/emails" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"unit":"UNIT_ID","subject":"Pool closed Monday","message":"Hi [[firstName]], the pool is closed Monday for repairs."}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/emails');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'unit' => 'UNIT_ID',
'subject' => 'Pool closed Monday',
'message' => 'Hi [[firstName]], the pool is closed Monday for repairs.',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/emails", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"unit": "UNIT_ID",
"subject": "Pool closed Monday",
"message": "Hi [[firstName]], the pool is closed Monday for repairs."
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/emails",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"unit": "UNIT_ID",
"subject": "Pool closed Monday",
"message": "Hi [[firstName]], the pool is closed Monday for repairs."
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /communications/letters
Mail a letter to a unit's contacts#
communications:write
Mail a paid letter (PostGrid, charged to the account wallet) to a unit's contacts, one per contact, as the unit's send-letter page. Answers 201 with the letters sent, `failed` (not sent, nothing charged unless noted) and `unconfirmed` (may have gone out: check Physical Mail before sending again); 202 when no letter was confirmed but some may have gone out; 422 when nothing was sent.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
unit required id subject required — message required — format text|html, default text mailing_class default first_class contacts contact ids of the unit; default: every contact of the unit — a contact without an address is mailed at the unit's address confirmed_cost required the exact TOTAL for all recipients — a call without it answers 422 with the cost
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/letters" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"unit":"UNIT_ID","subject":"Pool closed Monday","message":"Hi [[firstName]], the pool is closed Monday for repairs.","confirmed_cost":"125.00"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/letters');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'unit' => 'UNIT_ID',
'subject' => 'Pool closed Monday',
'message' => 'Hi [[firstName]], the pool is closed Monday for repairs.',
'confirmed_cost' => '125.00',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/letters", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"unit": "UNIT_ID",
"subject": "Pool closed Monday",
"message": "Hi [[firstName]], the pool is closed Monday for repairs.",
"confirmed_cost": "125.00"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/letters",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"unit": "UNIT_ID",
"subject": "Pool closed Monday",
"message": "Hi [[firstName]], the pool is closed Monday for repairs.",
"confirmed_cost": "125.00"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /communications/sms
Text a unit's contacts#
communications:write
Text a unit's contacts (the community's SMS must be enabled). One text per contact; contacts that opted out (STOP) or have no valid number are reported in `failed`. 422 when nothing was sent.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
unit required id message required 10-1200 characters contacts contact ids of the unit; default: every contact of the unit with a phone
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/sms" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"unit":"UNIT_ID","message":"Hi [[firstName]], the pool is closed Monday for repairs."}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/sms');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'unit' => 'UNIT_ID',
'message' => 'Hi [[firstName]], the pool is closed Monday for repairs.',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/sms", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"unit": "UNIT_ID",
"message": "Hi [[firstName]], the pool is closed Monday for repairs."
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/communications/sms",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"unit": "UNIT_ID",
"message": "Hi [[firstName]], the pool is closed Monday for repairs."
},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /meetings
List meetings#
meetings:read
Parameters
Name In Description
community required path Community id (GET /communities) when query upcoming|past (past: newest first) from query dates to query dates category query board_meeting|committee_meeting|annual_meeting q query — limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /meetings/board-members
List board members#
meetings:read
The community's current board members (ids for action item assignees and decision movers)
Parameters
Name In Description
community required path Community id (GET /communities)
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/board-members" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/board-members');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/board-members", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/board-members",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /meetings/{id}
Get a meeting#
meetings:read
The meeting with agenda, attendees, decisions, action items and minutes; a section the user may not see is null
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the meeting
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /meetings/{id} /agenda-items
Add an agenda item#
meetings:write
Add an item at the end of a meeting's agenda.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the meeting Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title required — description — item_type regular|consent|action| information|discussion|vote|executive_session, default regular presenter board member id planned_duration_minutes 1-180
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/agenda-items" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/agenda-items');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/agenda-items", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/agenda-items",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /meetings/{id} /attendance
Record meeting attendance#
meetings:write
Record a meeting's attendance list. Nobody is notified.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the meeting Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
add_board_members true: put every current board member on the list, invited and absent, as the dashboard's "initialize from board" attendees list of {board_member? | contact? | name? (a guest), rsvp_status? (invited|accepted|declined), attendance_status? (present|absent|late|excused), remove? (true: take the person off the list)}; a person not yet on the list is added
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/attendance" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"add_board_members":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/attendance');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'add_board_members' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/attendance", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"add_board_members": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/attendance",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"add_board_members": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /meetings/{id} /decisions
Record a meeting decision#
meetings:write
Record a decision of a board meeting.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the meeting Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title required — decision_type required motion_passed|motion_failed|consensus|tabled| deferred description — moved_by — vote_result e.g. "5-2" follow_up —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/decisions" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street","decision_type":"motion_passed"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/decisions');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
'decision_type' => 'motion_passed',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/decisions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street",
"decision_type": "motion_passed"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/meetings/MEETING_ID/decisions",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street",
"decision_type": "motion_passed"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /action-items
Create a meeting action item#
meetings:write
Create an action item.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title required — description — meeting the board meeting it came from assignee board member id priority low|normal|high|urgent, default normal status pending|in_progress|completed|cancelled, default pending due_date —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /action-items/{id}
Update a meeting action item#
meetings:write
Update an action item. An assignee without the edit permission may change only the status of their own items.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the action item Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title — description — assignee null unassigns priority — status — due_date null clears
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items/ACTION_ITEM_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items/ACTION_ITEM_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items/ACTION_ITEM_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items/ACTION_ITEM_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /action-items/{id}
Delete a meeting action item#
meetings:write
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the action item Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items/ACTION_ITEM_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items/ACTION_ITEM_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items/ACTION_ITEM_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/action-items/ACTION_ITEM_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /votes
Newest first.
Parameters
Name In Description
community required path Community id (GET /communities) status query draft|active|closed type query board|committee|property_owners q query title/description search limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /votes/{id}
The vote with its questions and result tallies (no individual ballots)
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the vote
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /votes
Create a vote#
votes:write
Create a vote with its questions in one call (the dashboard's vote wizard). It is saved as a draft unless open is true, which sends it to the voters at once (every eligible voter is emailed a ballot, as the wizard's last step).
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title required — description — type required board|committee|property_owners: who votes committee committee id, required for a committee vote: GET /committees questions required list of {text, type: yes_no|single_choice, options?: list of 2-50 choices for single_choice, required?: default true} starts_at ISO 8601 date-time; without an offset the community's local time ends_at — allow_anonymous — allow_abstain — require_quorum — quorum_percentage 0-100, required with require_quorum open default false
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street","type":"board","questions":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
'type' => 'board',
'questions' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street",
"type": "board",
"questions": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street",
"type": "board",
"questions": "string"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /votes/{id}
Update a draft vote#
votes:write
Edit a draft vote (the wizard allows editing until it is sent). Absent fields are left as they are. 409 once the vote was sent. To send it: POST /votes/{id}/open.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the vote Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
any required — description required — type required — committee required — questions required replaces all of them starts_at required — ends_at required — allow_anonymous required — allow_abstain required — require_quorum required — quorum_percentage required —
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"any":"string","description":"Bins left out after collection day.","type":"string","committee":"COMMITTEE_ID","questions":"string","starts_at":"string","ends_at":"string","allow_anonymous":"string","allow_abstain":"string","require_quorum":"string","quorum_percentage":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'any' => 'string',
'description' => 'Bins left out after collection day.',
'type' => 'string',
'committee' => 'COMMITTEE_ID',
'questions' => 'string',
'starts_at' => 'string',
'ends_at' => 'string',
'allow_anonymous' => 'string',
'allow_abstain' => 'string',
'require_quorum' => 'string',
'quorum_percentage' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"any": "string",
"description": "Bins left out after collection day.",
"type": "string",
"committee": "COMMITTEE_ID",
"questions": "string",
"starts_at": "string",
"ends_at": "string",
"allow_anonymous": "string",
"allow_abstain": "string",
"require_quorum": "string",
"quorum_percentage": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"any": "string",
"description": "Bins left out after collection day.",
"type": "string",
"committee": "COMMITTEE_ID",
"questions": "string",
"starts_at": "string",
"ends_at": "string",
"allow_anonymous": "string",
"allow_abstain": "string",
"require_quorum": "string",
"quorum_percentage": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /votes/{id} /close
Close a vote#
votes:write
Close an open vote: no more ballots are accepted.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the vote Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID/close" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID/close');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID/close", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID/close",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /votes/{id} /open
Open a draft vote: it becomes active and the eligible voters are emailed their ballot. Only once.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the vote Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID/open" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID/open');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID/open", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID/open",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /votes/{id}
Delete a vote#
votes:write
Delete the vote (soft delete, as on the dashboard).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the vote Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/votes/VOTE_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /events
Parameters
Name In Description
community required path Community id (GET /communities) from query dates (events overlapping the range, inclusive) to query dates (events overlapping the range, inclusive) when query upcoming|past (past: newest first) category query board_meeting|annual_meeting|committee_meeting|community_party|social_event|maintenance_notice|other q query — limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /events/{id}
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the event
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /events
Create an event or meeting#
events:write
Create an event or meeting. A meeting category also needs meetings:write. Nobody is notified.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title required — category required board_meeting|annual_meeting|committee_meeting|community_party| social_event|maintenance_notice|other or a custom category of the community event_type required in_person|virtual| hybrid starts_at required local time like 2026-03-01T18:30, no offset duration_minutes required — location — address1 — address2 — city — state — zip — description — save_location remember the location for later events repeat {frequency: weekly|monthly|yearly, ends_on?: date}: a recurring series, generated 90 days ahead; the first occurrence is returned
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street","category":"board_meeting","event_type":"in_person","starts_at":"string","duration_minutes":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
'category' => 'board_meeting',
'event_type' => 'in_person',
'starts_at' => 'string',
'duration_minutes' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street",
"category": "board_meeting",
"event_type": "in_person",
"starts_at": "string",
"duration_minutes": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street",
"category": "board_meeting",
"event_type": "in_person",
"starts_at": "string",
"duration_minutes": "string"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /events/{id}
Update an event or meeting#
events:write
Edit an event or meeting (one occurrence of a series: the others are unchanged, as on the dashboard). Absent fields are left as they are.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the event Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
any required — category required — event_type required — starts_at required — duration_minutes required — location required — address1 required — address2 required — city required — state required — zip required — description required — save_location required —
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"any":"string","category":"CATEGORY_ID","event_type":"string","starts_at":"string","duration_minutes":"string","location":"string","address1":"string","address2":"string","city":"string","state":"string","zip":"string","description":"Bins left out after collection day.","save_location":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'any' => 'string',
'category' => 'CATEGORY_ID',
'event_type' => 'string',
'starts_at' => 'string',
'duration_minutes' => 'string',
'location' => 'string',
'address1' => 'string',
'address2' => 'string',
'city' => 'string',
'state' => 'string',
'zip' => 'string',
'description' => 'Bins left out after collection day.',
'save_location' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"any": "string",
"category": "CATEGORY_ID",
"event_type": "string",
"starts_at": "string",
"duration_minutes": "string",
"location": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"description": "Bins left out after collection day.",
"save_location": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"any": "string",
"category": "CATEGORY_ID",
"event_type": "string",
"starts_at": "string",
"duration_minutes": "string",
"location": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"description": "Bins left out after collection day.",
"save_location": "string"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /events/{id}
Delete an event or meeting#
events:write
Delete an event or meeting (one occurrence of a series). A meeting also needs meetings:write.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the event Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/events/EVENT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
Reference
Amenity reservations
4 endpoints
GET
/api/v1/communities/{community} /amenity-reservations
List amenity reservations#
events:read
Oldest first.
Parameters
Name In Description
community required path Community id (GET /communities) amenity query <amenity id> unit query <unit id> status query pending|confirmed|denied|cancelled|completed from query dates (reservations overlapping the range, inclusive) to query dates (reservations overlapping the range, inclusive) when query upcoming|past (past: newest first) limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /amenity-reservations/{id}
Get a amenity reservation#
events:read
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the amenity reservation
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations/AMENITY_RESERVATION_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations/AMENITY_RESERVATION_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations/AMENITY_RESERVATION_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations/AMENITY_RESERVATION_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /amenity-reservations
Reserve an amenity#
events:write
Reserve an amenity for a unit.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
amenity required amenity id unit required unit id contact contact id starts_at required — ends_at required the community's local date and time like 2026-07-04T14:00, no offset party_size — notes — email_invoice default true, as the dashboard: when the amenity has a fee, the unit's invoice is emailed
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"amenity":"string","unit":"UNIT_ID","starts_at":"string","ends_at":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'amenity' => 'string',
'unit' => 'UNIT_ID',
'starts_at' => 'string',
'ends_at' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"amenity": "string",
"unit": "UNIT_ID",
"starts_at": "string",
"ends_at": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"amenity": "string",
"unit": "UNIT_ID",
"starts_at": "string",
"ends_at": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /amenity-reservations/{id} /status
Approve, deny or cancel a reservation#
events:write
Approve, deny or cancel a reservation. No refund is made for a paid fee.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the amenity reservation Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
action required approve: pending → confirmed | deny: pending → denied | cancel: pending or confirmed → cancelled
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations/AMENITY_RESERVATION_ID/status" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"action":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations/AMENITY_RESERVATION_ID/status');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'action' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations/AMENITY_RESERVATION_ID/status", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"action": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/amenity-reservations/AMENITY_RESERVATION_ID/status",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"action": "string"
},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /documents
List documents#
documents:read
Newest first.
Parameters
Name In Description
community required path Community id (GET /communities) folder query <folder id>|root (direct contents) category query governing|financial|minutes|policies|architectural|general q query title/file name/description search starred query true (starred by the token's user) limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /documents/{id}
Get a document#
documents:read
Metadata + download_url: a presigned S3 link valid DOWNLOAD_URL_TTL seconds (download_url_expires_at)
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the document
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /documents
Upload a document#
documents:write
Upload one file. Images are re-encoded without their metadata; types and size are checked as on the dashboard.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body multipart/form-data
Field Description
file required — folder folder id; default the top level title — description — visibility — on_duplicate replace|keep_both|skip
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-F "file=@bylaws.pdf" -F "title=Bylaws 2026"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
CURLOPT_POSTFIELDS => ['file' => new CURLFile('bylaws.pdf'), 'title' => 'Bylaws 2026'],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
files={"file": open("bylaws.pdf", "rb")},
data={"title": "Bylaws 2026"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /documents/base64
Upload a document#
documents:write
Upload one file sent as base64 in a JSON body (for clients that can't send multipart, e.g. an AI over MCP). At most 10 MB decoded (or the multipart limit if lower), with the same type, content and size checks as the dashboard and the multipart upload.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
filename required with its extension, like Bylaws 2026.pdf content_base64 required the file's bytes in standard base64; a data URI prefix is accepted folder folder id; default the top level title — description — visibility — on_duplicate replace|keep_both|skip
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/base64" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"filename":"string","content_base64":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/base64');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'filename' => 'string',
'content_base64' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/base64", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"filename": "string",
"content_base64": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/base64",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"filename": "string",
"content_base64": "string"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /documents/{id}
Update a document#
documents:write
Change a document.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the document Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
title — description — visibility — folder folder id, or null for the top level on_duplicate —
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Trash cans visible from the street"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Trash cans visible from the street',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Trash cans visible from the street"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "Trash cans visible from the street"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /documents/{id}
Trash a document#
documents:write
Move a document to the trash (restorable from the dashboard's Trash for the retention period).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the document Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/documents/DOCUMENT_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
Reference
Document folders
4 endpoints
GET
/api/v1/communities/{community} /document-folders
List document folders#
documents:read
The whole live folder tree, roots first (each node: children + its direct document count)
Parameters
Name In Description
community required path Community id (GET /communities)
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /document-folders
Create a document folder#
documents:write
Create a folder.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
name required — parent folder id; default the top level visibility — on_duplicate —
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"name":"Governing documents"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Governing documents',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"name": "Governing documents"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Governing documents"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /document-folders/{id}
Update a document folder#
documents:write
Change a folder.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the document folder Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
name — visibility — parent folder id, or null for the top level on_duplicate —
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders/DOCUMENT_FOLDER_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"name":"Governing documents"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders/DOCUMENT_FOLDER_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Governing documents',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders/DOCUMENT_FOLDER_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"name": "Governing documents"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders/DOCUMENT_FOLDER_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Governing documents"
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /document-folders/{id}
Trash a document folder#
documents:write
Move a folder and everything in it to the trash (restorable from the dashboard for the retention period).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the document folder Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 {data: {id, deleted: true}, warnings}
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders/DOCUMENT_FOLDER_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders/DOCUMENT_FOLDER_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders/DOCUMENT_FOLDER_ID", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/document-folders/DOCUMENT_FOLDER_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /transactions
List bank transactions#
banking:read
Newest first. The category of a transaction split across categories is null: is_split is true and each line of splits has its category, amount (positive), direction, percent (set when split by percent) and memo.
Parameters
Name In Description
community required path Community id (GET /communities) bank_account query <id> from query dates (inclusive) to query dates (inclusive) category query <category uuid> (and its subcategories; any line of a split) uncategorized query true (not splits) min_amount query absolute amount max_amount query absolute amount direction query in|out q query name/merchant search reviewed query true|false status query pending|posted reconciled query true|false unit query <unit id> vendor query <vendor id> limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /transactions/{id}
Get a transaction#
banking:read
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the transaction
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /transactions
Add a manual bank transaction#
banking:write
Add a manual transaction to a bank account (the dashboard's "Add transaction" form): it moves the account's book balance (and the bank balance of a manual account).
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
bank_account required id name required — amount required positive date required — accounting_type income|expense|transfer|asset|liability, default: the category's; one of the two is required direction in|out, any type, e.g. in with expense for a refund; default: in for income, else out; required for a transfer or with splits category transaction category id splits instead of category and accounting_type: 2 to 10 lines of {category: id, amount or percent, memo?}, as in PUT /transactions/{id}/split merchant_name — vendor id work_order id of an open work order of that vendor: an expense going out records a payment on it, or is matched to the one payment of that amount the work order already has work_order_payment the work order's payment id this transaction is, or "new" for another payment: needed when the work order already has payments it may be unit id: money in is posted to the unit's ledger as an unapplied payment invoice id of a pending invoice of that unit: the amount is applied as a payment link_only income with a unit and no invoice: already paid online with Stripe, link only reviewed default false: it lands in the review queue
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"bank_account":"string","name":"Governing documents","amount":"125.00","date":"string"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'bank_account' => 'string',
'name' => 'Governing documents',
'amount' => '125.00',
'date' => 'string',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"bank_account": "string",
"name": "Governing documents",
"amount": "125.00",
"date": "string"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"bank_account": "string",
"name": "Governing documents",
"amount": "125.00",
"date": "string"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /transactions/{id} /category
Categorize a bank transaction#
banking:write
Set a transaction's category (as the register's category picker). The accounting type follows the category. A pending transaction can't be changed, nor a split one without replace_split (409); nor can the accounting type of a manual transaction on a unit's ledger, an invoice or a work order (unlink it first).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the transaction Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
category required transaction category id reviewed true also accepts it out of the review queue create_rule true: also save a rule "description contains <this transaction's name>" on its bank account with this category / vendor / unit / accounting type, as the dashboard's "create rule for similar transactions" rule_name default: the merchant or name apply_to_existing with create_rule, default true: run the rules on the unreviewed transactions now replace_split true: a transaction split across categories loses its lines and gets this one category
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/category" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"category":"CATEGORY_ID"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/category');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'category' => 'CATEGORY_ID',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/category", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"category": "CATEGORY_ID"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/category",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"category": "CATEGORY_ID"
},
)
data = res.json()["data"]
PUT
/api/v1/communities/{community} /transactions/{id} /split
Split a bank transaction across categories#
banking:write
Split a transaction across categories, replacing its category or current lines (the dashboard's Split editor). The transaction's amount doesn't change; its category becomes null and reports count each line under its own category. 409: a pending transaction, or lines that would change the accounting type of a manual transaction on a unit's ledger, an invoice or a work order (unlink it first).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the transaction Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
splits required 2 to 10 lines of {category: id, amount or percent, memo?}; every line has an amount, or every line has a percent; amounts are in the transaction's direction and add up to its amount, a negative one reduces it, e.g. 1000.00 dues and -30.00 fees of a 970.00 deposit; percents are positive and add up to 100 reviewed true also accepts it out of the review queue
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PUT "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/split" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"splits":[{"category":"CATEGORY_ID","percent":"60"},{"category":"CATEGORY_ID","percent":"40"}]}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/split');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'splits' => [
[
'category' => 'CATEGORY_ID',
'percent' => '60',
],
[
'category' => 'CATEGORY_ID',
'percent' => '40',
],
],
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/split", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"splits": [
{
"category": "CATEGORY_ID",
"percent": "60"
},
{
"category": "CATEGORY_ID",
"percent": "40"
}
]
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.put(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/split",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"splits": [
{
"category": "CATEGORY_ID",
"percent": "60"
},
{
"category": "CATEGORY_ID",
"percent": "40"
}
]
},
)
data = res.json()["data"]
DEL
/api/v1/communities/{community} /transactions/{id} /split
Remove a transaction's split#
banking:write
Remove a transaction's split. The amount and direction don't change. 409 when it is not split or is pending, or when the category's accounting type would change a manual transaction on a unit's ledger, an invoice or a work order (unlink it first).
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the transaction Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
category transaction category id; left out: uncategorized
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X DELETE "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/split" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"category":"CATEGORY_ID"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/split');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'category' => 'CATEGORY_ID',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/split", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"category": "CATEGORY_ID"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.delete(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/transactions/TRANSACTION_ID/split",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"category": "CATEGORY_ID"
},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /budgets
List budgets#
budgets:read
Latest fiscal year first.
Parameters
Name In Description
community required path Community id (GET /communities) fiscal_year query YYYY (the year the budget starts in) status query draft|active|completed|archived (archived budgets are hidden unless asked for, as on the dashboard). limit query Page size, 1–100 (default 25)
cursor query The next_cursor of the previous page
Responses
200 A page: {data: [...], next_cursor}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
GET
/api/v1/communities/{community} /budgets/{id}
Get a budget#
budgets:read
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the budget
Responses
200 {data: {...}}
4XX Problem: 401, 403 (scope / permission), 404
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID", {
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.get(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}"},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /budgets
Create a draft budget#
budgets:write
Create a draft budget. The budget stays a draft until activated.
Parameters
Name In Description
community required path Community id (GET /communities) Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
name required — start_date required — end_date required after start_date description — line_items list of {type (revenue|expense), category (transaction category id: an income category for revenue, an expense or reserve / capital (asset) one for expense), amount (annual), fund? (operating|reserve, default operating), phasing? (even|seasonal|manual, default even), monthly_amounts? (seasonal / manual: one amount per month of the period; manual ones must add up to the amount)}
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"name":"Governing documents","start_date":"2026-12-01","end_date":"2026-12-01"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Governing documents',
'start_date' => '2026-12-01',
'end_date' => '2026-12-01',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"name": "Governing documents",
"start_date": "2026-12-01",
"end_date": "2026-12-01"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Governing documents",
"start_date": "2026-12-01",
"end_date": "2026-12-01"
},
)
data = res.json()["data"]
PATCH
/api/v1/communities/{community} /budgets/{id}
Update a budget#
budgets:write
Edit a budget, as the dashboard's budget edit form. Absent fields are left as they are.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the budget Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Request body application/json
Field Description
name — description — start_date — end_date — line_items same shape as on create; REPLACES all the lines
Responses
200 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X PATCH "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"name":"Governing documents"}'
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Governing documents',
]),
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"name": "Governing documents"
}),
});
const { data } = await res.json();
import os, uuid, requests
res = requests.patch(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Governing documents"
},
)
data = res.json()["data"]
POST
/api/v1/communities/{community} /budgets/{id} /activate
Activate a budget#
budgets:write
Make this the community's active budget (the dashboard's "Activate"): the budget reports compare against it, and the previously active budget becomes completed. It sends nothing and bills nothing. No body.
Parameters
Name In Description
community required path Community id (GET /communities) id required path Id of the budget Idempotency-Key header A UUID: a retry with the same key and body returns the first answer instead of repeating the write (24 hours).
Responses
200 / 201 {data: {...}, warnings: [...]} — the record as it now is
4XX Problem: 403, 404, 409 (changed meanwhile), 422 {errors: [{field, message}]}
429 Rate limited: retry after Retry-After
Example request
curl
PHP
Node.js
Python
Copy
curl -X POST "https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID/activate" \
-H "Authorization: Bearer $PERFECTHOA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
$ch = curl_init('https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID/activate');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PERFECTHOA_TOKEN'),
],
]);
$result = json_decode(curl_exec($ch), true);
const res = await fetch("https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID/activate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PERFECTHOA_TOKEN}`,
},
});
const { data } = await res.json();
import os, uuid, requests
res = requests.post(
"https://app.perfecthoa.com/api/v1/communities/COMMUNITY_ID/budgets/BUDGET_ID/activate",
headers={"Authorization": f"Bearer {os.environ['PERFECTHOA_TOKEN']}", "Idempotency-Key": str(uuid.uuid4())},
)
data = res.json()["data"]