Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Consent → Get

AI-generated

Summary

Retrieve the current consent record for a specified JID (WhatsApp identifier).

Inputs

  • jid (required) — The JID (WhatsApp identifier) for which to fetch the consent record.

Output shape

a single JSON object containing the consent record for the specified JID

The node returns the current consent record as JSON. An error is thrown if the JID is not found or the operation fails.

Examples

Example 1: Get consent for a specific JID

Set the JID parameter to the desired WhatsApp identifier to retrieve its consent record.

Links

Discussion