Black Week: 40% off your first year of ProUntil November 30 See pricing
PricingAffiliates
Topics

Use PV0T's REST API (n8n, Make, scripts)

Connect PV0T to n8n, Make, your own scripts or anything else that sends HTTP requests.

Get set up

  1. Open Settings → Connected Accounts and click Generate new token.
  2. Give it a Name, such as "n8n automations". PV0T shows this name when the token changes something.
  3. Choose its Access and Workspace, then generate it. If PV0T asks you to sign in again first, click Sign in again: creating a token needs a sign-in from the last 30 minutes.
  4. Copy the token right away. It won't be shown again.
  5. Turn on MCP and Zapier in Workspace settings → Integrations for each workspace the token should reach. This one switch covers the API too.

Send a request

The base address is https://pv0t.com/api/v1. Send your token in this header on every request:

Authorization: Bearer <your token>

Test it with:

curl https://pv0t.com/api/v1/me --header "Authorization: Bearer <your token>"

In n8n, use the HTTP Request node with the same address and header.

Read data

  • GET /me: who the token belongs to, and its access.
  • GET /workspaces: the workspaces this token can reach.
  • GET /categories?workspace_id=…: a workspace's categories.
  • GET /items?workspace_id=…: a workspace's items, up to 500.
  • GET /tasks: the newest tasks first.
  • GET /tasks/completed: the most recently completed tasks first.
  • GET /sessions: finished focus sessions, newest first.
  • GET /schedule: what's on the Planner, with repeating plans expanded.

/tasks, /tasks/completed and /sessions take optional workspace_id and limit (up to 100, 50 by default). /schedule also takes from and to as YYYY-MM-DD (up to 92 days, starting today and covering 7 days by default), timezone (such as Europe/Berlin, UTC by default) and a limit of up to 500.

Add a task

POST /tasks with a JSON body. These fields need a Read & write token:

  • workspace_id (required unless the token is limited to one workspace)
  • name (required)
  • when: a day as YYYY-MM-DD, or a date and time with its offset
  • duration_minutes: from 1 to 1440
  • priority: high, medium or low
  • category_id

Log time

POST /sessions with a JSON body, also with a Read & write token:

  • item_id, start and end (all required). Use dates and times with an offset. The time must be in the past, within the last 30 days, and no longer than 16 hours.
  • outcome: complete, early or cancelled

If a request fails

Errors come back as JSON with an error message.

  • 400: a field is missing or invalid.
  • 401: the token is missing, wrong or revoked.
  • 403: the token is read-only, is limited to another workspace, or the workspace hasn't turned on MCP and Zapier.
  • 404: the workspace or item wasn't found.
  • 429: too many requests. The limit is 60 a minute, shared with MCP.

Good to know

  • The API is included in every plan, Free too.
  • Anyone with a token acts as you within its limits, so treat it like a password. Revoke any token you no longer use.

Related

Did this answer your question?