Green API style endpoints. Admin routes are hidden from this user docs page.
Admin PanelBase URL: https://baileys.rentalaibot.com
idInstance: from admin panel
apiToken: from admin panel
GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/getStateInstance/YOUR_API_TOKEN
GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/qr/YOUR_API_TOKEN
GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/qr/YOUR_API_TOKEN?html=1
POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/getAuthorizationCode/YOUR_API_TOKEN
Content-Type: application/json
{"phoneNumber":"923001234567"}GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/logout/YOUR_API_TOKEN
GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/reboot/YOUR_API_TOKEN
POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/setSocketConfig/YOUR_API_TOKEN
Content-Type: application/json
{"syncFullHistory":true,"markOnlineOnConnect":false,"autoStart":true}GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/getContacts/YOUR_API_TOKEN
GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/getContacts/YOUR_API_TOKEN?group=true
GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/lastMessages/YOUR_API_TOKEN
GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/events/YOUR_API_TOKEN
POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/setWebhook/YOUR_API_TOKEN
Content-Type: application/json
{"webhookUrl":"https://example.com/webhook.php"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendMessage/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","message":"Hello"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendMessage/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"120xxx@g.us","message":"Done","quotedMessageId":"MESSAGE_ID"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendMessageMention/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"120xxx@g.us","message":"Hi @923001234567","mentions":["923001234567@c.us"]}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendReplyMention/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"120xxx@g.us","message":"Done @923001234567","quotedMessageId":"MESSAGE_ID","mentions":["923001234567@c.us"]}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/forwardMessage/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","message":{}}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendLocation/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","latitude":31.5204,"longitude":74.3587,"name":"Lahore"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendContact/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","fullName":"Support","phoneNumber":"923001234567"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendReaction/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","messageId":"MESSAGE_ID","emoji":"✅"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/pinMessage/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"120xxx@g.us","messageId":"MESSAGE_ID","type":1,"time":86400}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendPoll/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","name":"Choose","options":["A","B"],"selectableCount":1}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendLinkPreview/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","message":"https://example.com"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendFileByUrl/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","urlFile":"https://example.com/file.pdf","fileName":"file.pdf","caption":"Optional"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendFileByBase64/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","fileName":"image.jpg","base64File":"BASE64","mimetype":"image/jpeg"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendImage/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","urlFile":"https://example.com/image.jpg","fileName":"image.jpg"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendViewOnce/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","urlFile":"https://example.com/image.jpg","fileName":"image.jpg"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/downloadMediaMessage/YOUR_API_TOKEN
Content-Type: application/json
{"type":"base64","message":{}}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/editMessage/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","messageId":"MESSAGE_ID","message":"New text","fromMe":true}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/deleteMessage/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","messageId":"MESSAGE_ID","fromMe":true}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/deleteMessageForMe/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","messageId":"MESSAGE_ID","fromMe":false}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/rejectCall/YOUR_API_TOKEN
Content-Type: application/json
{"callId":"CALL_ID","from":"923001234567@c.us"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/readMessages/YOUR_API_TOKEN
Content-Type: application/json
{"keys":[{"chatId":"923001234567@c.us","messageId":"MESSAGE_ID","fromMe":false}]}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendPresence/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","presence":"composing"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/archiveChat/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","archive":true}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/muteChat/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","muteSeconds":86400}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/markChatRead/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","read":true}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/deleteChat/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/starMessage/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","messageId":"MESSAGE_ID","star":true}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/disappearingMessages/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","seconds":86400}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/checkWhatsApp/YOUR_API_TOKEN
Content-Type: application/json
{"phoneNumber":"923001234567"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/queryChatHistory/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","count":25}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/fetchStatus/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/fetchProfilePicture/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","type":"image"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/fetchBusinessProfile/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/fetchPresence/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/changeProfileStatus/YOUR_API_TOKEN
Content-Type: application/json
{"status":"Available"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/changeProfileName/YOUR_API_TOKEN
Content-Type: application/json
{"name":"My Business"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/changeDisplayPicture/YOUR_API_TOKEN
Content-Type: application/json
{"urlFile":"https://example.com/pic.jpg"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/removeDisplayPicture/YOUR_API_TOKEN
Content-Type: application/json
{}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/createGroup/YOUR_API_TOKEN
Content-Type: application/json
{"subject":"Test Group","participants":["923001234567@c.us"]}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/groupParticipants/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us","participants":["923001234567@c.us"],"action":"add"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/groupSubject/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us","subject":"New Name"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/groupDescription/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us","description":"New Description"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/groupSettings/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us","setting":"announcement"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/leaveGroup/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/getGroupInviteCode/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/revokeGroupInviteCode/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/joinGroupInvite/YOUR_API_TOKEN
Content-Type: application/json
{"code":"INVITE_CODE"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/getGroupInfoByInviteCode/YOUR_API_TOKEN
Content-Type: application/json
{"code":"INVITE_CODE"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/groupMetadata/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us"}GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/getAllGroups/YOUR_API_TOKEN
POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/getRequestJoinList/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/approveRejectJoinRequest/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us","participants":["923001234567@c.us"],"action":"approve"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/toggleEphemeral/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us","seconds":86400}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/changeAddMode/YOUR_API_TOKEN
Content-Type: application/json
{"groupId":"120xxx@g.us","mode":"all_member_add"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/blockUser/YOUR_API_TOKEN
Content-Type: application/json
{"chatId":"923001234567@c.us","action":"block"}GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/getPrivacySettings/YOUR_API_TOKEN
GET
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/getBlockList/YOUR_API_TOKEN
POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/updatePrivacy/YOUR_API_TOKEN
Content-Type: application/json
{"type":"lastSeen","value":"contacts"}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/sendStatusBroadcast/YOUR_API_TOKEN
Content-Type: application/json
{"message":"Hello story","recipients":["923001234567@c.us"]}POST
https://baileys.rentalaibot.com/waInstanceYOUR_ID_INSTANCE/queryBroadcastList/YOUR_API_TOKEN
Content-Type: application/json
{"broadcastId":"12345@broadcast"}Some advanced WhatsApp features depend on current Baileys/WhatsApp support. If a method is unavailable in your installed Baileys version, API returns method_not_supported instead of crashing.
Normal JID: 923001234567@c.us. Group JID: 120xxx@g.us. LID messages may show as @lid and may not expose phone number.