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.
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
403with "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:
| Area | In the key dialog | Scope |
|---|---|---|
| Jobs | View jobs and requests | service_records:read |
| Create, edit and move jobs | service_records:write | |
| Delete jobs | service_records:delete | |
| Read job notes | notes:read | |
| Add job notes | notes:write | |
| Upload photos and files to jobs | attachments:write | |
| View the items and solutions on jobs | record_items:read | |
| Change the items, solutions and parts on jobs | record_items:write | |
| View job tasks | tasks:read | |
| Complete job tasks | tasks:write | |
| Accept or decline requests | requests:triage | |
| Customers | View customers | customers:read |
| Create and edit customers | customers:write | |
| Delete customers | customers:delete | |
| View retailers | retailers:read | |
| Create and edit retailers | retailers:write | |
| Services | View services, catalogue and request forms | services:read |
| Shipping | View shipments | shipments:read |
| Create and edit shipments | shipments:write | |
| Approve shipments | shipments:approve | |
| Billing | View estimates | estimates:read |
| Create and edit estimates | estimates:write | |
| View invoices | invoices:read | |
| Create and edit invoices | invoices:write | |
| Send invoices and payment links | invoices:send | |
| Create payment links without emailing them | payment_links:create | |
| View payments | payments:read | |
| Inventory | View products and stock | inventory:read |
| Create and edit products | products:write | |
| Adjust and move stock | inventory:write | |
| View purchase orders | purchase_orders:read | |
| Create and receive purchase orders | purchase_orders:write | |
| View suppliers | suppliers:read | |
| Create and edit suppliers | suppliers:write | |
| View locations | locations:read | |
| Create and edit locations | locations:write | |
| Team | View team members | team:read |
| Insights | Insights 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.
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.
