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 supports multiple resources and operations, including the "User" resource with the "Contact Info Confirmation" operation. The primary purpose of this node is to perform API calls to Ajax services, enabling automation workflows that require user contact information verification.

A common use case for the "Contact Info Confirmation" operation is to confirm a user's phone number and email address by validating tokens sent to those contacts. This can be useful in scenarios such as user onboarding, security verification, or updating user profiles where confirmation of contact details is mandatory.

For example, after a user receives a phone token via SMS and an email token via email, this node can be used to verify both tokens against the Ajax backend to confirm the user's contact information.

Properties

Name Meaning
Login The login identifier of the user whose contact info is being confirmed.
Phone Token The token received on the user's phone, used to verify the phone number.
Email Token The token received via email, used to verify the email address.

Output

The node outputs JSON data representing the result of the contact info confirmation request. This typically includes confirmation status and any relevant metadata returned by the Ajax API about the user’s contact info verification.

If the node supports binary data output, it would generally relate to any files or attachments returned by the API, but based on the provided code and context, the focus is on JSON responses confirming contact info.

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 expects proper configuration of the Ajax API credentials within n8n.

Troubleshooting

  • Invalid Tokens: If the phone or email tokens are incorrect or expired, the API will likely return an error indicating failed verification. Ensure tokens are current and correctly entered.
  • Authentication Errors: Missing or invalid API credentials will cause authentication failures. Verify that the API key credential is correctly set up in n8n.
  • Network Issues: Connectivity problems may prevent the node from reaching the Ajax API. Check network settings and API endpoint availability.
  • Missing Required Parameters: The node requires all three properties (login, phoneToken, emailToken). Omitting any will cause validation errors before execution.

Links and References

Discussion