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 bundled source). It supports multiple resources and operations, including user-related actions such as confirming changes to a user's contact information. The node facilitates sending requests to the Ajax backend to perform these operations, making it useful for automating workflows that involve managing Ajax system users, devices, or other entities.

A practical example of its use is confirming a user's updated phone number or email address by providing tokens received via those channels, ensuring secure verification of contact info changes.

Properties

Name Meaning
User Id The unique identifier of the user whose contact information change is being confirmed.
Phone Token The token sent to the user's phone to verify the phone number change.
Email Token The token sent to the user's email to verify the email address change.

These properties are required when performing the "Confirm User Contact Information Change" operation on the "User" resource.

Output

The node outputs JSON data representing the result of the confirmation request. This typically includes status information about whether the contact information change was successfully confirmed or if there were errors (e.g., invalid tokens).

If the node supports binary data output, it would relate to any files or attachments returned by the Ajax API, but based on the provided code and operation, the output is primarily JSON structured response data.

Dependencies

  • Requires an API key credential for authenticating with the Ajax API.
  • Depends on the @digital-boss/n8n-designpatterns package for handling resource-operation resolution and execution.
  • Uses internal modules for HTTP client communication and state management.
  • The node must be configured with valid credentials to access the Ajax API.

Troubleshooting

  • Invalid or expired tokens: If the phone or email token is incorrect or expired, the API will reject the confirmation. Ensure tokens are current and correctly entered.
  • Missing or incorrect User Id: Providing an invalid user identifier will cause the operation to fail. Verify the User Id corresponds to an existing user.
  • Authentication errors: If the API key credential is missing or invalid, the node will not authenticate successfully. Check credential configuration.
  • Network issues: Failures in HTTP communication may occur due to network problems; ensure connectivity to the Ajax API endpoint.
  • Error messages from API: The node will relay error responses from the Ajax API, which should be reviewed to understand specific failure reasons.

Links and References

Discussion