Ajax icon

Ajax

Consume Ajax API (v.0.1.2)

Actions242

Overview

This node, named "Ajax," is designed to interact with the Ajax API (version indicated in the code). It provides a flexible interface to perform various operations on multiple resources related to Ajax's ecosystem. Specifically, for the resource Access Code and operation Get Access Codes List For Company, the node retrieves a list of access codes associated with a specified company.

Common scenarios where this node is beneficial include:

  • Managing security or access control systems by fetching all access codes assigned to a particular company.
  • Integrating access code data into workflows for auditing, reporting, or synchronization with other systems.
  • Automating administrative tasks that require up-to-date access code information per company.

Practical example:

  • A security administrator wants to automatically retrieve all active access codes for a company every day to verify usage or detect anomalies.
  • An integration workflow pulls access code lists to update a centralized database or trigger notifications when new codes are added.

Properties

Name Meaning
Company Id The unique identifier of the company for which to retrieve the list of access codes.
Hub Id The unique identifier of the hub associated with the company, required for the request.

These properties must be provided as strings and are mandatory for the operation to succeed.

Output

The node outputs JSON data containing the list of access codes retrieved from the Ajax API for the specified company and hub. The structure typically includes details about each access code such as identifiers, status, permissions, and possibly metadata relevant to the access control system.

If the node supports binary data output (not explicitly shown in the provided code), it would represent any file or media content returned by the API, but for this operation, the output is expected to be purely JSON.

Dependencies

  • Requires an API key credential for authenticating with the Ajax API.
  • Depends on the @digital-boss/n8n-designpatterns package for response-operation resolution and execution logic.
  • Uses internal backend modules for state management, HTTP client communication, and operation methods.
  • The node expects proper configuration of the Ajax API credentials within n8n.

Troubleshooting

  • Missing or invalid credentials: Ensure the API key credential is correctly configured and has sufficient permissions.
  • Invalid Company Id or Hub Id: Verify that the provided IDs exist and are correct; otherwise, the API may return errors or empty results.
  • Network issues: Check connectivity to the Ajax API endpoint.
  • API rate limits or quota exceeded: If the API enforces limits, repeated calls might fail temporarily.
  • Unexpected response format: If the API changes, the node might not parse responses correctly; updating the node or checking API version compatibility may help.

Common error messages might include authentication failures, resource not found, or validation errors on input parameters. Resolving these usually involves verifying credentials, input values, and network access.

Links and References

Discussion