One response shape an agent can learn once
Available now. Every endpoint in every service wraps its answer in the same envelope:content.data holds the result, content.metadata holds context about it, and message.token names the outcome in a form that never changes. An agent learns that shape once and can read any endpoint, and it can branch on message.token instead of reading error prose.
On the roadmap: an explanation alongside the data. The envelope gains a third item next to data and metadata, holding how Flow Payroll reached the figures it returned. On a payslip, that is the path from gross pay to net pay: which rules applied, with which thresholds, and why.
Illustrative — the shape isn't final
basis: Pensionable or QualifyingEarnings) in its line metadata.
Previews for deterministic answers
An agent should never work out tax, NI, statutory pay or pension contributions itself. Every calculation in Flow Payroll can be previewed, so the agent asks Flow Payroll for the exact figure and shows it to a person before anything is final. Available now. Paths are relative to each service’s base path.
Nothing in a pay run is final until it locks. Until then, the payslip preview reflects every court order, holiday, recurring item and pay line sent, and you can replace or remove anything that isn’t right. An agent can show a person exactly what pay day will look like and act only once they confirm. When explanations arrive on responses, previews carry them too.
A reporting API an agent can query
Available now. The Reports API answers questions that no fixed report covers. An agent:- Lists the datasets with
GET /datasets: payslips, payslip lines, pay runs, statutory pay, court orders, holiday, pensions, journals, invoices and more. - Reads a dataset’s field catalog with
GET /datasets/{name}. The catalog says which fields can be filtered, grouped and aggregated, so the agent writes a valid query on the first try. - Writes a report definition (a JSON document with columns, filters, grouping and sorting) and runs it. A run returns up to 10,000 rows straight away, or an export of up to 5,000,000 rows.
MCP for agentic workflows
Available now. Flow Payroll publishes two MCP servers:- Docs searches and reads every page of this site, so an assistant answers from the current docs. It needs no credentials and changes nothing.
- Sandbox API finds, explains and calls every endpoint with your sandbox credentials, including the ones that change data. It can only reach the sandbox, so it never touches live data.
- An assistant that answers employee pay questions holds Viewer, and reads payslips with their explanations but changes nothing.
- An agent that prepares the pay run holds Payroll processor. It posts lines and previews payslips but can’t lock the run or submit to HMRC, so a person still approves.
- Webhooks start the agent when something happens, such as
payslip.finalisedorrti.fps_rejected, instead of having it poll.
Modules partners can extend
Flow Payroll is modular. Pay, salary, statutory pay, pensions, court orders, holiday, payments, journals, reports and webhooks each have their own API, so an agent gets a small, focused set of tools for the job in hand instead of one large surface. Each module also takes your own data: pay elements you define, pay lines from your system, tags, roles and report definitions. New capabilities arrive as new modules or new fields alongside existing ones, and nothing you already call changes underneath you. Every deprecation gives at least 90 days’ notice (see Deprecations). Available now: pay lines only their creator can change. Send a pay line withcanEdit: false and only your integration can change it. Nobody else can, in the app or through the API. Your integration owns its data inside Flow Payroll, such as shifts, commissions or benefits, and can rely on it staying as it was sent. An agent working for someone else can read those lines but not change them.