# Utility

> Everyday helpers: search the knowledge base, list clients and meetings, work out period dates, tidy and check trial balances and approve or reject a…

Everyday helpers: search the knowledge base, list clients and meetings, work out period dates, tidy and check trial balances and approve or reject a pending action.

## Operations

POST [List Accessible Clients](https://heyarchie.com/en-gb/developers/api-reference/utility/list-accessible-clients/)

Lists the clients you can access, ordered by name. Nothing is required: use `search`, `status`, `limit` and `offset` to narrow and page the list. The reply holds `clients`, `total_count` and `has_more`.

POST [Derive Canonical Period Bounds + Matching Prior-Period Bounds](https://heyarchie.com/en-gb/developers/api-reference/utility/derive-canonical-period-bounds-matching-prior-period-bounds/)

Works out the start, end and label of an accounting period, and of the period before it, from a `kind` and an `anchor_date`. The kinds cover Australian BAS months, quarters and years, with the financial year running July to June. It is a pure calculation that reads no client data, so the same input always gives the same answer.

POST [Surface Trial-Balance Rows That Share an ``account_number``](https://heyarchie.com/en-gb/developers/api-reference/utility/surface-trial-balance-rows-that-share-an-account-number/)

Scans the trial balance `rows` you supply and returns those that share an account code with another row that has a balance. Each returned row carries `conflict_codes` and `conflict_count`. Zero-balance rows are ignored, so a dormant account never flags a live one.

POST [Enrich a Trial Balance With Auto-Renumber + Classification](https://heyarchie.com/en-gb/developers/api-reference/utility/enrich-a-trial-balance-with-auto-renumber-classification/)

Prepares trial balance rows for use. Pass the `tb_rows`, and the `coa_rows` if you have them so each account's type can be looked up. Each row comes back with a `classification`, its `original_code`, any `auto_assigned_code` and a `drop_reason`; accounts without a code are numbered by account type and zero-balance rows are dropped.

POST [Fetch Meeting Record](https://heyarchie.com/en-gb/developers/api-reference/utility/fetch-meeting-record/)

Fetches the record of one meeting, named by the `session_id` input, which you take from the id that list.meetings returns. The reply gives the title, start and end times, status, participant count, a link to the recording and the transcript segments. The recording link is short-lived, so fetch it again rather than storing it.

POST [List Accessible Meetings in the Workspace](https://heyarchie.com/en-gb/developers/api-reference/utility/list-accessible-meetings-in-the-workspace/)

Lists the meetings you can access in the workspace, newest first. Nothing is required: use `limit` and `offset` to page through them. Each meeting shows its title, times, participant count and whether a recording and a transcript exist.

POST [Search the Knowledge Base Directly](https://heyarchie.com/en-gb/developers/api-reference/utility/search-the-knowledge-base-directly/)

Searches the firm's knowledge base and regulatory material for the `query` you supply. It returns ranked passages, each with its source, section, content and confidence, plus counts by jurisdiction. Set `jurisdiction` to rank one region's material first; other regions are not excluded.

POST [Approve or Reject a Workflow Item](https://heyarchie.com/en-gb/developers/api-reference/utility/approve-or-reject-a-workflow-item/)

Records a decision on a queued item, such as a proposed outbound accounting write waiting for approval. Supply the `item_id` and the `decision` (approve, reject or request_changes), with an optional `reason`. The reply gives the `approval_id`, the `status` and the `next_step`. A workstream task is refused here and is decided through the task decision route.

Endpoints

[POST /api/v1/skills/clients.list/invoke](https://heyarchie.com/en-gb/developers/api-reference/utility/list-accessible-clients/)[POST /api/v1/skills/derive.period/invoke](https://heyarchie.com/en-gb/developers/api-reference/utility/derive-canonical-period-bounds-matching-prior-period-bounds/)[POST /api/v1/skills/detect.tb.duplicates/invoke](https://heyarchie.com/en-gb/developers/api-reference/utility/surface-trial-balance-rows-that-share-an-account-number/)[POST /api/v1/skills/enrich.tb.rows/invoke](https://heyarchie.com/en-gb/developers/api-reference/utility/enrich-a-trial-balance-with-auto-renumber-classification/)[POST /api/v1/skills/get.meeting.record/invoke](https://heyarchie.com/en-gb/developers/api-reference/utility/fetch-meeting-record/)[POST /api/v1/skills/list.meetings/invoke](https://heyarchie.com/en-gb/developers/api-reference/utility/list-accessible-meetings-in-the-workspace/)[POST /api/v1/skills/search.query/invoke](https://heyarchie.com/en-gb/developers/api-reference/utility/search-the-knowledge-base-directly/)[POST /api/v1/skills/workflows.decide/invoke](https://heyarchie.com/en-gb/developers/api-reference/utility/approve-or-reject-a-workflow-item/)
