WA-AKG icon

WA-AKG

Interact with WA-AKG WhatsApp Gateway API

Session → Action

AI-generated

Summary

Start, stop, or restart a WA-AKG session.

Inputs

  • targetSessionId (required) — The ID of the session to manage, e.g. "my_session_1"
  • sessionAction (required) — The action to perform: "start", "stop", "restart" or "logout"
  • additionalFields — Optional collection of extra parameters such as custom session ID, bot configuration or session settings, depending on the chosen action

Output shape

JSON response object from the WA-AKG session API (typically containing success status and updated session details)

The response may be empty on failure; success payload varies by action but usually returns the updated session object.

Examples

Example 1: Start a session with default settings

targetSessionId = "my_session_1", sessionAction = "start"

Example 2: Update session settings with custom bot config

targetSessionId = "my_session_1", sessionAction = "updateSettings", additionalFields = {"sessionSettings":[{"name":"prefix","value":"!"}]}

Example 3: Delete a session

targetSessionId = "my_session_1", sessionAction = "delete", additionalFields = {"newSessionId":"custom_id_123"}

Links

Discussion