Ajax icon

Ajax

Consume Ajax API (v.0.1.2)

Actions242

Overview

This node, named "Ajax," is designed to interact with a comprehensive Ajax API (version indicated by the bundled version info). It supports multiple resources and operations, including the "Monitoring" resource with the operation "Send Binding Request To Security Company For Company." The node facilitates sending binding requests from a company to a security company, likely to establish or update monitoring service agreements or configurations.

Common scenarios include:

  • Automating the process of linking a company's monitoring setup with a security provider.
  • Integrating security company binding requests into broader workflows for facility management or security operations.
  • Streamlining communication between internal systems and external security services via API calls.

Practical example:

  • A facilities manager uses this node in an automation workflow to send binding requests automatically whenever a new company is onboarded or when their monitoring hub configuration changes.

Properties

Name Meaning
Company Id The unique identifier of the company for which the binding request is being sent.
Hub Id The identifier of the monitoring hub associated with the company.
Account Number Optional account number related to the binding request; may be used for billing or reference purposes.

Output

The node outputs JSON data representing the response from the Ajax API after attempting to send the binding request. This typically includes status information about the request, confirmation details, or error messages if the request failed.

If the API returns binary data (not evident from the provided code), it would represent raw response content such as files or media related to the binding request, but no explicit binary output handling is shown here.

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 and HTTP client functionality.
  • The node expects proper configuration of the Ajax API credentials within n8n.

Troubleshooting

  • Missing or invalid credentials: Ensure that the API key credential for the Ajax API is correctly configured and has sufficient permissions.
  • Invalid input parameters: Verify that required fields like Company Id and Hub Id are provided and correctly formatted.
  • API errors: If the API returns errors, check the response JSON for error codes or messages. Common issues might include unauthorized access, invalid company or hub IDs, or network connectivity problems.
  • Version mismatch: The node uses a specific API version; ensure the backend Ajax API matches this version to avoid incompatibility.

Links and References

  • No direct external links are provided in the source code.
  • Refer to the official Ajax API documentation corresponding to the version used for detailed API behavior and parameter definitions.
  • Consult n8n community forums or documentation for guidance on setting up API credentials and troubleshooting HTTP request nodes.

Discussion