DinastiAPI User icon

DinastiAPI User

Get user information and manage presence with DinastiAPI WhatsApp API

Overview

This node interacts with the DinastiAPI WhatsApp API to retrieve user-related information and manage presence. Specifically, the "Get Phone From LID" operation allows users to obtain a phone number or JID (WhatsApp identifier) from a given Local ID (LID). This is useful in scenarios where you have an internal or local identifier for a WhatsApp user and need to resolve it back to their actual phone number or JID.

Practical examples include:

  • Converting stored LIDs in your system into usable phone numbers for messaging.
  • Synchronizing contact lists by resolving LIDs to phone numbers.
  • Integrating with other systems that require phone numbers instead of LIDs.

Properties

Name Meaning
Local ID (LID) The Local ID string (e.g., 1234567890@lid.whatsapp.net) for which to get the phone number. This property is required for the "Get Phone From LID" operation.

Output

The output JSON contains the response from the DinastiAPI endpoint /user/lid/from-lid. It typically includes the phone number or JID corresponding to the provided LID.

The exact structure depends on the API response but generally will be a JSON object with fields representing the resolved phone number or JID.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the DinastiAPI WhatsApp API.
  • Requires an API key credential configured in n8n for authenticating requests to DinastiAPI.
  • The node uses the internal helper function dinastiapiApiRequest to make HTTP requests to the API endpoints.

Troubleshooting

  • Invalid LID format: Ensure the LID is correctly formatted, e.g., 1234567890@lid.whatsapp.net.
  • API authentication errors: Verify that the API key credential is correctly set up and has necessary permissions.
  • Network issues: Check connectivity to the DinastiAPI service.
  • Empty or no results: The provided LID might not exist or be mapped; verify the LID is valid and registered.
  • Error messages from API: These are passed through; check the error message details for guidance.

Links and References

Discussion