Actions98
- Auto Reply Actions
- Chat Actions
- Contact Actions
- Group Actions
- Label Actions
- Message Actions
- Media Actions
- Notification Actions
- Profile Actions
- Scheduler Actions
- Session Actions
- Status Update Actions
- System Actions
- User Actions
- Webhook Actions
Session → Grant Access
AI-generatedSummary
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