toggl-focus

Toggl Focus actions and time entry polling for n8n

Package Information

Released: this month
Downloads: 0 weekly / 0 monthly
Latest Version: 0.1.3
Author: Bernardo Donadio

Documentation

@donadiosolutions/n8n-nodes-toggl-focus

This community node package connects self-hosted n8n workflows to the
Toggl 2.0 API. Use it to manage
projects, tasks, and time entries, retrieve reports, or start a workflow when a
new time entry appears in a workspace.

Installation

Use Settings → Community Nodes on self-hosted n8n to install
@donadiosolutions/n8n-nodes-toggl-focus when it is available on npm. To install
from a tarball, run pnpm install --frozen-lockfile and pnpm pack in a source
checkout, or use a tarball from a package build.

On the n8n host, run these commands as the user that runs n8n. Replace the
tarball path with the location of the file you built or received.

mkdir -p ~/.n8n/nodes
cd ~/.n8n/nodes
npm install --save-exact /path/to/donadiosolutions-n8n-nodes-toggl-focus-0.1.2.tgz

Restart n8n. If your instance runs in queue mode, install the same version on
the main instance, workers, and any webhook processors. Keep the installation
on persistent storage or include it in your container deployment.

See the n8n manual installation guide
for the standard community node directory and restart steps.

Credentials

  1. Get an API key from Toggl 2.0 settings.
  2. In n8n, create a Toggl API 2.0 credential and paste the key into API Key.
  3. Save the credential and select it in either Toggl Focus node.

The credential sends a Bearer token to focus.toggl.com and checks it against
/api/users/me/settings. API keys inherit the permissions of the owning
Toggl account. Creating a new key revokes the previous one. See the
Toggl authentication guide.

Nodes

Toggl Focus

Select a Resource and an Operation. Fill in the required path
parameters and any query, header, or JSON body fields for that operation. The
node returns Toggl's response with its pagination fields. Pass the next page
or cursor in a subsequent request to retrieve more results.

For example, connect a Manual Trigger to Toggl Focus, select
User Settings and Retrieve user settings, and run the workflow. This
read-only request returns the settings for the authenticated Toggl user.

For uploads, set each file field to the name of an input binary field. For
batch fields, enter a JSON array of binary field names. Downloads appear in
the data binary field. Calendar authorization operations return a
redirectUrl that you can open to complete provider sign-in.

Toggl Focus Trigger

Set the Organization ID, Workspace ID, Lookback Days, and polling
interval. The first scheduled poll records the current time entries as a
baseline. Later polls emit one item for each newly seen entry within the
lookback period. A manual run previews up to 20 entries and leaves the
baseline unchanged.

The trigger scans tracked time entries. If the 100-page limit is reached,
shorten the lookback period. Each poll uses at least one API request and
Toggl quotas apply. Choose a polling interval that fits your account's quota.

Compatibility

Tested with n8n 3.3.0 on Node.js 22 or later.

This package uses the Toggl 2.0 API. The actions available to a workflow depend
on the Toggl account's organization role and subscription. See the
Toggl API reference for
operation requirements, pagination, and limits.

Workflows saved with an unscoped Toggl Focus package reference
n8n-nodes-toggl-focus.togglFocus or n8n-nodes-toggl-focus.togglFocusTrigger.
When moving a workflow to this package, use the corresponding
@donadiosolutions/n8n-nodes-toggl-focus node type. The existing
togglFocusApi credential can still be selected.

Releases

Run the npm package workflow on main to build, test, and download the
tarball. Leave publish off for a build that only creates an artifact.

npm requires the scoped package to exist before it accepts a trusted publisher.
An npm organization maintainer can use the workflow tarball for the initial
release. After the package exists, configure GitHub Actions in the package's
Trusted Publishing settings:

  • Organization: donadiosolutions
  • Repository: n8n-nodes-toggl-focus
  • Workflow filename: publish.yml
  • Allowed action: npm publish

For subsequent releases, update the package version on main and run the
workflow with publish enabled. GitHub Actions authenticates to npm via OIDC.

Discussion