Skip to content

Using n8n with MendriX

n8n is a low-code workflow automation tool. This guide sets up the foundation every other n8n guide in this portal builds on: a reusable credential, the HTTP Request node, pagination and error handling. Each integration guide also ships an importable workflow JSON under /n8n/.

MendriX authentication is a two-step flow: your long-lived API token is exchanged for a short-lived access token (JWT) which authenticates the actual API calls — see Authentication. In n8n that means: one credential holding the API token, and one login node at the start of every workflow.

On the manual path you log in once and use the returned access token:

Terminal window
export MENDRIX_ACCESS_TOKEN=$(curl -s -X POST \
"$MENDRIX_BASE/account/login-api-token" \
-H "Content-Type: application/json" \
-d "{\"token\": \"$MENDRIX_API_TOKEN\"}" | jq -r '.data.items[0].access')
curl "$MENDRIX_BASE/client/clients/" \
-H "Authorization: Bearer $MENDRIX_ACCESS_TOKEN"

The manual equivalent is a single HTTP call. See Your first integration for curl and JavaScript.

Follow the cursor as described in Pagination & sync.

Check the status code and read the body on failure — see Errors & conventions.

Every guide links its own workflow JSON. Import any of them via Workflows → Import from File, then attach your MendriX API token Custom Auth credential to the Get access token node and replace <your-client-name>: