WA-AKG icon

WA-AKG

Interact with WA-AKG WhatsApp Gateway API

Session → Grant Access

AI-generated

Summary

Grant access to a session for a user by email

Inputs

  • targetSessionId (required) — The ID of the session you want to manage
  • accessEmail (required) — Email of the user to grant access to
  • additionalFields — Optional extra fields such as custom session ID, bot config, or session settings

Output shape

object indicating success, often containing a confirmation payload

May include updated access list; errors are propagated as exceptions

Examples

Example 1: Grant access to a session

targetSessionId: my_session_1, accessEmail: user@example.com

Example 2: Grant access with custom session ID and bot config

targetSessionId: my_session_1, accessEmail: admin@example.com, additionalFields: {"newSessionId": "custom_001", "botConfig": [{ "name": "prefix", "value": "!" }]}

Example 3: Revoke access by re‑using the same operation

targetSessionId: my_session_1, accessEmail: user@example.com

Links

Discussion