Acreum Docs
Platform

Work Center Admin

GET
/v1/work-items/policies

One entry per configurable module, whether or not it was ever configured; a module with no stored policy is on and not paused.

Required scope: attention:manage

Pagination: none

Authorization

access-token
headerAuthorizationBearer <token>

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/work-items/policies'
{  "data": [    {      "enabled": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "module": "banking",      "paused": true,      "paused_at": "2019-08-24T14:15:22Z",      "paused_by": "66728942-23f3-47fe-9333-fa39fb2a83ab",      "paused_reason": "string",      "routine_series": [        {          "anchor": "2019-08-24",          "cadence": "weekly",          "effective_from": "2019-08-24",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "item_types": [            "banking.unmatched_transaction"          ],          "module": "banking",          "name": "Monthly bank review",          "series_key": "monthly_bank_review"        }      ]    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PUT
/v1/work-items/policies/{module}

Off hides the module and stops its sweep without deleting anything. Paused stops only its provider sweep and needs a reason. Re-pausing a paused module to edit the reason keeps paused_at and paused_by. A write that brings a module back from off or paused to on and not paused also queues a re-run of today's sweep for the org (the same job POST /v1/work-items/replay queues, so repeated toggles share one), so its items are fresh at once rather than at the next scheduled run; a failure to queue it does not fail this request.

Required scope: attention:manage

Error codes: VALIDATION_FAILED, ATTENTION_MODULE_UNKNOWN

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

module*string

Request Body

application/json
  1. body
enabled*boolean
paused*boolean
paused_reason?string

Why the sweep is paused. Required when paused is true, and must contain a non-whitespace character; ignored otherwise.

Length1 <= length <= 500

Response Body

application/json
  1. response
data*
meta*
curl -X PUT 'https://api.acreum.io/v1/work-items/policies/string' \  -H 'Content-Type: application/json' \  -d '{  "enabled": true,  "paused": true}'
{  "data": {    "enabled": true,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "module": "banking",    "paused": true,    "paused_at": "2019-08-24T14:15:22Z",    "paused_by": "66728942-23f3-47fe-9333-fa39fb2a83ab",    "paused_reason": "string",    "routine_series": [      {        "anchor": "2019-08-24",        "cadence": "weekly",        "effective_from": "2019-08-24",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "item_types": [          "banking.unmatched_transaction"        ],        "module": "banking",        "name": "Monthly bank review",        "series_key": "monthly_bank_review"      }    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/work-items/policies/{module}/dry-run

Runs only this module's sweep for the org, as of today's UTC date, inside a transaction that always rolls back: nothing is written, no sweep run is recorded, no alert or notification is raised. It runs whether the module is on, off or paused. Returns the items the run would create (at most 500) and how many it would create, refresh in place and resolve. A provider error comes back in error, with what it produced before it; failed item writes come back as errored_count, and error then says the preview is incomplete.

Required scope: attention:manage

Error codes: ATTENTION_MODULE_UNKNOWN, ATTENTION_MODULE_NOT_SWEPT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

module*string

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/work-items/policies/string/dry-run'
{  "data": {    "as_of": "2019-08-24",    "error": "string",    "errored_count": 0,    "existing_count": 0,    "module": "banking",    "truncated": true,    "would_create": [      {        "aggregate": true,        "dedup_key": "string",        "entity_id": "string",        "entity_type": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "payload": {},        "severity": "info",        "type": "ar.unapplied_cash"      }    ],    "would_create_count": 0,    "would_resolve_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/work-items/replay

Queues a full sweep for the org as of the UTC date it runs on, run by the job queue rather than in the request. Modules that are off or paused are skipped, as in the scheduled run. While a re-run for the org is queued, another request joins it; while one is running, another request queues one more run after it. Either way it returns the job_id of that job with deduped true. The run is recorded with trigger replay.

Required scope: attention:manage

Authorization

access-token
headerAuthorizationBearer <token>

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/work-items/replay'
{  "data": {    "deduped": true,    "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/work-items/routine-series

A routine series is a module's recurring review cycle (weekly to quarterly): items of the listed types count toward its current occurrence. The series_key is derived from the name and never changes. It takes effect today (effective_from is the org's today) and its current occurrence exists as soon as this returns, except on a module that is switched off: there it is generated when the module is turned back on. An item type can belong to one series of the org at most.

Required scope: attention:manage

Error codes: VALIDATION_FAILED, ATTENTION_MODULE_UNKNOWN, ROUTINE_SERIES_ITEM_TYPE_INVALID, ROUTINE_SERIES_ITEM_TYPE_TAKEN, ROUTINE_SERIES_KEY_TAKEN

Authorization

access-token
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
anchor*string

Any start day of the cycle; every period starts a whole number of cadence steps from it (a monthly anchor of 2026-01-31 starts Feb 28, then Mar 31).

Formatdate
cadence*string
Value in"weekly""fortnightly""monthly""quarterly"
item_types*array<string>

Work-item types of the module this series homes: each item of one of these types counts toward the series' current occurrence. A type may belong to one series of the org at most. May be empty.

module*string

A configurable Work Center module — one GET /v1/work-items/policies lists.

name*string

Display name, 1–100 characters after trimming. On create the series_key is derived from it.

Length1 <= length <= 100

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/work-items/routine-series' \  -H 'Content-Type: application/json' \  -d '{  "anchor": "2019-08-24",  "cadence": "weekly",  "item_types": [    "string"  ],  "module": "banking",  "name": "string"}'
{  "data": {    "anchor": "2019-08-24",    "cadence": "weekly",    "effective_from": "2019-08-24",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "item_types": [      "banking.unmatched_transaction"    ],    "module": "banking",    "name": "Monthly bank review",    "series_key": "monthly_bank_review"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PATCH
/v1/work-items/routine-series/{id}

Send any of name, cadence, anchor, item_types. A rename keeps the series_key. A new item_types list replaces the old one; items already in an occurrence move to their type's new home when that occurrence closes. A cadence or anchor change takes effect today (effective_from becomes the org's today).

Required scope: attention:manage

Error codes: NOT_FOUND, VALIDATION_FAILED, ROUTINE_SERIES_ITEM_TYPE_INVALID, ROUTINE_SERIES_ITEM_TYPE_TAKEN

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
anchor?string

Any start day of the cycle; every period starts a whole number of cadence steps from it (a monthly anchor of 2026-01-31 starts Feb 28, then Mar 31).

Formatdate
cadence?string

A cadence or anchor change takes effect today: effective_from becomes the org's today.

Value in"weekly""fortnightly""monthly""quarterly"
item_types?array<string>

Work-item types of the module this series homes: each item of one of these types counts toward the series' current occurrence. A type may belong to one series of the org at most. May be empty. Replaces the whole list; an item already in an occurrence moves to its type's new home when that occurrence closes.

name?string

Renames the series; its series_key stays.

Length1 <= length <= 100

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/work-items/routine-series/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "anchor": "2019-08-24",    "cadence": "weekly",    "effective_from": "2019-08-24",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "item_types": [      "banking.unmatched_transaction"    ],    "module": "banking",    "name": "Monthly bank review",    "series_key": "monthly_bank_review"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Delete a routine series

DELETE
/v1/work-items/routine-series/{id}

The live items of its current occurrence move to the module's undated group, its occurrences that no item points at are deleted, and the series goes. Closed past occurrences that still hold items stay as history.

Required scope: attention:manage

Error codes: NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

The series is gone.

curl -X DELETE 'https://api.acreum.io/v1/work-items/routine-series/string'
Empty