REST API overview

REST API overview

What the plnnrly REST API is, where it lives, how you authenticate and how you get a token.

View as Markdown

The REST API lets your own code read and change your plnnrly data: projects, work items, hours, Drive documents, customers, invoices, leave, planning and more. It speaks JSON over HTTPS, on your organisation's own plnnrly address.

Connection details

SettingValue
Base URLhttps://<your-url>/api/v2
AuthenticationAuthorization: Bearer <token>
FormatJSON. Send Content-Type: application/json with every request body.
ContractOpenAPI 3.1 document

Replace <your-url> with the address you sign in to plnnrly on, such as acme.plnnrly.com. If your organisation uses its own domain, use that domain: the API answers only on that exact address and never redirects. There is no shared api.plnnrly.com.

In plnnrly, API access in the user menu opens the API tokens page, which shows your base URL, ready to copy.

Two ways to authenticate

You are buildingUse
Scripts and integrations for yourself or your organisationA personal access token that you create in plnnrly. See API tokens.
An app that other people install and sign in toOAuth sign-in: authorization code with PKCE, and the app registers itself. For desktop and command-line apps; the person signing in needs Manage API tokens. See Sign in with OAuth.

Either way, every request acts as one person, with their permissions and nothing more. Apps that use OAuth sign-in cannot delete through the REST API.

Get a token

  1. In plnnrly, open API access in the user menu (top right, under your name) and choose Create token.
  2. Give the token a Name.
  3. Under Scopes, choose Read, Write or Delete; the list only offers what your permissions allow. Write includes read, and Delete includes write and read. The token stores them as api:read, api:write and api:destroy, or per resource, such as api:read:projects, when you fill in Resources.
  4. Leave Resources empty to grant the scopes on every resource, or pick the parts of plnnrly the token is limited to. The list only offers parts you have permissions for.
  5. Set Expires. It is required, starts at 90 days from today and can be at most 12 months away.
  6. Copy the token. It is shown once.

API access only appears in the user menu while the REST API is on and you hold the Manage API tokens permission. See who may create tokens. You can have ten active tokens at a time.

Scopes is the token's scope: what the token may do. It is not the same as the permissions your role gives you. Both apply, so a token never does more than you can do in plnnrly. API tokens covers rolling, revoking and the full form.

Every operation states what it needs

Each operation page in the reference names the token scope and the plnnrly permission it needs, and its rate cost. The scope and the permission are checked on every request, and the type of a 403 tells you what refused it:

See what your organisation exposes

The discovery request lists what your organisation exposes: every resource with its URLs and operations. Any personal API token can call it; it needs no permission.

Terminal
curl https://<your-url>/api/v2/ \
  -H "Authorization: Bearer <token>" \
  -H "Accept: application/json"

The Accept header is optional: leave it out, or send application/json.

Discovery leaves out areas your organisation does not use, such as billing. It does not check which resources your token's scope or your role covers, so a resource it lists can still answer 403.

When the API is switched off

An administrator can switch the REST API off under Settings › Administration › MCP & API. While it is off, every request answers 404 endpoint-not-found, including requests with a token that worked before. See what happens when a switch is off.

Where to go next

For AI assistants

If you want an AI assistant to work with your plnnrly data, use the MCP server. It reaches the same operations you can, except file uploads, with no client to write.