Acreum Docs
Organization structure

Legal Entities

GET
/v1/legal-entities

Required scope: legal-entities:read

Pagination: cursor

Error codes: INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

ownership_kind?string

Which entities to list by ownership. Defaults to 'owned' — managed (externally-owned, fee-managed) entities are opt-in.

Value in"owned""managed""all"
search?string
entity_type?string
Value in"llc""corp""partnership""trust""other"
cursor?string
limit?number

1..100, default 50

sort?string

Default: name

Value in"name""-name""created_at""-created_at"

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/legal-entities'
{  "data": [    {      "address_line1": "string",      "address_line2": "string",      "aliases": [],      "city": "string",      "code": "string",      "country": "string",      "created_at": "2019-08-24T14:15:22Z",      "default_currency": "string",      "dissolved_at": "2019-08-24",      "entity_type": "llc",      "federal_tax_class": "disregarded_entity",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "managing_legal_entity_id": "b522100b-0f0e-46bf-9e46-681f248a16fc",      "managing_legal_entity_name": "string",      "name": "string",      "operations_start_date": "2019-08-24",      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",      "ownership_kind": "owned",      "postal_code": "string",      "received_distribution_treatment": "income",      "state": "string",      "status": "active",      "tax_id": "string"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/legal-entities

Required scope: legal-entities: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, LEGAL_ENTITY_CODE_TAKEN, LEGAL_ENTITY_NOT_IN_SCOPE

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
address_line1?string
Lengthlength <= 500
address_line2?string
Lengthlength <= 500
aliases?array<string>
city?string
Lengthlength <= 200
code?string

An operator-assigned code for this entity, e.g. for a bulk CSV importer to resolve it by something shorter and more stable than its name. Unique per ORG, case-insensitively — a duplicate is 409 LEGAL_ENTITY_CODE_TAKEN. Omit it and it stays null; it is never derived from name.

Lengthlength <= 100
country?string
Lengthlength <= 10
default_currency?string

ISO 4217 code. Cannot change once the entity has journal entries (one currency per entity).

Match^[A-Z]{3}$
dissolved_at?string
Formatdate
entity_type?string

Required for owned entities. Optional for managed (defaults to 'other').

Value in"llc""corp""partnership""trust""other"
federal_tax_class?string
Value in"disregarded_entity""partnership""s_corp""c_corp""unknown"
managing_legal_entity_id?string

The owned legal entity administering this managed entity. Required iff ownership_kind = 'managed'.

Formatuuid
name*string
Length1 <= length <= 500
operations_start_date?string

Earliest date this entity can record transactions. Accounting periods materialize from this date forward; backdated posting before this date is blocked. Required for owned entities; optional for managed (defaults to the first of the current month).

Formatdate
ownership_kind?string

Defaults to 'owned'. 'managed' = an external owner's entity whose books this org keeps; requires managing_legal_entity_id and relaxes entity_type/operations_start_date. Immutable after creation.

Value in"owned""managed"
postal_code?string
Lengthlength <= 50
state?string
Lengthlength <= 100
status?string
Value in"active""inactive""in_process""dissolved"
tax_id?string
Lengthlength <= 20

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/legal-entities' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
{  "data": {    "address_line1": "string",    "address_line2": "string",    "aliases": [],    "city": "string",    "code": "string",    "country": "string",    "created_at": "2019-08-24T14:15:22Z",    "default_currency": "string",    "dissolved_at": "2019-08-24",    "entity_type": "llc",    "federal_tax_class": "disregarded_entity",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "managing_legal_entity_id": "b522100b-0f0e-46bf-9e46-681f248a16fc",    "managing_legal_entity_name": "string",    "name": "string",    "operations_start_date": "2019-08-24",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "ownership_kind": "owned",    "postal_code": "string",    "received_distribution_treatment": "income",    "state": "string",    "status": "active",    "tax_id": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/legal-entities/options

Required scope: legal-entities:read

Pagination: none

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

ownership_kind?string

Which entities to list by ownership. Defaults to 'owned' — managed (externally-owned, fee-managed) entities are opt-in.

Value in"owned""managed""all"

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/legal-entities/options'
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "ownership_kind": "owned"    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/legal-entities/owned-expansion

Given seed legal-entity ids, returns every legal entity transitively OWNED by them (via entity_ownerships, current-effective only, at any ownership_percentage > 0) — reusing SecurityGroupRepository.expandOwnedLegalEntities, the single source of truth for the look-through walk that per-legal-entity scope enforcement also uses. Does NOT apply the caller's own allow-list: this is a look-up helper for an admin configuring a security group’s scope, who needs to see the full ownership implication of the queried ids regardless of their own scope.

Required scope: legal-entities:read

Error codes: VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

ids?string

Comma-separated legal-entity ids to expand via ownership look-through.

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/legal-entities/owned-expansion'
{  "data": {    "implied": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      }    ],    "seeds": [      "string"    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/legal-entities/{id}

Required scope: legal-entities: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/legal-entities/string'
{  "data": {    "address_line1": "string",    "address_line2": "string",    "aliases": [],    "city": "string",    "code": "string",    "country": "string",    "created_at": "2019-08-24T14:15:22Z",    "default_currency": "string",    "dissolved_at": "2019-08-24",    "entity_type": "llc",    "federal_tax_class": "disregarded_entity",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "managing_legal_entity_id": "b522100b-0f0e-46bf-9e46-681f248a16fc",    "managing_legal_entity_name": "string",    "name": "string",    "operations_start_date": "2019-08-24",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "ownership_kind": "owned",    "postal_code": "string",    "received_distribution_treatment": "income",    "state": "string",    "status": "active",    "tax_id": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PUT
/v1/legal-entities/{id}

Required scope: legal-entities:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: NOT_FOUND, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE, LEGAL_ENTITY_CODE_TAKEN, LEGAL_ENTITY_CURRENCY_LOCKED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
address_line1?|
Lengthlength <= 500
address_line2?|
Lengthlength <= 500
aliases?array<string>
city?|
Lengthlength <= 200
code?|

An operator-assigned code for this entity, e.g. for a bulk CSV importer to resolve it by something shorter and more stable than its name. Unique per ORG, case-insensitively — a duplicate is 409 LEGAL_ENTITY_CODE_TAKEN. Send null to release the code so another entity may claim it.

Lengthlength <= 100
country?|
Lengthlength <= 10
default_currency?|

ISO 4217 code. Cannot change once the entity has journal entries (one currency per entity); re-sending the current code is accepted.

Match^[A-Z]{3}$
dissolved_at?|
Formatdate
entity_type?string
Value in"llc""corp""partnership""trust""other"
federal_tax_class?|
Value in"disregarded_entity""partnership""s_corp""c_corp""unknown"
name?string
Length1 <= length <= 500
postal_code?|
Lengthlength <= 50
received_distribution_treatment?string

How this entity books a distribution it receives from another entity of the group ('income' or 'return_of_investment'). Applies to receipts posted after the change.

Value in"income""return_of_investment"
state?|
Lengthlength <= 100
status?string
Value in"active""inactive""in_process""dissolved"
tax_id?|
Lengthlength <= 20

Response Body

application/json
  1. response
data*
meta*
curl -X PUT 'https://api.acreum.io/v1/legal-entities/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "address_line1": "string",    "address_line2": "string",    "aliases": [],    "city": "string",    "code": "string",    "country": "string",    "created_at": "2019-08-24T14:15:22Z",    "default_currency": "string",    "dissolved_at": "2019-08-24",    "entity_type": "llc",    "federal_tax_class": "disregarded_entity",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "managing_legal_entity_id": "b522100b-0f0e-46bf-9e46-681f248a16fc",    "managing_legal_entity_name": "string",    "name": "string",    "operations_start_date": "2019-08-24",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "ownership_kind": "owned",    "postal_code": "string",    "received_distribution_treatment": "income",    "state": "string",    "status": "active",    "tax_id": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/legal-entities/{parentId}/files

Required scope: legal-entities:read

Pagination: cursor

Error codes: ATTACHMENT_NOT_FOUND, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_CURSOR

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string

Query Parameters

cursor?string
limit?number

1..500, default 200

include?"hierarchy"

Pass "hierarchy" to roll up the legal entity's own files plus files of every property or space it owns (and their descendants) and its contracts.

Value in"hierarchy"

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/legal-entities/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"  }}
POST
/v1/legal-entities/{parentId}/files

Required scope: legal-entities:write

Error codes: ATTACHMENT_NOT_FOUND, ATTACHMENT_TYPE_UNSUPPORTED, ATTACHMENT_TOO_LARGE, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEGAL_ENTITY_NOT_IN_SCOPE

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/legal-entities/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/legal-entities/{parentId}/files/{fileId}

Required scope: legal-entities:write

Error codes: ATTACHMENT_NOT_FOUND, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, LEGAL_ENTITY_NOT_IN_SCOPE

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/legal-entities/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
/v1/legal-entities/{parentId}/files/{fileId}

Required scope: files:delete

Error codes: ATTACHMENT_NOT_FOUND, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, LEGAL_ENTITY_NOT_IN_SCOPE

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/legal-entities/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/legal-entities/{parentId}/files/{fileId}/download

Required scope: legal-entities:read

Error codes: ATTACHMENT_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE

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/legal-entities/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  }}