Skip to main content
AI agents are good at understanding a request and bad at doing payroll maths. Flow Payroll is built to split that work cleanly. Your agent decides what to do, Flow Payroll does every calculation, and the API returns the result with enough context for the agent to explain it to a person. This page describes that direction. Each section says what is available now and what is on the roadmap.
Roadmap items describe where the API is heading, not a commitment to a date or a final shape. Field names in roadmap examples are illustrative. Anything that ships is announced in What’s new and documented in the reference first.

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
Your system keeps the explanation with the payslip. When an employee asks your assistant “why is my pay lower this month?”, the agent answers from the explanation for that payslip. It doesn’t recalculate anything or guess at tax rules, so its answer matches the payslip. Pension contribution lines already work this way. Each one carries the basis it was calculated on (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:
  1. Lists the datasets with GET /datasets: payslips, payslip lines, pay runs, statutory pay, court orders, holiday, pensions, journals, invoices and more.
  2. 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.
  3. 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.
“Overtime by department for the last three months, compared with the same months last year” becomes one report definition, not a new endpoint. Every run is kept in the run history, and access to sensitive fields is recorded.

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.
Together they let you build and test an integration in plain English. Ask an assistant to set up a scenario, such as five employees with a student loan, a leaver and a maternity leave starting this month, then check your integration handles it. Build and test your integration shows how. On the roadmap: MCP for live organisations. The same tools against live data, acting under an API token whose role limits what the agent can do. For example:
  • 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.finalised or rti.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 with canEdit: 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.

Partners bring the context to their own agents

Everything above reaches your systems, not just ours. A partner that keeps the explanation with each payslip, calls previews before acting and queries the Reports API can give its own agents accurate payroll answers, inside its own product and under its own brand. See Integration patterns for how partners connect today.

More to come

This is the start. More of the API will be shaped around agents as partners build with it, and each step is announced in What’s new. Building something like this? Email hello@flowpayroll.ai to tell us what your agents need from the API.