API Documentation

Swift Payrolls API documentation

Swift Payrolls exposes a worker API for account access, subscription management, employee data, payslips, invoices, and reporting. This page provides the public discovery entry points for agents and developers.

Authentication model

The public worker API currently uses Swift Payrolls application authentication rather than OAuth 2.0 or OpenID Connect discovery metadata.

Protected endpoints expect an application bearer token after login. The health endpoint and password reset initiation endpoints remain public.

Public Discovery

EndpointPurpose
API catalogMachine-readable API discovery document.
OpenAPIOpenAPI 3.1 description for representative endpoints.
GET /healthWorker health and availability check.

Authentication

EndpointPurpose
POST /auth/signupCreate an employer account.
POST /auth/loginAuthenticate with email and password.
POST /auth/google-loginAuthenticate with Google credentials.
POST /auth/forgot-passwordStart password reset flow.
POST /auth/reset-passwordComplete password reset flow.

Protected Employer API

EndpointPurpose
GET /users/meRead the authenticated employer profile.
GET /employeesList employees in the employer workspace.
POST /employeesCreate an employee record.
GET /payslipsList generated payslips.
POST /payslipsCreate a payslip record.
GET /invoicesList invoice records.
POST /invoicesCreate an invoice record.