Skip to main content

Authentication

Every API request carries an API key. This page explains how to get one, how to send it and what it lets you do. A key works on behalf of the person who created it, so it can never do more than they can.

Get a key​

An admin creates keys in Settings › Connections (Settings is at the bottom of the side menu in Manage) with Create API key, giving the key a Name and ticking the permissions it needs. In the API these permissions are called scopes; the table below shows which you need. Every key expires: leave Expires (optional) empty and it expires after 90 days; a date you choose can be at most 365 days away. The full steps are in Create an API key.

A key for your own website or app can also be created from the service: in Manage, open the service's Who does the work, select Your own site (API), then Create API key. It's the same kind of key, listed in Settings › Connections.

PartnerFlow shows the full key only once, so copy it straight away. Keys start with wf_. Treat them like passwords: keep them on your server, never in a browser, an app or a public repository.

The permissions you tick here are the key's scopes. Tick only what your integration needs.
The permissions you tick here are the key's scopes. Tick only what your integration needs.

Send the key​

Put the key in the Authorization header of every request:

GET /api/v3/customers HTTP/1.1
Host: api.partner-flow.com
Authorization: Bearer wf_6f1c…

A missing, expired or switched-off key gets 401 Unauthorized.

What a key can do​

A key's access is the overlap of two things:

  • The creator's role. If their role changes, the key changes with it. If their account is switched off, the key stops working.
  • The key's scopes. A key with only read scopes can only read: any other request gets 403 with "This API key is read-only".

Whatever its scopes, a key can never manage API keys, users, roles or sign-in.

The key dialog lists permissions by area, and only shows the ones your own role has. Each one is a scope in the API:

AreaIn the key dialogScope
JobsView jobs and requestsservice_records:read
Create, edit and move jobsservice_records:write
Delete jobsservice_records:delete
Read job notesnotes:read
Add job notesnotes:write
Upload photos and files to jobsattachments:write
View the items and solutions on jobsrecord_items:read
Change the items, solutions and parts on jobsrecord_items:write
View job taskstasks:read
Complete job taskstasks:write
Accept or decline requestsrequests:triage
CustomersView customerscustomers:read
Create and edit customerscustomers:write
Delete customerscustomers:delete
View retailersretailers:read
Create and edit retailersretailers:write
ServicesView services, catalogue and request formsservices:read
ShippingView shipmentsshipments:read
Create and edit shipmentsshipments:write
Approve shipmentsshipments:approve
BillingView estimatesestimates:read
Create and edit estimatesestimates:write
View invoicesinvoices:read
Create and edit invoicesinvoices:write
Send invoices and payment linksinvoices:send
Create payment links without emailing thempayment_links:create
View paymentspayments:read
InventoryView products and stockinventory:read
Create and edit productsproducts:write
Adjust and move stockinventory:write
View purchase orderspurchase_orders:read
Create and receive purchase orderspurchase_orders:write
View supplierssuppliers:read
Create and edit supplierssuppliers:write
View locationslocations:read
Create and edit locationslocations:write
TeamView team membersteam:read
InsightsInsights for Claude (read-only; only works with the Insights MCP)insights:read

View team members returns each person's name, email, job title, picture and status, so you can match who a job is assigned to. It doesn't return phone numbers, roles or account details.

Each endpoint in the reference says which scope it needs. A key with no permissions ticked can't call anything. Insights for Claude must be a key's only permission: such a key works only for the Insights connection to Claude and can't call any other endpoint.

Some things are deliberately left to people in the app, whatever a key's scopes: recording or refunding payments, voiding invoices, managing keys, users and roles, building services, working with partners, and sending email.

tip

Call GET /me/access with a new key to see exactly which permissions it ended up with.

Manage keys​

In Settings › Connections, each key shows whether it's Active, Inactive or Expired. From a key's ⋯ menu:

  • View details shows the key's scopes. Rotate key there replaces it with a new one: the old key stops working at once, so update your integration.
  • Deactivate stops the key straight away but keeps it in the list. Reactivate brings it back.
  • Delete removes the key for good.

See Manage a key.