The Priority Matrix REST API lets your own scripts and tools read and change projects, tasks (items), comments and more. To use it, you need an
API token from a Priority Matrix user on a paid Business-level plan, and the developer documentation at
sync.appfluence.com/developer/api. This article covers the basics that trip up most integrators. The developer docs have the full reference.
Not a developer? Many integrations need no code. See
Integrations and Connectors for Power Automate, task connectors and more. To let an AI assistant such as Claude or ChatGPT use your data, see
How Do I Connect ChatGPT, Claude or Another AI App to Priority Matrix?
Who can use the API?
API credentials need a paid Business-level plan. The user whose token you use must be a member of a Priority Matrix account with an active subscription to
a plan that includes API developer access.
- A free trial doesn't count. Neither do Free, Pro or Essential plans, or guest users.
- This applies to personal API tokens and to apps you register yourself. Our own apps and integrations, such as the Outlook add-in, the Gmail add-on, the desktop apps, Microsoft Teams and the Power Automate connector, work on any plan.
- If the plan doesn't qualify, API calls fail with HTTP 403 and the message "API credentials require a business account." That includes tokens that worked before, for example after the subscription ends or after the user leaves the account.
For plans and prices, see the
Plans and Pricing FAQ.
How to get an API token (API key)
Priority Matrix doesn't use separate API keys. Your API token (an OAuth token) is what other tools may call an API key.
- Sign in to Priority Matrix and open the Oauth Token page.
- Click Get New Token for a token that expires in one year. Or click Get Non-Expiring Token for a long-running integration. A token that never expires is riskier if it leaks.
- Copy the token and save it somewhere safe, such as your password manager or your integration's secret store.
Send the token in the
Authorization header of every request:
Authorization: Bearer <your token>. To check that it works, call
GET https://sync.appfluence.com/api/v1/me/. You should get
200 OK and your user details.
A token acts as you. It can see and change only what your user can, in the projects you belong to. For a team integration, consider a dedicated Priority Matrix user that's a member of only the projects the integration needs.
The same page lists your tokens under
Current tokens for your username (usually your email address), with their expiration dates. To stop using a token, click
Revoke next to it, then
Delete. Never put a token in a URL, in source control or in a support request.
Building an app for other people: OAuth
If your app will connect to other people's Priority Matrix accounts, don't ask them for tokens or passwords. Register an OAuth application and use the authorization code flow, so each person signs in to Priority Matrix and clicks
Authorize on our consent screen.
- Register your app at sync.appfluence.com/o/applications/register/. You can register an app during a free trial.
- The authorization endpoint is
https://sync.appfluence.com/o/authorize/, and the token endpoint is https://sync.appfluence.com/o/token/.
- Server-side apps use a confidential client with a client secret. Browser, desktop and mobile apps use a public client with PKCE, with no secret in the app.
- Scopes are
read ("Read projects and items from your account"), write ("Create and update items and comments in your account") and collaborators ("See the list of collaborators in your account"). Most integrations request read write.
- Each person authorizing the app needs API access through their own account. The plan of the person who registered the app does not determine whether someone else can authorize it.
The
Developer Guide walks through the flow with example requests. Users can revoke your app at any time from the
Oauth Token page (they click
Revoke next to its token).
How long do tokens last?
- Get New Token: one year. The token page shows the exact date.
- Get Non-Expiring Token: it doesn't expire. It works until you revoke it, or until the plan no longer qualifies.
- Tokens from your OAuth app: read
expires_in in the token response, and use the refresh token to get a new access token before it expires. If refreshing fails, ask the user to authorize again.
Expired tokens stay in the list on the token page, marked
expired. Create a new one if you still need the connection.
Where are the developer docs?
- API reference: every documented operation, its parameters and fields, plus a Download OpenAPI 3.1 link. Paste a token into Authorize to try GET requests against your own data. The token isn't saved. (The old address,
/api/v1/docs/, redirects here.)
- Developer Guide: a quickstart with
curl examples, the data model (users, accounts, projects, items), common calls, date filters, pagination, troubleshooting and webhooks. When you're signed in, the examples use your own project and item IDs.
A few things to know before you start:
- Projects are identified by
idd, and items by id.
- Quadrants are numbered 0 to 3 in the API. Quadrant 0 is the top-left quadrant, which the app calls Q1.
- Dates are in seconds since 1970 (Unix time), not milliseconds.
- Lists come in pages. Follow
meta.next until it's null.
- If you get
429 Too Many Requests, slow down. If there's a Retry-After header, wait at least that long before you retry.
- v1 has the broadest set of resources. v2 covers selected resources, such as items, projects, users and comments, and adds PATCH for items and projects. Use the version each operation shows in the docs.
PUT or PATCH: how to update an item
- PATCH (
/api/v2/item/<id>/ and /api/v2/project/<idd>/) is for partial updates. Send only the fields you want to change, plus the version_id from your latest GET. Fields you leave out stay as they are. If someone changed the item since your GET, you get 409 Conflict with the current version_id: fetch it again, reconcile your change and retry. Don't blindly overwrite someone else's edit.
- PUT (v1 or v2) replaces the whole object. Send the full item from your last GET, with your changes applied. Fields you leave out may be cleared, especially dates. A few fields, such as
owner_username, owner_emails, index and pinned, can only be changed with a full PUT.
For most integrations, PATCH is the safer choice. To move an item to another project, PATCH its
projects; send
[] to move it to the Inbox. A move between projects can return a new item
id, so use the one in the response.
Webhooks, including comment.created
Webhooks tell your app when something changes, so you don't have to keep polling. Create one with
POST /api/v1/hook/, with a body like
{"event": "item.created", "target": "https://your-app.example/hook/"}. If you create this hook as the account administrator, it defaults to account scope. Other users create a personal hook. Add
"project": "/api/v1/project/<idd>/" to limit it to one project. List your hooks with
GET /api/v1/hook/. To pause a hook, PUT
{"enabled": false}, or DELETE it.
Events you can subscribe to:
item.created, item.completed, item.deleted and item.delegated
item.start and item.due, when an item's start date or due date is reached (items in archived projects don't trigger them)
project.created
comment.created, when a person writes a new comment
Each call sends a JSON body with
hook (which hook fired, and for which user) and
data (the object). Your endpoint has 3 seconds to respond. If it times out or returns an error, we try again up to 4 times, a minute apart. A
404 or
401 response isn't retried.
About comment.created:
- It fires once for each new comment written by a person. Automatic comments, commands and edits to existing comments don't trigger it.
- A personal hook covers items the hook's user created, owns, follows or last edited, plus their own comments, as long as they can still see the item. An account hook can also match account activity, but it delivers a comment only when the hook user can see the item.
- It usually arrives within two or three minutes.
- Its
data is the comment (id, text, timestamp, author, item…) plus item_id and project_id. The call also has a top-level event_id, such as comment.created:12345. If two users' hooks match the same comment, each gets its own call with the same event_id, so remove duplicates using event_id together with hook.id.
- Delivery is best effort. A call can arrive twice, and in rare cases it can be lost, so if your integration can't miss a comment, also sync from the API now and then.
Related questions
Need help?
If a request fails and the docs don't explain why,
contact us with the method, the path, the HTTP status and the response, with any token removed. Never send us your token or client secret.