Friday API Overview

The Friday API is a REST API that lets you integrate with the Friday HR and payroll platform. You can read company data, manage employees, track time, process payroll, and stay in sync through real-time webhooks — all from your own application.

Base URL

All API endpoints are served under a single base path. During the onboarding and integration phase, use the sandbox environment:

https://node.friday-staging.com/partner/v1

Every endpoint referenced in this guide and the rest of the documentation is relative to this base URL. For example, GET /employees means:

GET https://node.friday-staging.com/partner/v1/employees

When you are ready to go live, use the production base URL:

https://api.fridayapp.com/partner/v1

API access is self-serve. Friday does not manually approve your integration before you can use the live endpoint.


Authentication

The API supports two ways to authenticate. Pick based on how many Friday companies you need to reach.

API keys are scoped to one company and are the fastest way to get going — best for integrating with your own company or a small set of customers you onboard by hand. Pass your key in the X-API-Key header on every request:

curl -X GET https://node.friday-staging.com/partner/v1/companies \
  -H "X-API-Key: fri_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2"

All data you read or write through a key is automatically scoped to its company — you never need to specify a company ID in the URL. API keys are created and managed in the Developer Portal; see the Getting API Access guide for the full walkthrough.

OAuth 2.0 is for apps that many Friday companies will connect to. You register the app once, and each customer authorizes it themselves from their own Friday dashboard, choosing which permissions to grant. You get an access token per company instead of a key per company, and there are no credentials to pass around out of band:

curl -X GET https://node.friday-staging.com/partner/v1/companies \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Unlike API keys, OAuth tokens only reach the permissions the customer granted. See Building an OAuth App to walk the flow end to end, and Authorizing with OAuth for the endpoint, scope, and error reference.


Plans and Access

The endpoints available to your API key depend on the company's plan. There are three plan tiers, each building on the one below it:

PlanWhat it unlocks
TimetrackingCompanies, Employees, Customers and projects, Time Records, Timetrack reports, PTO, Departments
PayrollEverything above + Payrolls, Payroll Reports, Pay Schedule Groups, Workplaces
PremiumEverything above + premium features

If you call an endpoint that requires a higher plan than the company has, the API returns 403:

{
  "error": "Your plan does not include access to this resource. Please upgrade to the payroll plan."
}

Available Resources

Here's a summary of every resource the API exposes, grouped by plan tier.

Timetracking plan

ResourceDescriptionKey endpoints
CompaniesThe company linked to your API key — name, address, plan, and settings.GET /companies
EmployeesEmployee records including contact info, department, pay type, and status. Filter by active status, department, or search by name.GET /employees, GET /employees/:id, PATCH /employees/:id, POST /employees/invite
Customers and projectsCustomers (jobs or job sites) and projects nested under them for granular time tracking. Use customer and project IDs on clock-in, filters, and reports.GET /customers, GET /customers/:id, PATCH /customers/:id, GET /projects, GET /projects/:id, PATCH /projects/:id
Time RecordsIndividual clock-in/clock-out entries. Create time entries programmatically or query historical records with filters for employee, date range, and type.GET /time-records, GET /time-records/:id, POST /time-records/clock-in, POST /time-records/clock-out
Timetrack ReportsAggregated time tracking reports at the company or employee level, with daily breakdowns and optional customer/project grouping. Downloadable as PDF or CSV.GET /timetrack/company, GET /timetrack/company/download, GET /timetrack/employee/:id
PTOPTO balances and time-off requests. View balances per employee, submit new requests, and approve or deny pending ones.GET /pto/balances, GET /pto/balances/:id, GET /pto/requests, POST /pto/requests, POST /pto/requests/:id/approve, POST /pto/requests/:id/deny
DepartmentsOrganizational groupings for employees. Create, update, and delete departments.GET /departments, GET /departments/:id, POST /departments, PATCH /departments/:id, DELETE /departments/:id

Payroll plan (adds)

ResourceDescriptionKey endpoints
PayrollsFull payroll lifecycle — discover available pay periods, initialize employee earnings, create a draft with cost preview, and approve for processing. Also retrieve past payrolls, download pay stubs, and access check data.GET /payrolls/period-options, POST /payrolls/initialize, POST /payrolls, GET /payrolls, GET /payrolls/:id, and more
Payroll ReportsSeven report types covering payroll summaries, cash requirements, tax liability, tax deposits, W-4 status, W-2 previews, and contractor payment summaries.GET /payroll-reports/company-payroll-summary, GET /payroll-reports/cash-requirement, and more
Pay Schedule GroupsThe company's pay schedules (weekly, biweekly, semimonthly, monthly) and which employees are assigned to each.GET /pay-schedule-groups, GET /pay-schedule-groups/:id
WorkplacesPhysical business locations used for payroll tax purposes.GET /workplaces, GET /workplaces/:id

Pagination

List endpoints return paginated results. Control pagination with two query parameters:

ParameterDefaultRangeDescription
page11+The page number to retrieve
per_page251–100Number of records per page

Every paginated response includes a pagination object:

{
  "data": [ ... ],
  "pagination": {
    "page": 1,
    "per_page": 25,
    "total_count": 142,
    "total_pages": 6
  }
}

Use total_pages to know when to stop paginating. If you request a page beyond the last page, the API returns an empty data array.


Error Handling

The API uses standard HTTP status codes and returns errors in a consistent format:

{
  "error": "A human-readable description of what went wrong"
}

Common status codes

CodeMeaning
200Success
201Created (returned by POST endpoints that create a resource)
400Bad request — invalid parameters or request body
401Unauthorized — missing or invalid API key
403Forbidden — the company's plan doesn't include this resource
404Not found — the requested resource doesn't exist
429Rate limit exceeded — back off and retry
500Server error — something went wrong on our end

Rate Limiting

The API enforces a rate limit of 100 requests per 60 seconds per API key, using a sliding window.

When you exceed the limit, the API returns 429 Too Many Requests. Wait for the window to reset before retrying. If you need to make many requests in a short time (e.g., syncing a large dataset), spread them out or paginate with larger per_page values.


Webhooks

Instead of polling for changes, you can register webhook endpoints to receive real-time push notifications when data changes in Friday. The API emits events across 10 resource types — employees, time records, PTO requests, payrolls, customers and projects (as separate event families), departments, pay schedule groups, workplaces, and the company itself.

Each webhook delivery includes an HMAC-SHA256 signature for verification, a unique event ID for deduplication, and the full resource object matching the corresponding API response shape.

See the Subscribing to Webhooks guide for setup instructions, payload format, signature verification, and the full event catalog.


Request Logs

The Developer Portal includes a built-in request log viewer. Every request is logged with the HTTP method, path, status code, and timestamp — useful for debugging integration issues without digging through your own logs.

For an API key, the log lives on the key's page and can be filtered by method, path, status code, and date range. For an OAuth app, it lives on the app's page and covers every company connected to the app, with a column showing which one each call was made against.


Quick Start

If you're new to the Friday API, here's the recommended path:

  1. Get access — Building for one company or a few? Follow the Getting API Access guide to enable API access, generate an API key, and make your first request. Building an app that many Friday companies will connect to? Follow Building an OAuth App instead.
  2. Test the integration — Follow the Testing the Integration guide to use the API Reference and Postman collection against sandbox.
  3. Track time — If your integration uses time tracking, read the Timetracking guide.
  4. Track job costs — If you need labor totals by customer or project, read the Job Costing guide.
  5. Set up webhooks — Stay in sync with real-time events by following the Subscribing to Webhooks guide.
  6. Process payroll — If the company is on a payroll plan, walk through the full payroll lifecycle in the Payroll Processing guide.
  7. Use the MCP server — If you use AI coding tools, connect them to Friday API context with the MCP Server guide.

Other Guides

GuideWhat it covers
Getting API AccessSelf-serve API access, Developer Portal login, environment selection, and API key generation
Building an OAuth AppRegistering an app, the authorization flow with PKCE, scopes, refresh token rotation, and going to production
Authorizing with OAuthReference for the /oauth endpoints, scope-to-endpoint mapping, token and connection lifecycle, and error handling
Testing the IntegrationAPI Reference, Postman collection, sandbox testing flow, and error cases
Customers and projectsHow customers and projects relate, listing and updates, and links to time tracking and webhooks
TimetrackingTime records, clock-in/out, breaks, switches, geofencing, and reports
Job CostingTrack labor time by customer/project and report totals by job
The Employee ObjectEmployee fields, employment types, timetrack-only, manager types, earnings, multiple records per person
Inviting an EmployeeThe invite endpoint: required fields per employment type and plan, wage branching, examples
The Payroll Life CyclePayroll statuses, state transitions, and how to track them via API and webhooks
Processing PayrollEnd-to-end payroll: period discovery, draft creation, cost preview, approval
Subscribing to WebhooksEndpoint registration, signature verification, event types, retries
MCP ServerConnect AI coding tools to Friday API documentation context

Did this page help you?