Actions54
- Auth Signup Send OTP
- Auth Signup Verify
- Auth Logout
- Health
- Me
- Profile
- Channel Secrets
- Rotate Swagger Portal
- Sessions List
- Session Create
- Session Update
- Session Delete
- Session Disconnect
- Get Channel Secret
- Rotate Channel Secret
- Session Status
- Session Details
- Session QR
- Refresh Session QR
- Session Incoming
- Session Events
- Session Calls
- Download Inbound Media
- Set Webhook
- Send Raw Message
- Send Text
- Send Media
- Send List
- Send Chat State
- Typing Indicator On
- Typing Indicator Off
- Group Create
- Group Get
- Group Add Participants
- Group Remove Participants
- Group Promote Participants
- Group Demote Participants
- Group Set Subject
- Group Set Description
- Group Invite Code
- Group Revoke Invite
- Group Leave
- Group Set Add Members Admins Only
- Group Set Messages Admins Only
- Group Set Info Admins Only
- Group Set Picture
- Group Delete Picture
- Group Membership Requests
- Group Membership Approve
- Group Membership Reject
- V1 Sessions List
- V1 Send Message
- V1 Send List
- V1 Send Chat State
Session Disconnect
AI-generatedSummary
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.
