Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Consent → Create or Update

AI-generated

Summary

Create or update a consent record for a specified JID in the wa-instance system, optionally providing a reason, source, and timezone.

Inputs

  • JID (required) — The JID (Jabber ID) identifier for the contact to create or update consent for.
  • Additional Options — Optional parameters including reason for consent, source of consent, and timezone.

Output shape

a single record

Returns the created or updated consent record as a JSON object.

Links

Discussion