{
  "info": {
    "name": "waboom API",
    "description": "WhatsApp middleware — send messages, manage instances, webhooks. Set the collection variables baseUrl, token and instanceId. Auth is Bearer {{token}} (org API key or instance token).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{token}}", "type": "string" }] },
  "variable": [
    { "key": "baseUrl", "value": "https://api.waboom.it" },
    { "key": "token", "value": "wbo_your_org_api_key_or_instance_token" },
    { "key": "instanceId", "value": "your-instance-id" }
  ],
  "item": [
    {
      "name": "Instances",
      "item": [
        { "name": "Create instance (admin)", "request": { "method": "POST", "header": [{ "key": "Content-Type", "value": "application/json" }], "url": "{{baseUrl}}/instances", "body": { "mode": "raw", "raw": "{\n  \"name\": \"my-number\"\n}" } } },
        { "name": "Get status", "request": { "method": "GET", "url": "{{baseUrl}}/instances/{{instanceId}}/status" } },
        { "name": "Get QR", "request": { "method": "GET", "url": "{{baseUrl}}/instances/{{instanceId}}/qr" } },
        { "name": "Pair by phone code", "request": { "method": "POST", "header": [{ "key": "Content-Type", "value": "application/json" }], "url": "{{baseUrl}}/instances/{{instanceId}}/pair", "body": { "mode": "raw", "raw": "{\n  \"phone\": \"393331234567\"\n}" } } },
        { "name": "Logout", "request": { "method": "POST", "url": "{{baseUrl}}/instances/{{instanceId}}/logout" } }
      ]
    },
    {
      "name": "Messaging",
      "item": [
        { "name": "Send text", "request": { "method": "POST", "header": [{ "key": "Content-Type", "value": "application/json" }], "url": "{{baseUrl}}/instances/{{instanceId}}/send/text", "body": { "mode": "raw", "raw": "{\n  \"jid\": \"393331234567@s.whatsapp.net\",\n  \"text\": \"Ciao da waboom\"\n}" } } },
        { "name": "Send media", "request": { "method": "POST", "header": [{ "key": "Content-Type", "value": "application/json" }], "url": "{{baseUrl}}/instances/{{instanceId}}/send/media", "body": { "mode": "raw", "raw": "{\n  \"jid\": \"393331234567@s.whatsapp.net\",\n  \"type\": \"image\",\n  \"base64\": \"<base64>\",\n  \"caption\": \"hello\"\n}" } } },
        { "name": "Send location", "request": { "method": "POST", "header": [{ "key": "Content-Type", "value": "application/json" }], "url": "{{baseUrl}}/instances/{{instanceId}}/send/location", "body": { "mode": "raw", "raw": "{\n  \"jid\": \"393331234567@s.whatsapp.net\",\n  \"latitude\": 41.11,\n  \"longitude\": 16.87,\n  \"name\": \"Bari\"\n}" } } },
        { "name": "React to message", "request": { "method": "POST", "header": [{ "key": "Content-Type", "value": "application/json" }], "url": "{{baseUrl}}/instances/{{instanceId}}/messages/393331234567@s.whatsapp.net/MSGID/react", "body": { "mode": "raw", "raw": "{\n  \"emoji\": \"👍\"\n}" } } },
        { "name": "Delete message", "request": { "method": "DELETE", "url": "{{baseUrl}}/instances/{{instanceId}}/messages/393331234567@s.whatsapp.net/MSGID" } },
        { "name": "Mark read", "request": { "method": "POST", "header": [{ "key": "Content-Type", "value": "application/json" }], "url": "{{baseUrl}}/instances/{{instanceId}}/chats/393331234567@s.whatsapp.net/read", "body": { "mode": "raw", "raw": "{\n  \"messageIds\": [\"MSGID\"]\n}" } } },
        { "name": "Typing indicator", "request": { "method": "POST", "header": [{ "key": "Content-Type", "value": "application/json" }], "url": "{{baseUrl}}/instances/{{instanceId}}/chats/393331234567@s.whatsapp.net/typing", "body": { "mode": "raw", "raw": "{\n  \"state\": \"composing\"\n}" } } },
        { "name": "Check numbers", "request": { "method": "POST", "header": [{ "key": "Content-Type", "value": "application/json" }], "url": "{{baseUrl}}/instances/{{instanceId}}/check", "body": { "mode": "raw", "raw": "{\n  \"numbers\": [\"393331234567\", \"393339999999\"]\n}" } } }
      ]
    },
    {
      "name": "Chats & contacts",
      "item": [
        { "name": "List chats", "request": { "method": "GET", "url": "{{baseUrl}}/instances/{{instanceId}}/chats" } },
        { "name": "Get chat messages", "request": { "method": "GET", "url": "{{baseUrl}}/instances/{{instanceId}}/chats/393331234567@s.whatsapp.net/messages?limit=50" } },
        { "name": "Download media", "request": { "method": "GET", "url": "{{baseUrl}}/instances/{{instanceId}}/messages/393331234567@s.whatsapp.net/MSGID/media" } },
        { "name": "List contacts", "request": { "method": "GET", "url": "{{baseUrl}}/instances/{{instanceId}}/contacts" } },
        { "name": "List groups", "request": { "method": "GET", "url": "{{baseUrl}}/instances/{{instanceId}}/groups" } }
      ]
    },
    {
      "name": "Webhook",
      "item": [
        { "name": "Get webhook", "request": { "method": "GET", "url": "{{baseUrl}}/instances/{{instanceId}}/webhook" } },
        { "name": "Set webhook", "request": { "method": "PUT", "header": [{ "key": "Content-Type", "value": "application/json" }], "url": "{{baseUrl}}/instances/{{instanceId}}/webhook", "body": { "mode": "raw", "raw": "{\n  \"url\": \"https://example.com/hook\",\n  \"events\": [\"*\"],\n  \"headers\": { \"Authorization\": \"Bearer my-receiver-token\" }\n}" } } }
      ]
    }
  ]
}
