Files
wuzapi/wuzapi_postman.json
Felipe Aquino 8b80b70471
Some checks failed
Build and Test / Build Go Application (push) Has been cancelled
Publish Docker image / build-and-push (push) Has been cancelled
Update Contributors / update-contributors (push) Has been cancelled
upload
2026-03-04 10:54:04 -03:00

1848 lines
58 KiB
JSON

{
"info": {
"_postman_id": "b275f9a7-7fd5-4197-b5de-4e3a9c9d2d78",
"name": "WuzAPI Complete Collection",
"description": "REST API for interacting with WhatsApp using the whatsmeow library.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Admin",
"item": [
{
"name": "List Users",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{admin_token}}"
}
],
"url": {
"raw": "{{baseUrl}}/admin/users",
"host": ["{{baseUrl}}"],
"path": ["admin", "users"]
},
"description": "List users"
},
"response": []
},
{
"name": "Get User",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{admin_token}}"
}
],
"url": {
"raw": "{{baseUrl}}/admin/users/1",
"host": ["{{baseUrl}}"],
"path": ["admin", "users", "1"]
},
"description": "Get user by id"
},
"response": []
},
{
"name": "Add User",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "{{admin_token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"test_user\",\n \"token\": \"user_token\",\n \"webhook\": \"https://webhook.site/1234567890\",\n \"events\": \"All\",\n \"history\": 50,\n \"hmacKey\": \"your_hmac_key_minimum_32_characters_long_here\",\n \"proxyConfig\": {\n \"enabled\": true,\n \"proxyURL\": \"socks5://user:pass@host:port\"\n }, \n \"s3Config\": {\n \"enabled\": true,\n \"endpoint\": \"https://s3.amazonaws.com\",\n \"region\": \"us-east-1\",\n \"bucket\": \"my-bucket\",\n \"accessKey\": \"AKIAIOSFODNN7EXAMPLE\",\n \"secretKey\": \"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY\",\n \"pathStyle\": false,\n \"publicURL\": \"https://cdn.meusite.com\",\n \"mediaDelivery\": \"both\",\n \"retentionDays\": 30\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/admin/users",
"host": ["{{baseUrl}}"],
"path": ["admin", "users"]
},
"description": "Add user"
},
"response": []
},
{
"name": "Edit User",
"request": {
"method": "PUT",
"header": [
{
"key": "Authorization",
"value": "{{admin_token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"updated_user\",\n \"webhook\": \"https://webhook.site/1234567890\",\n \"events\": \"All\",\n \"history\": 50,\n \"proxyConfig\": {\n \"enabled\": false,\n \"proxyURL\": \"\"\n },\n \"s3Config\": {\n \"enabled\": false,\n \"endpoint\": \"\",\n \"region\": \"\",\n \"bucket\": \"\",\n \"accessKey\": \"\",\n \"secretKey\": \"\",\n \"pathStyle\": false,\n \"publicURL\": \"\",\n \"mediaDelivery\": \"base64\",\n \"retentionDays\": 30\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/admin/users/1",
"host": ["{{baseUrl}}"],
"path": ["admin", "users", "1"]
},
"description": "Edit user"
},
"response": []
},
{
"name": "Delete User",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "{{admin_token}}"
}
],
"url": {
"raw": "{{baseUrl}}/admin/users/1",
"host": ["{{baseUrl}}"],
"path": ["admin", "users", "1"]
},
"description": "Delete user"
},
"response": []
},
{
"name": "Delete User Complete",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "{{admin_token}}"
}
],
"url": {
"raw": "{{baseUrl}}/admin/users/1/full",
"host": ["{{baseUrl}}"],
"path": ["admin", "users", "1", "full"]
},
"description": "Delete user and related data"
},
"response": []
}
]
},
{
"name": "Session",
"item": [
{
"name": "Connect",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Subscribe\": [\"Message\", \"ReadReceipt\"],\n \"Immediate\": true\n}"
},
"url": {
"raw": "{{baseUrl}}/session/connect",
"host": ["{{baseUrl}}"],
"path": ["session", "connect"]
},
"description": "Connect to WhatsApp"
},
"response": []
},
{
"name": "Disconnect",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/session/disconnect",
"host": ["{{baseUrl}}"],
"path": ["session", "disconnect"]
},
"description": "Disconnect"
},
"response": []
},
{
"name": "Logout",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/session/logout",
"host": ["{{baseUrl}}"],
"path": ["session", "logout"]
},
"description": "Logout"
},
"response": []
},
{
"name": "Get Status",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/session/status",
"host": ["{{baseUrl}}"],
"path": ["session", "status"]
},
"description": "Get status"
},
"response": []
},
{
"name": "Get QR Code",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/session/qr",
"host": ["{{baseUrl}}"],
"path": ["session", "qr"]
},
"description": "Get QR code"
},
"response": []
},
{
"name": "Pair Phone",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5591155553934\"\n}"
},
"url": {
"raw": "{{baseUrl}}/session/pairphone",
"host": ["{{baseUrl}}"],
"path": ["session", "pairphone"]
},
"description": "Pair by phone"
},
"response": []
},
{
"name": "Request History Sync",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/session/history?count=50",
"host": ["{{baseUrl}}"],
"path": ["session", "history"],
"query": [
{
"key": "count",
"value": "50"
}
]
},
"description": "Request history sync (count is optional)"
},
"response": []
},
{
"name": "Set History",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"history\": 50\n}"
},
"url": {
"raw": "{{baseUrl}}/session/history",
"host": ["{{baseUrl}}"],
"path": ["session", "history"]
},
"description": "Configure history storage per user"
},
"response": []
},
{
"name": "Set Proxy",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"proxy_url\": \"socks5://user:pass@host:port\",\n \"enable\": true\n}"
},
"url": {
"raw": "{{baseUrl}}/session/proxy",
"host": ["{{baseUrl}}"],
"path": ["session", "proxy"]
},
"description": "Set proxy"
},
"response": []
},
{
"name": "Configure S3",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"enabled\": true,\n \"endpoint\": \"https://s3.amazonaws.com\",\n \"region\": \"us-east-1\",\n \"bucket\": \"my-whatsapp-media\",\n \"access_key\": \"AKIAIOSFODNN7EXAMPLE\",\n \"secret_key\": \"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY\",\n \"path_style\": false,\n \"public_url\": \"\",\n \"media_delivery\": \"both\",\n \"retention_days\": 30\n}"
},
"url": {
"raw": "{{baseUrl}}/session/s3/config",
"host": ["{{baseUrl}}"],
"path": ["session", "s3", "config"]
},
"description": "Configure S3 storage settings"
},
"response": []
},
{
"name": "Get S3 Configuration",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/session/s3/config",
"host": ["{{baseUrl}}"],
"path": ["session", "s3", "config"]
},
"description": "Get current S3 configuration"
},
"response": []
},
{
"name": "Test S3 Connection",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/session/s3/test",
"host": ["{{baseUrl}}"],
"path": ["session", "s3", "test"]
},
"description": "Test S3 connection"
},
"response": []
},
{
"name": "Delete S3 Configuration",
"request": {
"method": "DELETE",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/session/s3/config",
"host": ["{{baseUrl}}"],
"path": ["session", "s3", "config"]
},
"description": "Remove S3 configuration"
},
"response": []
},
{
"name": "HMAC Configuration",
"item": [
{
"name": "Configure HMAC Key",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"hmac_key\": \"your_hmac_key_minimum_32_characters_long_here\"\n}"
},
"url": {
"raw": "{{baseUrl}}/session/hmac/config",
"host": ["{{baseUrl}}"],
"path": ["session", "hmac", "config"]
},
"description": "Configure HMAC key for webhook signing"
},
"response": []
},
{
"name": "Get HMAC Configuration",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/session/hmac/config",
"host": ["{{baseUrl}}"],
"path": ["session", "hmac", "config"]
},
"description": "Get HMAC configuration status"
},
"response": []
},
{
"name": "Delete HMAC Configuration",
"request": {
"method": "DELETE",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/session/hmac/config",
"host": ["{{baseUrl}}"],
"path": ["session", "hmac", "config"]
},
"description": "Delete HMAC configuration"
},
"response": []
}
]
}
]
},
{
"name": "Webhook",
"item": [
{
"name": "Get Webhook",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/webhook",
"host": ["{{baseUrl}}"],
"path": ["webhook"]
},
"description": "Get webhook"
},
"response": []
},
{
"name": "Set Webhook",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"webhookurl\": \"https://example.net/webhook\",\n \"events\": [\"Message\", \"ReadReceipt\"]\n}"
},
"url": {
"raw": "{{baseUrl}}/webhook",
"host": ["{{baseUrl}}"],
"path": ["webhook"]
},
"description": "Set webhook"
},
"response": []
},
{
"name": "Delete Webhook",
"request": {
"method": "DELETE",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/webhook",
"host": ["{{baseUrl}}"],
"path": ["webhook"]
},
"description": "Delete webhook"
},
"response": []
},
{
"name": "Update Webhook",
"request": {
"method": "PUT",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"webhook\": \"https://example.net/webhook\",\n \"events\": [\"Message\", \"ReadReceipt\"],\n \"active\": true\n}"
},
"url": {
"raw": "{{baseUrl}}/webhook",
"host": ["{{baseUrl}}"],
"path": ["webhook"]
},
"description": "Update webhook"
},
"response": []
}
]
},
{
"name": "Chat",
"item": [
{
"name": "Send Text Message",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Body\": \"Hello, how are you?\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/text",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "text"]
},
"description": "Send text"
},
"response": []
},
{
"name": "Send Text Message with link preview",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Body\": \"Check my site? https://example.com\",\n \"LinkPreview\": true\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/text",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "text"]
},
"description": "Send text"
},
"response": []
},
{
"name": "Send Text Message Reply",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Body\": \"This is my reply\",\n \"Id\": \"ABCDABCD1234-reply\",\n \"QuotedText\": \"Original message text\",\n \"ContextInfo\": {\n \"StanzaId\": \"ABCDABCD1234\",\n \"Participant\": \"5491155553935@s.whatsapp.net\"\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/text",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "text"]
},
"description": "Send text message as a reply with quoted text preview"
},
"response": []
},
{
"name": "Edit Message",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553934\",\n \"Id\": \"AABBCC11223344\",\n \"Body\": \"New edited message body\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/edit",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "edit"]
},
"description": "Edit an existing message"
},
"response": []
},
{
"name": "Send Image",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Image\": \"data:image/jpeg;base64,/9j/\",\n \"Caption\": \"Image\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/image",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "image"]
},
"description": "Send image"
},
"response": []
},
{
"name": "Send Audio",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Audio\": \"data:audio/ogg;base64,/9j/\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/audio",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "audio"]
},
"description": "Send audio"
},
"response": []
},
{
"name": "Send Document",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Document\": \"data:application/octet-stream;base64,/9j/\",\n \"FileName\": \"doc.pdf\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/document",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "document"]
},
"description": "Send document"
},
"response": []
},
{
"name": "Send Video",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Video\": \"data:video/mp4;base64,/9j/\",\n \"Caption\": \"Video\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/video",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "video"]
},
"description": "Send video"
},
"response": []
},
{
"name": "Send Sticker",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"PackName\": \"My Pack\",\n \"PackPublisher\": \"Wuzapi\",\n \"Emojis\": [\"😂\", \"😍\", \"👍\", \"🎉\"],\n \"Sticker\": \"data:image/webp;base64,/9j/\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/sticker",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "sticker"]
},
"description": "Send sticker"
},
"response": []
},
{
"name": "Send Location",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Name\": \"Location\",\n \"Latitude\": 48.858,\n \"Longitude\": 2.294\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/location",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "location"]
},
"description": "Send location"
},
"response": []
},
{
"name": "Send Contact",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Name\": \"John\",\n \"Vcard\": \"BEGIN:VCARD\\nVERSION:3.0\\nFN:John Doe\\nTEL:+16175551212\\nEND:VCARD\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/contact",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "contact"]
},
"description": "Send contact"
},
"response": []
},
{
"name": "Send Template",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Content\": \"Title\",\n \"Footer\": \"Footer\",\n \"Buttons\": [\n {\"DisplayText\":\"Yes\",\"Type\":\"quickreply\"}\n ]\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/template",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "template"]
},
"description": "Send template"
},
"response": []
},
{
"name": "Mark Read",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Id\": [\"AABBCC11223344\"],\n \"ChatPhone\": \"5491155553934\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/markread",
"host": ["{{baseUrl}}"],
"path": ["chat", "markread"]
},
"description": "Mark as read"
},
"response": []
},
{
"name": "React to Message",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"Body\": \"❤️\",\n \"Id\": \"me:3EB06F9067F80BAB89FF\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/react",
"host": ["{{baseUrl}}"],
"path": ["chat", "react"]
},
"description": "React to message"
},
"response": []
},
{
"name": "Send Buttons (Interactive)",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5511999999999\",\n \"Title\": \"Pagamento\",\n \"Body\": \"Escolha uma opcao\",\n \"Footer\": \"Obrigado\",\n \"Buttons\": [\n {\n \"ButtonId\": \"pix-1\",\n \"ButtonText\": \"Pagar com PIX\",\n \"PixPayment\": {\n \"MerchantName\": \"Minha Loja\",\n \"Key\": \"minha-chave-pix\",\n \"KeyType\": \"EMAIL\"\n }\n },\n {\n \"ButtonId\": \"copy-1\",\n \"ButtonText\": \"Copiar cupom\",\n \"ButtonCopy\": \"CUPOM10\"\n },\n {\n \"ButtonId\": \"call-1\",\n \"ButtonText\": \"Ligar\",\n \"ButtonUrl\": \"tel:+5511999999999\"\n },\n {\n \"ButtonId\": \"site-1\",\n \"ButtonText\": \"Abrir site\",\n \"ButtonUrl\": \"https://example.com\"\n }\n ]\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/buttons",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "buttons"]
},
"description": "Send interactive buttons (PIX/Copy/Call/URL)"
},
"response": []
},
{
"name": "Send List (Interactive)",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5511999999999\",\n \"ButtonText\": \"Ver opcoes\",\n \"Desc\": \"Escolha uma opcao\",\n \"TopText\": \"Menu principal\",\n \"Sections\": [\n {\n \"title\": \"Planos\",\n \"rows\": [\n { \"title\": \"Basico\", \"desc\": \"Plano basico\", \"RowId\": \"plano_basico\" },\n { \"title\": \"Premium\", \"desc\": \"Plano premium\", \"RowId\": \"plano_premium\" }\n ]\n }\n ],\n \"FooterText\": \"Obrigado\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/list",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "list"]
},
"description": "Send interactive list"
},
"response": []
},
{
"name": "Send Poll",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"group\": \"120363313346913103@g.us\",\n \"header\": \"Qual plano voce prefere?\",\n \"options\": [\"Basico\", \"Premium\", \"Pro\"]\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/send/poll",
"host": ["{{baseUrl}}"],
"path": ["chat", "send", "poll"]
},
"description": "Send poll to a group"
},
"response": []
},
{
"name": "Chat History",
"request": {
"method": "GET",
"header": [
{ "key": "token", "value": "{{token}}" }
],
"url": {
"raw": "{{baseUrl}}/chat/history?chat_jid=5511999999999@s.whatsapp.net",
"host": ["{{baseUrl}}"],
"path": ["chat", "history"],
"query": [
{ "key": "chat_jid", "value": "5511999999999@s.whatsapp.net" }
]
},
"description": "Get chat history (use chat_jid=index for list)"
},
"response": []
},
{
"name": "Request Unavailable Message",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"chat\": \"5511999999999@s.whatsapp.net\",\n \"sender\": \"5511999999999@s.whatsapp.net\",\n \"id\": \"ABCD1234\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/request-unavailable-message",
"host": ["{{baseUrl}}"],
"path": ["chat", "request-unavailable-message"]
},
"description": "Request a copy of a message that couldn't be decrypted"
},
"response": []
},
{
"name": "Archive Chat",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"jid\": \"5511999999999@s.whatsapp.net\",\n \"archive\": true\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/archive",
"host": ["{{baseUrl}}"],
"path": ["chat", "archive"]
},
"description": "Archive or unarchive a chat"
},
"response": []
},
{
"name": "Download Image",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Url\": \"https://mmg.whatsapp.net/d/f/abc\",\n \"DirectPath\": \"/v/t62.7118-24/abc\",\n \"MediaKey\": \"BASE64_MEDIA_KEY==\",\n \"Mimetype\": \"image/jpeg\",\n \"FileEncSHA256\": \"BASE64_FILE_ENC_SHA256==\",\n \"FileSHA256\": \"BASE64_FILE_SHA256==\",\n \"FileLength\": 12345\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/downloadimage",
"host": ["{{baseUrl}}"],
"path": ["chat", "downloadimage"]
},
"description": "Download image and return base64"
},
"response": []
},
{
"name": "Download Audio",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Url\": \"https://mmg.whatsapp.net/d/f/abc\",\n \"DirectPath\": \"/v/t62.7118-24/abc\",\n \"MediaKey\": \"BASE64_MEDIA_KEY==\",\n \"Mimetype\": \"audio/ogg\",\n \"FileEncSHA256\": \"BASE64_FILE_ENC_SHA256==\",\n \"FileSHA256\": \"BASE64_FILE_SHA256==\",\n \"FileLength\": 12345\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/downloadaudio",
"host": ["{{baseUrl}}"],
"path": ["chat", "downloadaudio"]
},
"description": "Download audio and return base64"
},
"response": []
},
{
"name": "Download Document",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Url\": \"https://mmg.whatsapp.net/d/f/abc\",\n \"DirectPath\": \"/v/t62.7118-24/abc\",\n \"MediaKey\": \"BASE64_MEDIA_KEY==\",\n \"Mimetype\": \"application/pdf\",\n \"FileEncSHA256\": \"BASE64_FILE_ENC_SHA256==\",\n \"FileSHA256\": \"BASE64_FILE_SHA256==\",\n \"FileLength\": 12345\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/downloaddocument",
"host": ["{{baseUrl}}"],
"path": ["chat", "downloaddocument"]
},
"description": "Download document and return base64"
},
"response": []
},
{
"name": "Download Video",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Url\": \"https://mmg.whatsapp.net/d/f/abc\",\n \"DirectPath\": \"/v/t62.7118-24/abc\",\n \"MediaKey\": \"BASE64_MEDIA_KEY==\",\n \"Mimetype\": \"video/mp4\",\n \"FileEncSHA256\": \"BASE64_FILE_ENC_SHA256==\",\n \"FileSHA256\": \"BASE64_FILE_SHA256==\",\n \"FileLength\": 12345\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/downloadvideo",
"host": ["{{baseUrl}}"],
"path": ["chat", "downloadvideo"]
},
"description": "Download video and return base64"
},
"response": []
},
{
"name": "Download Sticker",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Url\": \"https://mmg.whatsapp.net/d/f/abc\",\n \"DirectPath\": \"/v/t62.7118-24/abc\",\n \"MediaKey\": \"BASE64_MEDIA_KEY==\",\n \"Mimetype\": \"image/webp\",\n \"FileEncSHA256\": \"BASE64_FILE_ENC_SHA256==\",\n \"FileSHA256\": \"BASE64_FILE_SHA256==\",\n \"FileLength\": 12345\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/downloadsticker",
"host": ["{{baseUrl}}"],
"path": ["chat", "downloadsticker"]
},
"description": "Download sticker and return base64"
},
"response": []
},
{
"name": "Chat Presence",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553935\",\n \"State\": \"composing\"\n}"
},
"url": {
"raw": "{{baseUrl}}/chat/presence",
"host": ["{{baseUrl}}"],
"path": ["chat", "presence"]
},
"description": "Set presence"
},
"response": []
},
{
"name": "Delete Message",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553934\",\n \"Id\": \"AABBCC11223344\"}"
},
"url": {
"raw": "{{baseUrl}}/chat/delete",
"host": ["{{baseUrl}}"],
"path": ["chat", "delete"]
},
"description": "Delete a message from a chat."
},
"response": []
}
]
},
{
"name": "Status",
"item": [
{
"name": "Set Status Text",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Body\": \"Status atualizado\"\n}"
},
"url": {
"raw": "{{baseUrl}}/status/set/text",
"host": ["{{baseUrl}}"],
"path": ["status", "set", "text"]
},
"description": "Set status text message"
},
"response": []
}
]
},
{
"name": "Call",
"item": [
{
"name": "Reject Call",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"call_from\": \"5511999999999\",\n \"call_id\": \"CALL_ID_EXAMPLE\"\n}"
},
"url": {
"raw": "{{baseUrl}}/call/reject",
"host": ["{{baseUrl}}"],
"path": ["call", "reject"]
},
"description": "Reject an incoming call"
},
"response": []
}
]
},
{
"name": "User",
"item": [
{
"name": "Check Users",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": [\"5491155553934\", \"5491155553935\"]\n}"
},
"url": {
"raw": "{{baseUrl}}/user/check",
"host": ["{{baseUrl}}"],
"path": ["user", "check"]
},
"description": "Check users"
},
"response": []
},
{
"name": "Get User Info",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": [\"5491155553934\", \"5491155553935\"]\n}"
},
"url": {
"raw": "{{baseUrl}}/user/info",
"host": ["{{baseUrl}}"],
"path": ["user", "info"]
},
"description": "Get user information"
},
"response": []
},
{
"name": "User Presence",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"available\"\n}"
},
"url": {
"raw": "{{baseUrl}}/user/presence",
"host": ["{{baseUrl}}"],
"path": ["user", "presence"]
},
"description": "Global presence"
},
"response": []
},
{
"name": "Get User Avatar",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Phone\": \"5491155553934\",\n \"Preview\": true\n}"
},
"url": {
"raw": "{{baseUrl}}/user/avatar",
"host": ["{{baseUrl}}"],
"path": ["user", "avatar"]
},
"description": "Get avatar"
},
"response": []
},
{
"name": "Get User Contacts",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/user/contacts",
"host": ["{{baseUrl}}"],
"path": ["user", "contacts"]
},
"description": "List contacts"
},
"response": []
},
{
"name": "Get User LID",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/user/lid/5511999999999",
"host": ["{{baseUrl}}"],
"path": ["user", "lid", "5511999999999"]
},
"description": "Get LID from phone/JID"
},
"response": []
}
]
},
{
"name": "Group",
"item": [
{
"name": "Create Group",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"Name\": \"My New Group\",\n \"Participants\": [\"5491155553934\", \"5491155553935\"]\n}"
},
"url": {
"raw": "{{baseUrl}}/group/create",
"host": ["{{baseUrl}}"],
"path": ["group", "create"]
},
"description": "Create a new WhatsApp group with specified name and participants"
},
"response": []
},
{
"name": "Set Group Locked",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"GroupJID\": \"120362023605733675@g.us\",\n \"Locked\": true\n}"
},
"url": {
"raw": "{{baseUrl}}/group/locked",
"host": ["{{baseUrl}}"],
"path": ["group", "locked"]
},
"description": "Configure group as locked (only admins can alter info) or unlocked"
},
"response": []
},
{
"name": "Set Disappearing Timer",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"GroupJID\": \"120362023605733675@g.us\",\n \"Duration\": \"24h\"\n}"
},
"url": {
"raw": "{{baseUrl}}/group/ephemeral",
"host": ["{{baseUrl}}"],
"path": ["group", "ephemeral"]
},
"description": "Configure disappearing messages. Use '24h', '7d', '90d', or 'off'"
},
"response": []
},
{
"name": "Remove Group Photo",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"GroupJID\": \"120362023605733675@g.us\"\n}"
},
"url": {
"raw": "{{baseUrl}}/group/photo/remove",
"host": ["{{baseUrl}}"],
"path": ["group", "photo", "remove"]
},
"description": "Remove the current photo from a WhatsApp group"
},
"response": []
},
{
"name": "Leave Group",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"GroupJID\": \"120362023605733675@g.us\"\n}"
},
"url": {
"raw": "{{baseUrl}}/group/leave",
"host": ["{{baseUrl}}"],
"path": ["group", "leave"]
},
"description": "Leave a group"
},
"response": []
},
{
"name": "List Groups",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/group/list",
"host": ["{{baseUrl}}"],
"path": ["group", "list"]
},
"description": "List groups"
},
"response": []
},
{
"name": "Get Group Info",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/group/info?groupJID=120362023605733675@g.us",
"host": ["{{baseUrl}}"],
"path": ["group", "info"],
"query": [
{
"key": "groupJID",
"value": "120362023605733675@g.us"
}
]
},
"description": "Get group information"
},
"response": []
},
{
"name": "Get Group Invite Link",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/group/invitelink?groupJID=120362023605733675@g.us&reset=false",
"host": ["{{baseUrl}}"],
"path": ["group", "invitelink"],
"query": [
{
"key": "groupJID",
"value": "120362023605733675@g.us"
},
{
"key": "reset",
"value": "false"
}
]
},
"description": "Get invite link"
},
"response": []
},
{
"name": "Change Group Name",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"GroupJID\": \"120362023605733675@g.us\",\n \"Name\": \"New Name\"\n}"
},
"url": {
"raw": "{{baseUrl}}/group/name",
"host": ["{{baseUrl}}"],
"path": ["group", "name"]
},
"description": "Change name"
},
"response": []
},
{
"name": "Change Group Photo",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"GroupJID\": \"120362023605733675@g.us\",\n \"Image\": \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD...\"\n}"
},
"url": {
"raw": "{{baseUrl}}/group/photo",
"host": ["{{baseUrl}}"],
"path": ["group", "photo"]
},
"description": "Change photo"
},
"response": []
},
{
"name": "Set Group Topic",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"GroupJID\": \"120362023605733675@g.us\",\n \"Topic\": \"New group topic here\"\n}"
},
"url": {
"raw": "{{baseUrl}}/group/topic",
"host": ["{{baseUrl}}"],
"path": ["group", "topic"]
},
"description": "Change the group topic/description"
},
"response": []
},
{
"name": "Set Group Announce",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"GroupJID\": \"120362023605733675@g.us\",\n \"Announce\": true\n}"
},
"url": {
"raw": "{{baseUrl}}/group/announce",
"host": ["{{baseUrl}}"],
"path": ["group", "announce"]
},
"description": "Set group to announcement-only (admins only can send messages)"
},
"response": []
},
{
"name": "Group Join",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"InviteCode\": \"AbCdEfGhIjKlMnOp\"\n}"
},
"url": {
"raw": "{{baseUrl}}/group/join",
"host": ["{{baseUrl}}"],
"path": ["group", "join"]
},
"description": "Join a group using an invite code"
},
"response": []
},
{
"name": "Get Group Invite Info",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"InviteCode\": \"AbCdEfGhIjKlMnOp\"\n}"
},
"url": {
"raw": "{{baseUrl}}/group/inviteinfo",
"host": ["{{baseUrl}}"],
"path": ["group", "inviteinfo"]
},
"description": "Get info about a group invite code"
},
"response": []
},
{
"name": "Update Group Participants",
"request": {
"method": "POST",
"header": [
{ "key": "token", "value": "{{token}}" },
{ "key": "Content-Type", "value": "application/json" }
],
"body": {
"mode": "raw",
"raw": "{\n \"GroupJID\": \"120362023605733675@g.us\",\n \"Action\": \"add\",\n \"Phone\": [\"5491155553934@s.whatsapp.net\", \"5491155553935@s.whatsapp.net\"]\n}"
},
"url": {
"raw": "{{baseUrl}}/group/updateparticipants",
"host": ["{{baseUrl}}"],
"path": ["group", "updateparticipants"]
},
"description": "Add, remove, promote or demote participants from a group. Action can be 'add', 'remove', 'promote','demote'."
},
"response": []
}
]
},
{
"name": "Newsletter",
"item": [
{
"name": "List Newsletters",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}"
}
],
"url": {
"raw": "{{baseUrl}}/newsletter/list",
"host": ["{{baseUrl}}"],
"path": ["newsletter", "list"]
},
"description": "List newsletters"
},
"response": []
}
]
}
],
"variable": [
{
"key": "baseUrl",
"value": "http://localhost:8080"
},
{
"key": "token",
"value": "your_token_here"
},
{
"key": "admin_token",
"value": "admin_token_here"
}
]
}