The User API provides endpoints for users to manage their WhatsApp sessions, retrieve groups and contacts, and control session lifecycle.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jevil25/whatsapp-waha-dashboard/llms.txt
Use this file to discover all available pages before exploring further.
getWhatsAppSession
Retrieve the current user’s connected WhatsApp session.Response
WhatsApp session object or null if not connected
Session ID
Unique session name
Associated phone number
Owner user ID
Session creation timestamp
Last update timestamp
Example
initiateWhatsAppSession
Create or reconnect to a WhatsApp session for the current user.Response
The unique session name created or reused
The session database ID
Example
Error Cases
- INTERNAL_SERVER_ERROR: Failed to create WhatsApp session
getSessionStatus
Check the current status of a WhatsApp session.Input Parameters
The session name to check
Response
Session status from WAHA API (e.g., “WORKING”, “SCAN_QR_CODE”, “STOPPED”)
Example
getSessionQR
Retrieve the QR code for authenticating a WhatsApp session.Input Parameters
The session name to get the QR code for
Response
Base64-encoded QR code image
Example
restartSession
Restart a WhatsApp session by stopping and starting it.Input Parameters
The session name to restart
Response
Indicates whether the session was restarted successfully
Example
updateSessionPhone
Update the phone number associated with a session.Input Parameters
The session database ID
The new phone number
Response
Indicates whether the phone number was updated successfully
Example
logoutSession
Logout and delete a WhatsApp session.Input Parameters
The session name to logout
Response
Indicates whether the logout was successful
Example
getWhatsAppGroups
Retrieve WhatsApp groups for a session with pagination and search.Input Parameters
The session name to fetch groups from
Maximum number of groups to return (minimum 1)
Pagination cursor (offset)
Optional search term to filter groups by name
Response
Cursor for the next page, or undefined if no more results
Total count not available without fetching all groups
Example
getWhatsAppContacts
Retrieve WhatsApp contacts for a session with pagination and search.Input Parameters
The session name to fetch contacts from
Maximum number of contacts to return (minimum 1)
Pagination cursor (offset)
Optional search term to filter contacts by name or number
Response
Cursor for the next page, or undefined if no more results
Total count not available