WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation sends a location message via the WARest WhatsApp REST API. It allows users to share geographic coordinates (latitude and longitude) along with optional name and address details to a specified recipient or chat session. This is useful for scenarios where you want to share a precise location, such as meeting points, event venues, or places of interest, directly through WhatsApp messaging.

Use Case Examples

  1. Sending a location of a meeting point to a contact or group chat.
  2. Sharing a restaurant's location with friends via WhatsApp.

Properties

Name Meaning
Session The WhatsApp session ID to use for sending the location message. It can be selected from a list of active sessions or entered manually.
Recipient / Chat (to) The phone number or JID of the recipient or chat where the location message will be sent. Can be a single or comma-separated list.
Location The geographic coordinates and optional descriptive details of the location to send. Includes latitude, longitude, name, and address.
Additional Fields Optional message settings such as sending typing indicators before the message, replying to a specific message ID, or marking the message as forwarded.

Output

JSON

  • json
    • latitude - Latitude of the sent location.
    • longitude - Longitude of the sent location.
    • name - Optional name of the location.
    • address - Optional address of the location.

Dependencies

  • Requires an API key credential for the WARest WhatsApp REST API and the base URL of the API server.

Troubleshooting

  • Ensure the session ID is valid and active; otherwise, the message will not send.
  • Latitude and longitude are required fields; missing these will cause an error.
  • The recipient field must be a valid phone number or JID; invalid formats will cause failures.
  • If using replyMessageId, ensure the referenced message ID exists in the chat.
  • Check API credentials and base URL configuration if authentication errors occur.

Discussion