StevoChat icon

StevoChat

Interact with StevoChat API

Chat → Mark as Read

AI-generated

Overview

The "Mark as Read" operation in the StevoChat node allows users to mark a specific chat message as read on the StevoChat platform. This is useful for automating message status updates, ensuring that messages are acknowledged programmatically without manual intervention. For example, after processing an incoming message or completing an automated response, you can mark the message as read to keep the conversation state synchronized.

Properties

Name Meaning
Phone The phone number (including country code) of the chat participant whose message is marked as read.
Message ID The unique identifier of the message to be marked as read.

Output

The node outputs a JSON object representing the response from the StevoChat API after marking the message as read. The exact structure depends on the API but typically includes confirmation of the action or updated message status. No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the StevoChat API.
  • Needs an API authentication token configured in the node credentials to authorize requests.
  • The node uses HTTP POST requests to the /chat/markread endpoint of the StevoChat API.

Troubleshooting

  • Common issues:

    • Invalid or missing phone number format may cause the API request to fail.
    • Incorrect or expired API authentication token will result in authorization errors.
    • Providing a non-existent or incorrect message ID will prevent the message from being marked as read.
  • Error messages and resolutions:

    • "Unauthorized" — Check and update the API authentication token in the node credentials.
    • "Message not found" — Verify the message ID is correct and corresponds to a message associated with the given phone number.
    • "Invalid phone number" — Ensure the phone number includes the country code and is formatted correctly.

Links and References

Discussion