TNEENWH icon

TNEENWH

Use TNEENWH API operations

Session Disconnect

AI-generated

Summary

Disconnect a WhatsApp session using the TNEENWH API by specifying optional session ID and channel secret overrides.

Inputs

  • Session ID Override — An optional string to override the default session ID for the session to disconnect.
  • Channel Secret Override — An optional string to override the default channel secret associated with the session to disconnect.

Output shape

a single JSON object containing the API response for the session disconnection request

The operation returns the TNEENWH API response indicating the result of the disconnect call. If an error occurs and continue on fail is enabled, a JSON error message will be returned instead.

Examples

Example 1: Disconnecting a session with default credentials

No Session ID Override or Channel Secret Override provided, disconnects the session identified by credentials.

Example 2: Disconnecting a session with overrides

Provide Session ID Override and/or Channel Secret Override to disconnect a specific session instead of the default.

Links

Discussion