Acreum Docs
Properties & leasing

Spaces

List spaces

GET
/v1/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

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

search?string

Case-insensitive search on designation, name and external_code.

property_id?string

Narrow 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.

Formatuuid
parent_space_id?string

Narrow 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?boolean

Narrow to leasable (or non-leasable) spaces.

occupancy?string

Occupancy 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.

Value in"vacant""occupied"
space_type?string

Narrow 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?string

Narrow by ownership kind. A COLUMN filter.

Value in"owned""common_area""rea"
status?string

Lifecycle status, not occupancy.

Value in"active""inactive""archived"
legal_entity_id?string

Narrow to spaces whose PROPERTY is owned by this legal entity — a space has no legal entity of its own.

Formatuuid
cursor?string
limit?number

1..100, default 50

sort?string

Default: designation

Value in"designation""-designation""name""-name""created_at""-created_at""rentable_sqft""-rentable_sqft"

Response Body

application/json
  1. 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"  }}

Create space

POST
/v1/spaces

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

Authorization

access-token
headerAuthorizationBearer <token>

Header Parameters

Idempotency-Key*string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
attributes?

Caller-defined attributes (jsonb). Shape is caller-defined.

designation*string

Unique per parent (spec D4).

Lengthlength <= 64
external_code?string

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.

Lengthlength <= 64
is_leasable?boolean

Declared, 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?string
Lengthlength <= 200
ownership_kind?string
Value in"owned""common_area""rea"
parent_space_id?string

The containing space, for a nested space. Must belong to property_id. Omit for a top-level space.

Formatuuid
property_id*string

The property this space belongs to. Required.

Formatuuid
rentable_sqft?string

Numeric string with up to 2 decimal places.

space_type?string
Value in"office""retail""industrial""multifamily""land""mixed_use""other"
status?string
Value in"active""inactive""archived"

Response Body

application/json
  1. 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  }}

Get space by id

GET
/v1/spaces/{id}

Required scope: properties:read

Error codes: NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. 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  }}

Delete space

DELETE
/v1/spaces/{id}

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

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

Possible error codes: LEGAL_ENTITY_NOT_IN_SCOPE

application/json
  1. response
code*string
detail*string
errors?array<>
instance*string
next_action?string

What the caller does next. Sent only by codes that declare it (the PLAN_* codes).

Value in"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"
request_id*string
retryable?boolean

Whether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).

status*number
title*string
type*string
curl -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"}

Update space

PUT
/v1/spaces/{id}

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

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
attributes?

Caller-defined attributes (jsonb). Replaces the whole blob.

designation?string
Lengthlength <= 64
external_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.

Lengthlength <= 64
is_leasable?boolean

Declared, 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?|
Lengthlength <= 200
ownership_kind?|
Value in"owned""common_area""rea"
parent_space_id?|

Re-parent within the same property. Spec D5 refuses subdividing a space that carries a live lease.

Formatuuid
rentable_sqft?string|null
space_type?|
Value in"office""retail""industrial""multifamily""land""mixed_use""other"
status?string
Value in"active""inactive""archived"

Response Body

application/json
  1. 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  }}

List files for a space

GET
/v1/spaces/{parentId}/files

Required scope: properties:read

Pagination: cursor

Error codes: ATTACHMENT_NOT_FOUND, VALIDATION_FAILED, INVALID_CURSOR

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string

Query Parameters

cursor?string
limit?number

1..500, default 200

include?string

Pass "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.

Value in"descendants""hierarchy"

Response Body

application/json
  1. 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"  }}

Upload a file to a space

POST
/v1/spaces/{parentId}/files

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

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string

Query Parameters

folderId*string

Header Parameters

Idempotency-Key*string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

multipart/form-data
  1. body
file*unknown

PDF, image, Office, CSV or TXT file. Max 20 MiB. Sniffed server-side.

Response Body

application/json
  1. 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  }}
PATCH
/v1/spaces/{parentId}/files/{fileId}

Required scope: properties:write

Error codes: ATTACHMENT_NOT_FOUND, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string
fileId*string

Header Parameters

Idempotency-Key*string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
file_name?string

New 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.

Length1 <= length <= 255
folder_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.

Formatuuid

Response Body

application/json
  1. 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  }}

Delete a space file

DELETE
/v1/spaces/{parentId}/files/{fileId}

Required scope: files:delete

Error codes: ATTACHMENT_NOT_FOUND, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string
fileId*string

Header Parameters

Idempotency-Key*string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

Possible error codes: IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY

application/json
  1. response
code*string
detail*string
errors?array<>
instance*string
next_action?string

What the caller does next. Sent only by codes that declare it (the PLAN_* codes).

Value in"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"
request_id*string
retryable?boolean

Whether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).

status*number
title*string
type*string
curl -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"}
GET
/v1/spaces/{parentId}/files/{fileId}/download

Required scope: properties:read

Error codes: ATTACHMENT_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string
fileId*string

Response Body

application/json
  1. 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  }}