Skip to content

Developers

Connect your systems to Workfloor.

A REST API, signed webhooks and an MCP server for AI tools. Every key sees one workspace and only what its owner ticks; changes wait for a person to approve them.

Sign every request with a key

Workspace owners and admins on the Enterprise plan create keys under Settings → Developers. Send it as a Bearer token. Each key sees only this workspace and only what its scopes allow. Dates of birth, personal contact details, health, tax file, bank and super details never come back, whatever the scopes.

curl https://workfloor.com.au/api/v1/people?limit=20 \
  -H "Authorization: Bearer wfk_..."

Scopes

  • people:read · Read people

    Names, work emails, job records, teams, sites and managers. Never dates of birth, contacts or bank details.

  • employment:read · Read employment details

    Full-time, part-time or casual, contract term, hours a week and FTE. Off unless you tick it.

  • pay:read · Read pay

    Pay rates, awards and classifications. Only switch this on for a payroll or costing tool.

  • leave:read · Read leave

    Leave balances and requests (never family and domestic violence leave).

  • reports:read · Run reports

    The report library (casual conversion, probation dates, headcount and more).

  • people:write-proposals · Suggest people changes

    New starters, name and job changes. Each waits for your approval.

  • leave:write-proposals · Suggest leave

    Leave to record. Each waits for your approval.

  • webhooks:manage · Manage webhooks

    Add and remove webhook endpoints.

Endpoints

Base address https://workfloor.com.au/api/v1. Lists use limit (up to 100) and cursor (the next_cursor of the last page). Job records and pay accept as_of=YYYY-MM-DD. Full schemas: openapi.json.

  • GET

    /people

    List people · people:read

  • GET

    /people/{id}

    Get one person · people:read

  • GET

    /employments

    List employments with their current job record · people:read

  • GET

    /employments/{id}

    Get one employment with its job-record history (and pay history with pay:read) · people:read

  • GET

    /leave/types

    Leave types · leave:read

  • GET

    /leave/balances

    Latest leave balances (payroll's figures, as at their date) · leave:read

  • GET

    /leave/requests

    Leave requests · leave:read

  • GET

    /reports

    The report library · reports:read

  • GET

    /reports/{id}

    Run a report · reports:read

  • POST

    /change-sets

    Propose a change (it waits for approval) · people:write-proposals or leave:write-proposals

  • GET

    /change-sets/{id}

    Status of a proposal this key made · people:write-proposals or leave:write-proposals

  • GET

    /webhooks

    Webhook endpoints · webhooks:manage

  • POST

    /webhooks

    Add a webhook endpoint (the signing secret is returned once) · webhooks:manage

  • DELETE

    /webhooks/{id}

    Remove a webhook endpoint · webhooks:manage

Changes are proposals

A key never changes a record. POST /change-sets puts a proposal on Approvals, where an owner, admin or HR person approves or rejects it. Send an Idempotency-Key header so a retry never makes a second proposal; the first answer is replayed for 24 hours.

curl -X POST https://workfloor.com.au/api/v1/change-sets \
  -H "Authorization: Bearer wfk_..." \
  -H "Idempotency-Key: job-change-4821" \
  -H "Content-Type: application/json" \
  -d '{"action":"change_job","employment_id":"<id>","changes":{"job_title":"Head chef"}}'

Errors and limits

Errors are problem details (application/problem+json) with a stable code: unauthorized (401), plan_required and forbidden_scope (403), not_found (404), validation_failed (422), idempotency_conflict (422), rate_limited (429, with Retry-After). Every answer carries X-RateLimit-Limit, X-RateLimit-Remaining and Wcdm-Version.

Webhooks

Events: person.created (a person is added), person.updated (a person's details change), change_set.approved (a change is approved), change_set.rejected (a change is rejected), leave.requested (leave is requested), leave.decided (leave is approved or declined), case.deadline_due (a case deadline is due). Each is a CloudEvents 1.0 JSON body with ids and a status only. Check the signature over the raw body before you trust it, and ignore an event id you have already seen. A delivery that doesn’t get a 2xx answer within 10 seconds is retried after 1 minute, 5 minutes, 15 minutes, 1, 3, 6 and 12 hours, then listed as failed.

// Node.js: Workfloor-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256>
const { createHmac, timingSafeEqual } = require("node:crypto");
function verify(secret, rawBody, header) {
  const p = Object.fromEntries(header.split(",").map((x) => x.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(p.t)) > 300) return false;
  const mac = createHmac("sha256", secret).update(p.t + "." + rawBody).digest("hex");
  return mac.length === p.v1.length && timingSafeEqual(Buffer.from(mac), Buffer.from(p.v1));
}

MCP server for AI tools

AI assistants and agents that support the Model Context Protocol can use this workspace through https://workfloor.com.au/api/mcp (streamable HTTP) with the same keys. Tools: search_people, get_person, leave_balances, list_reports, run_report, and propose_change (only for a key with a “Suggest” scope; it makes a proposal, never a change). With a read-only key the server is read-only.

{
  "mcpServers": {
    "workfloor": {
      "type": "http",
      "url": "https://workfloor.com.au/api/mcp",
      "headers": { "Authorization": "Bearer wfk_..." }
    }
  }
}