WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Session → Get Current Session User Info

AI-generated

Overview

This node operation retrieves the current user information of a specified WhatsApp session using the WasenderAPI. It is useful for scenarios where you need to obtain details about the user associated with a particular session, such as for monitoring or managing session-specific data.

Use Case Examples

  1. Retrieve the user info of an active WhatsApp session to display user details in a dashboard.
  2. Use the node to fetch session user info before performing further actions like sending messages or managing contacts.

Properties

Name Meaning
Session Optional session identifier to specify which WhatsApp session to query. If not provided, the session from the incoming item is used.
Auto Selected Session ID Automatically selected session ID from the incoming item, used if no session is manually selected.
Has Auto Selected Session Indicates whether there is an automatically selected session ID available from the incoming item.
Options Additional request options such as retry behavior and maximum retry attempts for API requests.

Output

JSON

  • id - The unique identifier of the session user.
  • name - The name of the session user.
  • phoneNumber - The phone number associated with the session user.
  • status - The current status of the session user.
  • profilePictureUrl - URL to the profile picture of the session user.

Dependencies

  • WasenderAPI service with an API key credential

Troubleshooting

  • Ensure the session ID is correctly provided or available in the incoming item; otherwise, the node will throw an error indicating a session is required.
  • If the API request fails, check the retry options and network connectivity. Adjust retry settings if necessary.
  • Common error messages include missing session ID or unsupported session operation, which require verifying node parameters and input data.

Discussion