Spaces
Spaces across the org. Replaces GET /v1/trackables?trackable_type_code=space|unit. Pass property_id for one property's spaces at any depth, or parent_space_id=null for top-level spaces only — the latter is what the old model expressed as the space vs unit type. Every filter here is a dedicated param: space_type, status and rentable_sqft are COLUMNS, and occupancy is DERIVED from live leases rather than stored, so there is nothing left for an attribute_filters key to address.
Required scope: properties:read
Pagination: cursor
Error codes: INVALID_CURSOR, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>search?stringCase-insensitive search on designation, name and external_code.
property_id?stringNarrow to one property. Matches at ANY nesting depth, because spaces.property_id is the root property at every level — this is the property scope, and it is one indexed equality rather than a recursive walk.
uuidparent_space_id?stringNarrow by container. Pass a uuid for the spaces directly inside that space, or the literal string null for TOP-LEVEL spaces only — the latter is what the old model called trackable type space (as opposed to unit). Omit for any depth.
is_leasable?booleanNarrow to leasable (or non-leasable) spaces.
occupancy?stringOccupancy as of TODAY, resolved from live leases — never from a stored tag. A space is occupied when a contract_properties row links it to a contract that started on or before today and has not ended, where the end is the earlier of end_date and termination_date. There is deliberately no inactive value: inactive is LIFECYCLE and ?status=inactive answers it. Conflating the two is what migration 0198 got wrong. Replaces ?attribute_filters={"space_status":...}, which read a tag nobody maintained.
"vacant""occupied"space_type?stringNarrow by space type. A COLUMN filter — fix 7 moved this key out of the attributes blob, which is why it is a dedicated param.
ownership_kind?stringNarrow by ownership kind. A COLUMN filter.
"owned""common_area""rea"status?stringLifecycle status, not occupancy.
"active""inactive""archived"legal_entity_id?stringNarrow to spaces whose PROPERTY is owned by this legal entity — a space has no legal entity of its own.
uuidcursor?stringlimit?number1..100, default 50
sort?stringDefault: designation
"designation""-designation""name""-name""created_at""-created_at""rentable_sqft""-rentable_sqft"application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/spaces'{ "data": [ { "active_contract_count": 1, "active_contract_ids": [ "5743fc6c-e90a-46a4-aff2-278becb1f791" ], "attributes": {}, "created_at": "2019-08-24T14:15:22Z", "designation": "string", "external_code": "string", "has_children": false, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_leasable": true, "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839", "name": "string", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "ownership_kind": "owned", "parent_space_id": "8ef2f869-ead8-4248-b1b3-7fae1b7be5d7", "property_code": "string", "property_id": "05003a8a-8f3c-454b-8884-a906ec46f5f5", "property_name": "string", "rentable_sqft": "2500.00", "space_type": "office", "status": "active", "subtree_leaf_count": 4, "subtree_occupied_leaf_count": 3, "updated_at": "2019-08-24T14:15:22Z" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Requires property_id. Pass parent_space_id for a nested space; it must belong to the same property. designation is unique PER PARENT (spec D4) — per property for a top-level space, per parent space for a nested one — so a collision surfaces as 409 SPACE_DESIGNATION_CONFLICT. Two different properties may each have a "Suite 100"; before 0278 they could not, because the create path copied designation into external_code, which is org-unique. external_code is now the caller's to set — an OUTSIDE system's code for this space, org-unique so an importer can use it as a lookup key, and null when omitted.
Required scope: properties:write
Plannable: yes. An agent can use this operation as a step in a plan.
Error codes: VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, CONFLICT, SPACE_DESIGNATION_CONFLICT, SPACE_EXTERNAL_CODE_TAKEN, NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, LOCATION_LEASED
access-tokenAuthorizationBearer <token>Idempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- body
attributes?Caller-defined attributes (jsonb). Shape is caller-defined.
designation*stringUnique per parent (spec D4).
length <= 64external_code?stringA code an OUTSIDE system uses for this space, for an importer to find the row again on a later sync. Unique per ORG, so it can serve as that lookup key; omit it and it stays null, and any number of spaces may leave it null. It is never derived from another field — designation is what a PERSON calls the space, and the two are different facts.
length <= 64is_leasable?booleanDeclared, not inferred. Omitted on CREATE, it defaults from ownership_kind: common_area and rea are not rentable space, anything else is. That default is not a rule — a common_area may be declared leasable and an owned space declared unleasable. Whichever value results is what spec D5 is checked against, so a declared true under a leasable property or parent space is refused with LEASABLE_PATH_CONFLICT.
name?stringlength <= 200ownership_kind?string"owned""common_area""rea"parent_space_id?stringThe containing space, for a nested space. Must belong to property_id. Omit for a top-level space.
uuidproperty_id*stringThe property this space belongs to. Required.
uuidrentable_sqft?stringNumeric string with up to 2 decimal places.
space_type?string"office""retail""industrial""multifamily""land""mixed_use""other"status?string"active""inactive""archived"application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/spaces' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "designation": "string", "property_id": "05003a8a-8f3c-454b-8884-a906ec46f5f5"}'{ "data": { "active_contract_count": 1, "active_contract_ids": [ "5743fc6c-e90a-46a4-aff2-278becb1f791" ], "attributes": {}, "created_at": "2019-08-24T14:15:22Z", "designation": "string", "external_code": "string", "has_children": false, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_leasable": true, "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839", "name": "string", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "ownership_kind": "owned", "parent_space_id": "8ef2f869-ead8-4248-b1b3-7fae1b7be5d7", "property_code": "string", "property_id": "05003a8a-8f3c-454b-8884-a906ec46f5f5", "property_name": "string", "rentable_sqft": "2500.00", "space_type": "office", "status": "active", "subtree_leaf_count": 4, "subtree_occupied_leaf_count": 3, "updated_at": "2019-08-24T14:15:22Z" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: properties:read
Error codes: NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>id*stringapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/spaces/string'{ "data": { "active_contract_count": 1, "active_contract_ids": [ "5743fc6c-e90a-46a4-aff2-278becb1f791" ], "attributes": {}, "created_at": "2019-08-24T14:15:22Z", "designation": "string", "external_code": "string", "has_children": false, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_leasable": true, "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839", "name": "string", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "ownership_kind": "owned", "parent_space_id": "8ef2f869-ead8-4248-b1b3-7fae1b7be5d7", "property_code": "string", "property_id": "05003a8a-8f3c-454b-8884-a906ec46f5f5", "property_name": "string", "rentable_sqft": "2500.00", "space_type": "office", "status": "active", "subtree_leaf_count": 4, "subtree_occupied_leaf_count": 3, "updated_at": "2019-08-24T14:15:22Z" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Refused with TRACKABLE_HAS_JOURNAL_REFERENCES when journal dimensions still tag this space — the accounting spine must not point at a deleted row. Refused with SPACE_HAS_LEASES when any contract (a terminated lease included) names this space, or a space directly under it, as premises; archive the space instead. Deleting the LAST leasable space under a parent restores that parent (the containing space, or the property) to leasable, which is the inverse of the clear that subdividing performs.
Required scope: properties:write
Error codes: NOT_FOUND, CONFLICT, TRACKABLE_HAS_JOURNAL_REFERENCES, SPACE_HAS_LEASES, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>id*stringPossible error codes: LEGAL_ENTITY_NOT_IN_SCOPE
application/json- response
code*stringdetail*stringerrors?array<>instance*stringnext_action?stringWhat the caller does next. Sent only by codes that declare it (the PLAN_* codes).
"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"request_id*stringretryable?booleanWhether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).
status*numbertitle*stringtype*stringcurl -X DELETE 'https://api.acreum.io/v1/spaces/string'{ "code": "DOCUMENT_ALREADY_POSTED", "detail": "Document doc_01 is already posted.", "errors": [ { "code": "INVALID_VALUE", "field": "amount", "message": "must be > 0" } ], "instance": "/v1/documents/doc_01/post", "next_action": "fix_step", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "retryable": true, "status": 409, "title": "Document already posted", "type": "https://docs.acreum.io/errors/DOCUMENT_ALREADY_POSTED"}Required scope: properties:write
Plannable: yes. An agent can use this operation as a step in a plan.
Error codes: NOT_FOUND, VALIDATION_FAILED, SPACE_EXTERNAL_CODE_TAKEN, LEGAL_ENTITY_NOT_IN_SCOPE, LEASABLE_PATH_CONFLICT, LOCATION_LEASED
access-tokenAuthorizationBearer <token>id*stringapplication/json- body
attributes?Caller-defined attributes (jsonb). Replaces the whole blob.
designation?stringlength <= 64external_code?|A code an OUTSIDE system uses for this space, for an importer to find the row again on a later sync. Unique per ORG, so it can serve as that lookup key; omit it and it stays null, and any number of spaces may leave it null. It is never derived from another field — designation is what a PERSON calls the space, and the two are different facts. Send null to release the code so another space can claim it.
length <= 64is_leasable?booleanDeclared, not inferred. Omit it and the stored value stands, always. No other field changes it: reclassifying a space's space_type or its ownership_kind leaves its leasability exactly as declared. Refused with LEASABLE_PATH_CONFLICT when turning this space leasable while a leasable ancestor or descendant already exists (spec D5); a leasable SIBLING is on a different path and is allowed.
name?|length <= 200ownership_kind?|"owned""common_area""rea"parent_space_id?|Re-parent within the same property. Spec D5 refuses subdividing a space that carries a live lease.
uuidrentable_sqft?string|nullspace_type?|"office""retail""industrial""multifamily""land""mixed_use""other"status?string"active""inactive""archived"application/json- response
data*meta*curl -X PUT 'https://api.acreum.io/v1/spaces/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "active_contract_count": 1, "active_contract_ids": [ "5743fc6c-e90a-46a4-aff2-278becb1f791" ], "attributes": {}, "created_at": "2019-08-24T14:15:22Z", "designation": "string", "external_code": "string", "has_children": false, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_leasable": true, "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839", "name": "string", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "ownership_kind": "owned", "parent_space_id": "8ef2f869-ead8-4248-b1b3-7fae1b7be5d7", "property_code": "string", "property_id": "05003a8a-8f3c-454b-8884-a906ec46f5f5", "property_name": "string", "rentable_sqft": "2500.00", "space_type": "office", "status": "active", "subtree_leaf_count": 4, "subtree_occupied_leaf_count": 3, "updated_at": "2019-08-24T14:15:22Z" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: properties:read
Pagination: cursor
Error codes: ATTACHMENT_NOT_FOUND, VALIDATION_FAILED, INVALID_CURSOR
access-tokenAuthorizationBearer <token>parentId*stringcursor?stringlimit?number1..500, default 200
include?stringPass "descendants" to include files from spaces nested under this one, at any depth (roll-up). Pass "hierarchy" to include files of contracts linked to this space or to a space nested under it.
"descendants""hierarchy"application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/spaces/string/files'{ "data": [ { "content_type": "application/pdf", "file_name": "string", "file_sha256": "string", "file_size_bytes": 0, "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901", "folder_name": "string", "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "group_label": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "owner_name": "string", "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef", "source_kind": "party", "source_label": "string", "uploaded_at": "2019-08-24T14:15:22Z", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Required scope: properties:write
Error codes: ATTACHMENT_NOT_FOUND, ATTACHMENT_TYPE_UNSUPPORTED, ATTACHMENT_TOO_LARGE, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>parentId*stringfolderId*stringIdempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255multipart/form-data- body
file*unknownPDF, image, Office, CSV or TXT file. Max 20 MiB. Sniffed server-side.
application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/spaces/string/files?folderId=string' \ -H 'Idempotency-Key: string' \ -F 'file=null'{ "data": { "content_type": "application/pdf", "file_name": "string", "file_sha256": "string", "file_size_bytes": 0, "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901", "folder_name": "string", "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "group_label": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "owner_name": "string", "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef", "source_kind": "party", "source_label": "string", "uploaded_at": "2019-08-24T14:15:22Z", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: properties:write
Error codes: ATTACHMENT_NOT_FOUND, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY
access-tokenAuthorizationBearer <token>parentId*stringfileId*stringIdempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- body
file_name?stringNew display name for the file (rename). Trimmed server-side; storage_path and content_type never change. The extension is immutable — the new name must keep the current extension (changing it returns VALIDATION_FAILED). Omit to leave the current name unchanged. An explicit null is rejected — omit the field instead.
1 <= length <= 255folder_id?|Target folder id (see GET /v1/org-folders), or null to move the file to the root. Omit to leave the current folder unchanged.
uuidapplication/json- response
data*meta*curl -X PATCH 'https://api.acreum.io/v1/spaces/string/files/string' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "content_type": "application/pdf", "file_name": "string", "file_sha256": "string", "file_size_bytes": 0, "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901", "folder_name": "string", "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "group_label": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "owner_name": "string", "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef", "source_kind": "party", "source_label": "string", "uploaded_at": "2019-08-24T14:15:22Z", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: files:delete
Error codes: ATTACHMENT_NOT_FOUND, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY
access-tokenAuthorizationBearer <token>parentId*stringfileId*stringIdempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255Possible error codes: IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY
application/json- response
code*stringdetail*stringerrors?array<>instance*stringnext_action?stringWhat the caller does next. Sent only by codes that declare it (the PLAN_* codes).
"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"request_id*stringretryable?booleanWhether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).
status*numbertitle*stringtype*stringcurl -X DELETE 'https://api.acreum.io/v1/spaces/string/files/string' \ -H 'Idempotency-Key: string'{ "code": "DOCUMENT_ALREADY_POSTED", "detail": "Document doc_01 is already posted.", "errors": [ { "code": "INVALID_VALUE", "field": "amount", "message": "must be > 0" } ], "instance": "/v1/documents/doc_01/post", "next_action": "fix_step", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "retryable": true, "status": 409, "title": "Document already posted", "type": "https://docs.acreum.io/errors/DOCUMENT_ALREADY_POSTED"}Required scope: properties:read
Error codes: ATTACHMENT_NOT_FOUND
access-tokenAuthorizationBearer <token>parentId*stringfileId*stringapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/spaces/string/files/string/download'{ "data": { "expires_at": "2019-08-24T14:15:22Z", "url": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}