kajabi

N8n node for Kajabi API - OAuth2 Authentication

Package Information

Downloads: 31 weekly / 93 monthly
Latest Version: 2.4.6
Author: Gzlo

Documentation

n8n-nodes-kajabi

This is an n8n community node. It lets you use Kajabi API V1 in your n8n workflows.

n8n is a fair-code licensed workflow automation platform.

Prerequisites

  • n8n v1.0.0+
  • Kajabi Client ID and Client Secret (Found in Kajabi Dashboard → Settings → Public API)

Installation

Local Development

  1. Clone this repository.
  2. Run npm install to install dependencies.
  3. Run npm run build to compile the node.
  4. Link the node to your local n8n instance:
    # In this directory
    npm link
    
    # In your n8n installation directory (usually ~/.n8n/custom)
    npm link n8n-nodes-kajabi
    

Docker

You can mount the dist folder to your n8n docker container's custom nodes directory.

Credentials

The node uses OAuth2 Client Credentials flow for authentication:

  1. Create a "Kajabi API" credential in n8n
  2. Enter your Client ID and Client Secret from Kajabi Dashboard → Settings → Public API
  3. The node automatically:
    • Obtains an access token from Kajabi's OAuth2 endpoint
    • Includes the token as Authorization: Bearer <token> in all API requests
    • Caches tokens and refreshes them automatically 5 minutes before expiration
    • Detects expired tokens (401 errors) and retries automatically with fresh tokens

Note: Each credential set requires valid OAuth2 client credentials. Legacy API Key/Merchant ID authentication is no longer supported.

🔄 Automatic Token Refresh & Retry

The authentication system is fully automatic and handles edge cases:

  • Smart Caching: Tokens are cached and reused across multiple requests
  • Proactive Refresh: Tokens refresh 5 minutes before expiration
  • 401 Auto-Retry: If a token expires during a request:
    1. The node detects the 401 error
    2. Clears the expired token from cache
    3. Obtains a fresh token automatically
    4. Retries the original request
    5. All of this happens transparently - no user intervention needed

You only configure credentials once - the node handles everything else.

Supported Operations

Operations

Customers

  • Create
  • Get
  • Get Many
  • Update

Contacts

  • Create
  • Get
  • Get Many
  • Update
  • Notes: Create, Get Many
  • Tags: Add, Remove, Get Many
  • Relationships: Grant Offer, Revoke Offer

Forms

  • Get
  • Get Many
  • Submissions: Create, Get Many

Sales

  • Offers: Get, Get Many
  • Purchases: Create (Grant Offer), Get, Get Many, Cancel, Reactivate
  • Transactions: Get Many
  • Affiliates: Get Many

Content

  • Products: Get, Get Many
  • Courses: Get Many
  • Blog Posts: Get Many
  • Pages: Get Many
  • Sections: Get Many
  • Lessons: Get, Get Many
  • Comments: Create, Get Many

Sites & Events

  • Sites: Get, Get Many
  • Landing Pages: Get Many
  • Events: Get, Get Many
  • Event Registrations: Create, Get Many

Automations

  • Get Many

Kajabi Trigger Node

This package includes a Kajabi Trigger node to handle webhooks automatically.

Webhooks Handled:

  • Purchase Created
  • Form Submitted
  • Contact Created
  • Contact Updated/Deleted
  • Tag Created
  • Page Visited
  • And more...

Features:

  • Auto-Registration: Automatically creates the webhook in Kajabi when the workflow is activated.
  • Auto-Deletion: Removes the webhook when the workflow is deactivated.

Resources

Discussion