npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dms-one/n8n-nodes-flex

v0.1.4

Published

A n8n node package to interact with Flex API

Readme

@dms-one/n8n-nodes-flex

n8n community node package for DMS One Flex — document and workflow APIs you can call from workflows.

Flex is the web-facing layer of the DMS One stack. This package exposes a single Flex node with multiple resources (tasks, users, workflow tasks).

Contents: Installation · Credentials and tokens · Impersonation header · Resources and operations · Example workflow · Links


Installation

Install as a community node (self-hosted n8n). The package name is:

@dms-one/n8n-nodes-flex

After installation, add Flex API credentials (see below) and use the Flex node in your workflows.

For packaging standards and submitting to the community index, see Submit community nodes and the verification guidelines.


Credentials and tokens

Create Flex API credentials in n8n and set:

| Field | Purpose | | --- | --- | | Base URL | Flex API root (default https://flex.dmsone.hu/api). Use your tenant URL if your organization hosts Flex elsewhere. | | Authentication Method | Personal Access Token or Station Token. | | Token | The secret string for the chosen method. | | Impersonated User Email | Shown only for Station Token — optional email of the user to act as (see Impersonation). | | Ignore SSL Issues | Only for dev/self-signed certs; not recommended in production. |

Personal Access Token (PAT)

  1. Sign in to your organization’s Flex web application (e.g. flex.dmsone.hu if that is your tenant).
  2. Open the user / account menu (typically from your name or avatar in the UI).
  3. Use the menu entry for personal access tokens (wording may match your Flex locale) and create a new token.
  4. Copy the token into n8n Token and set Authentication Method to Personal Access Token.

PATs run API calls as you. They can expire; renew or replace the token in credentials when Flex reports it invalid.

Station token

A station (machine / integration) token is a service credential, usually created or distributed by a Flex administrator in your organization — not from the same personal menu as a PAT. Paste it into Token and set Authentication Method to Station Token.

Use a station token when automation should run under a dedicated integration account and optionally impersonate different users via email (below).


Impersonation (station token only)

When Authentication Method is Station Token, you can set Impersonated User Email to a Flex user’s email address.

For each HTTP request, the credential adds:

X-Impersonated-User-Email: <that email>

so the Flex API treats the call as that user (subject to server-side permissions). If the field is empty, that header is not sent and the call uses the station token’s own identity.

Personal Access Token mode does not use this header; the PAT already identifies a single user.


Resources and operations

In the Flex node, pick a Resource, then an Operation.

Task (task)

| Operation | What it does | | --- | --- | | Create | Start a new DMS task (POST /dms/task/start). | | Comment | Add a comment on a task. | | Accept | Accept a task. | | Complete | Mark a task complete. | | List | List tasks by status (in-progress, completed, pending, all). |

User (user)

| Operation | What it does | | --- | --- | | Get by Username | Resolve a user by Flex username. |

Workflow (workflow)

Workflow operations target workflow engine tasks (templates, assignments, attachments), distinct from the simple Task resource above.

| Operation | What it does | | --- | --- | | Get Available Templates | List workflow templates. | | Get Template Details | Metadata / required fields for a template. | | Start Workflow | Start a process from a template (including metadata and optional files). | | Get My Tasks | Tasks assigned to the current (or impersonated) user. | | Get Task Details | Full detail for one workflow task. | | Complete Task | Complete a workflow task with result and optional comment. | | Get Task Comments / Add Task Comment | Read or add comments on a workflow task. | | Get Task Attachments / Get Task Related Attachments | List attachments for a task. | | Download Attachment | Download a file by attachment GUID. |


Example workflow

Goal: Start a workflow from a template, using fields returned by Flex.

  1. Credentials — Create Flex API with a PAT or station token (+ impersonation email if needed). Test with Credential → Test (calls GET …/diag).
  2. Trigger — e.g. Manual Trigger or your real trigger (webhook, schedule).
  3. Flex (1) — Resource Workflow, operation Get Available Templates. Note a id (and name) of the template you need.
  4. Flex (2) — Resource Workflow, operation Get Template Details, Template ID from step 3. Inspect the output so you know required metadata keys and types.
  5. Flex (3) — Resource Workflow, operation Start Workflow. Choose the same template, fill metadata (and optional binary files) according to step 2’s structure. Execute the workflow.

A smaller alternative: Workflow → Get My TasksGet Task Details on one task id → Add Task Comment to append a note from n8n.


Links

License

MIT (see license in package.json).