Mtai Test Messages API

Test node to show api

Overview

This node sends a POST request to a specified API endpoint with user credentials and a message input. It is designed to interact with the 'sp_CheckBuildNode' API, sending a message and receiving a response that includes the result, reason, and data from the API. This node is useful for testing API connectivity and message handling in workflows.

Use Case Examples

  1. Sending a test message to the Paradise HRM API to verify the response structure and data.
  2. Using the node to automate sending messages to the API and processing the returned data for further workflow actions.

Properties

Name Meaning
API URL The API endpoint URL to which the POST request is sent.
Input messages The message content sent to the API as part of the request payload.

Output

JSON

  • result - The result status returned by the API.
  • reason - The reason or message explaining the result status from the API.
  • data - The main data payload returned by the API.
  • messageInput - The original input message sent to the API.

Dependencies

  • axios for making HTTP POST requests

Troubleshooting

  • Ensure the API URL is correct and accessible from the environment where the node runs.
  • Verify that the user credentials and password hash are valid and have permission to access the API.
  • Check network connectivity issues if the POST request fails or times out.
  • If the API returns an error, review the 'reason' field in the output for diagnostic information.

Discussion