{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/wp.hypweb.in"
        }
    ],
    "info": {
        "name": "WaSaaS API",
        "_postman_id": "797bf33f-4359-4ee2-85c5-d3ed607a68b2",
        "description": "REST API for WaSaaS -- self-hosted WhatsApp messaging platform. All endpoints require an Authorization: Bearer <key> header unless marked as public.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json",
        "version": "2.1.0"
    },
    "item": [
        {
            "name": "Auth",
            "description": "",
            "item": [
                {
                    "name": "Register a new customer account.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/auth\/register",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/auth\/register"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"b\",\"email\":\"zbailey@example.net\",\"password\":\"-0pBNvYgxw\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"message\":\"Registration successful.\",\"api_key\":\"wac_live_...\",\"user\":{\"id\":1,\"name\":\"Vinayak\",\"email\":\"v@example.com\",\"api_key_prefix\":\"wac_\"}}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"message\":\"The email has already been taken.\",\"errors\":{\"email\":[\"The email has already been taken.\"]}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Log in and receive an API key.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/auth\/login",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/auth\/login"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"email\":\"gbailey@example.net\",\"password\":\"|]|{+-\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"message\":\"Login successful.\",\"api_key_prefix\":\"wac_\",\"user\":{\"id\":1,\"name\":\"Vinayak\",\"email\":\"v@example.com\"}}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\"error\":\"Invalid credentials.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Regenerate your API key. The old key is immediately invalidated.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/auth\/regenerate-key",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/auth\/regenerate-key"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"message\":\"API key regenerated.\",\"api_key\":\"wac_live_newkey...\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get the authenticated user's profile and plan.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/auth\/me",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/auth\/me"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"name\":\"Vinayak\",\"email\":\"v@example.com\",\"plan\":{\"id\":2,\"name\":\"Pro\",\"max_devices\":10}}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Devices",
            "description": "",
            "item": [
                {
                    "name": "List all devices.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[{\"id\":1,\"label\":\"My Number\",\"phone_number\":\"919876543210\",\"is_connected\":true,\"driver\":\"baileys\"}]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a new device.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"label\":\"b\",\"webhook_url\":\"http:\\\/\\\/bailey.com\\\/\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"label\":\"My Number\",\"session_ref\":\"dev_abc123\",\"is_connected\":false}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"error\":\"Device limit reached for your plan.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a device. Disconnects the WhatsApp session.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 100,
                                    "description": "The ID of the device."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": "{}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get a QR code to link a WhatsApp number.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices\/:device_id\/qr",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices\/:device_id\/qr",
                            "variable": [
                                {
                                    "id": "device_id",
                                    "key": "device_id",
                                    "value": 100,
                                    "description": "The ID of the device."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Scan the returned QR with WhatsApp on your phone under Linked Devices.\nPoll every 3 seconds until status changes to connected."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"qr\":\"data:image\/png;base64,...\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 202,
                            "body": "{\"message\":\"QR not ready. Retry in 3 seconds.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Check a device's connection status.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices\/:device_id\/status",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices\/:device_id\/status",
                            "variable": [
                                {
                                    "id": "device_id",
                                    "key": "device_id",
                                    "value": 100,
                                    "description": "The ID of the device."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"status\":\"CONNECTED\",\"connected\":true}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Trigger a reconnection attempt for a disconnected device.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices\/:device_id\/reconnect",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices\/:device_id\/reconnect",
                            "variable": [
                                {
                                    "id": "device_id",
                                    "key": "device_id",
                                    "value": 100,
                                    "description": "The ID of the device."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 202,
                            "body": "{\"message\":\"Reconnect initiated. Retry QR in 3 seconds.\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Templates",
            "description": "",
            "item": [
                {
                    "name": "List message templates.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/templates",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/templates"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[{\"id\":1,\"name\":\"Welcome\",\"message_type\":\"text\",\"is_active\":true}]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a message template.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/templates",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/templates"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Welcome\",\"message_type\":\"text\",\"body\":{\"text\":\"Hello {{name}}!\"},\"is_active\":true}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"name\":\"Welcome\",\"message_type\":\"text\",\"is_active\":true}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get a single template.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/templates\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/templates\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 48,
                                    "description": "The ID of the template."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"name\":\"Welcome\",\"message_type\":\"text\",\"body\":{\"text\":\"Hello!\"},\"is_active\":true}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a template.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/templates\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/templates\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 48,
                                    "description": "The ID of the template."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"b\",\"message_type\":\"media\",\"is_active\":false}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"name\":\"Updated Name\",\"message_type\":\"text\",\"is_active\":true}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a template.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/templates\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/templates\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 48,
                                    "description": "The ID of the template."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": "{}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Contacts",
            "description": "",
            "item": [
                {
                    "name": "List contacts.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/contacts",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/contacts"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"name\":\"Vinayak\",\"phone\":\"919876543210\",\"email\":\"v@example.com\"}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a contact.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/contacts",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/contacts"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Vinayak\",\"phone\":\"919876543210\",\"email\":\"v@example.com\",\"company\":\"v\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"phone\":\"919876543210\",\"name\":\"Vinayak\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"error\":\"Contact limit reached for your plan.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get a single contact.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/contacts\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/contacts\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 14,
                                    "description": "The ID of the contact."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"phone\":\"919876543210\",\"name\":\"Vinayak\",\"email\":\"v@example.com\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a contact.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/contacts\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/contacts\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 14,
                                    "description": "The ID of the contact."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"b\",\"phone\":\"n\",\"email\":\"ashly64@example.com\",\"company\":\"v\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"phone\":\"919876543210\",\"name\":\"Updated Name\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a contact.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/contacts\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/contacts\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 14,
                                    "description": "The ID of the contact."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": "{}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Bulk import contacts from a JSON array.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/contacts\/import",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/contacts\/import"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"contacts\":[{\"phone\":\"919876543210\",\"name\":\"Vinayak\",\"email\":\"ashly64@example.com\"}]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"message\":\"Import complete. Created: 47, Skipped (duplicate): 3.\",\"created\":47,\"skipped\":3}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"error\":\"Contact limit reached for your plan.\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Groups",
            "description": "",
            "item": [
                {
                    "name": "List contact groups.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/groups",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/groups"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[{\"id\":1,\"name\":\"VIP Customers\",\"contacts_count\":120}]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a contact group.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/groups",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/groups"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"VIP Customers\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"name\":\"VIP Customers\",\"contacts_count\":0}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get a group with its contacts.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/groups\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/groups\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 16,
                                    "description": "The ID of the group."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"name\":\"VIP Customers\",\"contacts\":[{\"id\":1,\"phone\":\"919876543210\",\"name\":\"Vinayak\"}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a group name.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/groups\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/groups\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 16,
                                    "description": "The ID of the group."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Premium Members\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"name\":\"Premium Members\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a group.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/groups\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/groups\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 16,
                                    "description": "The ID of the group."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": "{}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Add contacts to a group.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/groups\/:group_id\/contacts",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/groups\/:group_id\/contacts",
                            "variable": [
                                {
                                    "id": "group_id",
                                    "key": "group_id",
                                    "value": 16,
                                    "description": "The ID of the group."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"contact_ids\":[1,2,3]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"message\":\"Contacts added.\",\"count\":3}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Remove a contact from a group.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/groups\/:group_id\/contacts\/:contact_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/groups\/:group_id\/contacts\/:contact_id",
                            "variable": [
                                {
                                    "id": "group_id",
                                    "key": "group_id",
                                    "value": 16,
                                    "description": "The ID of the group."
                                },
                                {
                                    "id": "contact_id",
                                    "key": "contact_id",
                                    "value": 14,
                                    "description": "The ID of the contact."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": "{}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Messages",
            "description": "",
            "item": [
                {
                    "name": "Send a single WhatsApp message immediately.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/messages\/send",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/messages\/send"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"device_id\":16,\"template_id\":16,\"phone\":\"n\"}"
                        },
                        "description": "Supports text, media, location, contact card, button, and menu types.\nThe device must be connected."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\":true,\"message_log_id\":42}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"error\":\"Daily message limit reached for your plan.\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"error\":\"Device is not connected.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List outbound and inbound message logs.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/messages",
                            "query": [
                                {
                                    "key": "direction",
                                    "value": "outbound",
                                    "description": "Filter by direction: outbound or inbound.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "sent",
                                    "description": "Filter by status: sent, failed, received.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/messages?direction=outbound&status=sent"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"phone_number\":\"919876543210\",\"message_type\":\"text\",\"status\":\"sent\",\"sent_at\":\"2026-06-30T10:00:00Z\"}],\"total\":42}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Campaigns",
            "description": "",
            "item": [
                {
                    "name": "List campaigns.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/campaigns",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/campaigns"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"title\":\"June Blast\",\"status\":\"completed\",\"total_count\":500,\"sent_count\":498,\"failed_count\":2}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a campaign.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/campaigns",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/campaigns"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"June Blast\",\"device_id\":1,\"template_id\":3,\"delay_seconds\":10,\"scheduled_at\":\"2026-07-01T09:00:00Z\",\"group_id\":2,\"phones\":[\"919876543210\"]}"
                        },
                        "description": "Provide either `group_id` or a `phones` array (or both)."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"title\":\"June Blast\",\"status\":\"draft\",\"total_count\":500}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"error\":\"Campaign limit reached for your plan.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get a campaign with its template, device, and recipient summary.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/campaigns\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/campaigns\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 29,
                                    "description": "The ID of the campaign."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"title\":\"June Blast\",\"status\":\"completed\",\"sent_count\":498,\"failed_count\":2,\"template\":{\"name\":\"Welcome\"},\"device\":{\"label\":\"My Number\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Launch a draft campaign. Transitions status from draft to queued.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/campaigns\/:campaign_id\/launch",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/campaigns\/:campaign_id\/launch",
                            "variable": [
                                {
                                    "id": "campaign_id",
                                    "key": "campaign_id",
                                    "value": 29,
                                    "description": "The ID of the campaign."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"message\":\"Campaign queued.\",\"campaign\":{\"status\":\"queued\"}}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"error\":\"Cannot launch a campaign with status 'completed'.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Cancel a draft or queued campaign.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/campaigns\/:campaign_id\/cancel",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/campaigns\/:campaign_id\/cancel",
                            "variable": [
                                {
                                    "id": "campaign_id",
                                    "key": "campaign_id",
                                    "value": 29,
                                    "description": "The ID of the campaign."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"status\":\"cancelled\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"error\":\"Cannot cancel a campaign with status 'completed'.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List recipients for a campaign with their delivery status.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/campaigns\/:campaign_id\/recipients",
                            "query": [
                                {
                                    "key": "status",
                                    "value": "failed",
                                    "description": "Filter by status: pending, sent, failed.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/campaigns\/:campaign_id\/recipients?status=failed",
                            "variable": [
                                {
                                    "id": "campaign_id",
                                    "key": "campaign_id",
                                    "value": 29,
                                    "description": "The ID of the campaign."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"phone\":\"919876543210\",\"status\":\"sent\",\"sent_at\":\"2026-06-30T10:00:00Z\"}]}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Scheduled Messages",
            "description": "",
            "item": [
                {
                    "name": "List scheduled messages.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/scheduled-messages",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/scheduled-messages"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"phone\":\"919876543210\",\"message_type\":\"text\",\"status\":\"pending\",\"scheduled_for\":\"2026-07-01T09:00:00Z\"}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Schedule a single message for future delivery.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/scheduled-messages",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/scheduled-messages"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"device_id\":1,\"phone\":\"919876543210\",\"template_id\":3,\"message_type\":\"text\",\"payload\":{\"text\":\"Hello!\"},\"variables\":{\"name\":\"Vinayak\"},\"scheduled_for\":\"2026-07-01T09:00:00Z\"}"
                        },
                        "description": "Provide either `template_id` or `message_type` + `payload` for an inline message."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"status\":\"pending\",\"scheduled_for\":\"2026-07-01T09:00:00Z\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Cancel a pending scheduled message.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/scheduled-messages\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/scheduled-messages\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the scheduled message."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\":true}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"error\":\"Only pending messages can be cancelled.\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Chatbot Rules",
            "description": "",
            "item": [
                {
                    "name": "List chatbot rules across all devices.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/chatbot-rules",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/chatbot-rules"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[{\"id\":1,\"keyword\":\"hello\",\"match_type\":\"contains\",\"reply_type\":\"text\",\"is_active\":true}]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a chatbot rule.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/chatbot-rules",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/chatbot-rules"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"device_id\":1,\"keyword\":\"hello\",\"match_type\":\"contains\",\"reply_type\":\"text\",\"reply_body\":{\"text\":\"Hi there!\"},\"is_active\":true}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"keyword\":\"hello\",\"match_type\":\"contains\",\"reply_type\":\"text\",\"is_active\":true}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get a single chatbot rule.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/chatbot-rules\/:rule_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/chatbot-rules\/:rule_id",
                            "variable": [
                                {
                                    "id": "rule_id",
                                    "key": "rule_id",
                                    "value": 16,
                                    "description": "The ID of the rule."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"keyword\":\"hello\",\"match_type\":\"contains\",\"reply_type\":\"text\",\"reply_body\":{\"text\":\"Hi!\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a chatbot rule.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/chatbot-rules\/:rule_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/chatbot-rules\/:rule_id",
                            "variable": [
                                {
                                    "id": "rule_id",
                                    "key": "rule_id",
                                    "value": 16,
                                    "description": "The ID of the rule."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"keyword\":\"b\",\"match_type\":\"exact\",\"reply_type\":\"text\",\"is_active\":false}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"keyword\":\"hi\",\"match_type\":\"exact\",\"reply_type\":\"text\",\"is_active\":false}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a chatbot rule.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/chatbot-rules\/:rule_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/chatbot-rules\/:rule_id",
                            "variable": [
                                {
                                    "id": "rule_id",
                                    "key": "rule_id",
                                    "value": 16,
                                    "description": "The ID of the rule."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": "{}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Flows",
            "description": "",
            "item": [
                {
                    "name": "Get execution logs for a flow.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/flows\/:id\/logs",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/flows\/:id\/logs",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the flow."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"contact_phone\":\"919876543210\",\"status\":\"completed\",\"triggered_at\":\"2026-06-30T10:00:00Z\"}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Toggle a flow active\/inactive.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/flows\/:id\/toggle",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/flows\/:id\/toggle",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the flow."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"is_active\":false}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List automation flows.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/flows",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/flows"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[{\"id\":1,\"name\":\"Welcome flow\",\"trigger_type\":\"keyword\",\"is_active\":true}]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a flow.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/flows",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/flows"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"device_id\":1,\"name\":\"Welcome flow\",\"trigger_type\":\"keyword\",\"trigger_config\":{\"keyword\":\"hello\",\"match_type\":\"contains\"},\"nodes\":[[]],\"edges\":[[]]}"
                        },
                        "description": "Nodes and edges follow the React Flow JSON schema."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"name\":\"Welcome flow\",\"trigger_type\":\"keyword\",\"is_active\":true}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Blacklist",
            "description": "",
            "item": [
                {
                    "name": "List blacklisted numbers.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/blacklist",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/blacklist"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"phone\":\"919876543210\",\"reason\":\"Replied STOP\",\"source\":\"opt_out\"}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Add a number to the blacklist.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/blacklist",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/blacklist"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"phone\":\"919876543210\",\"reason\":\"Customer requested removal\"}"
                        },
                        "description": "Numbers on the blacklist are skipped in all campaign sends."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"phone\":\"919876543210\",\"source\":\"manual\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Remove a number from the blacklist.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/blacklist\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/blacklist\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the blacklist."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\":true}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Inbound Events",
            "description": "",
            "item": [
                {
                    "name": "List inbound events received by your devices.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/inbound-events",
                            "query": [
                                {
                                    "key": "device_id",
                                    "value": "1",
                                    "description": "Filter by device.",
                                    "disabled": false
                                },
                                {
                                    "key": "event_type",
                                    "value": "message_received",
                                    "description": "Filter by type, e.g. message_received.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/inbound-events?device_id=1&event_type=message_received"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"event_type\":\"message_received\",\"from\":\"919876543210\",\"payload\":{\"text\":\"Hello\"},\"created_at\":\"2026-06-30T10:00:00Z\"}]}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Support",
            "description": "",
            "item": [
                {
                    "name": "List support tickets.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/support\/tickets",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/support\/tickets"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"ticket_no\":\"TKT-ABCD1234\",\"subject\":\"Need help\",\"status\":\"open\",\"priority\":\"medium\"}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Open a new support ticket.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/support\/tickets",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/support\/tickets"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"subject\":\"Cannot connect device\",\"priority\":\"high\",\"body\":\"My device shows disconnected.\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"ticket_no\":\"TKT-ABCD1234\",\"subject\":\"Cannot connect device\",\"status\":\"open\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get a ticket with its message thread.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/support\/tickets\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/support\/tickets\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 16,
                                    "description": "The ID of the ticket."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"ticket_no\":\"TKT-ABCD1234\",\"subject\":\"Cannot connect device\",\"messages\":[{\"body\":\"My device shows disconnected.\",\"is_staff\":false}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a ticket's status.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/support\/tickets\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/support\/tickets\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 16,
                                    "description": "The ID of the ticket."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"status\":\"closed\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":1,\"status\":\"closed\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Close and delete a support ticket.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/support\/tickets\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/support\/tickets\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 16,
                                    "description": "The ID of the ticket."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": "{}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Billing",
            "description": "",
            "item": [
                {
                    "name": "List available plans.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/plans",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/plans"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[{\"id\":1,\"name\":\"Starter\",\"price\":\"9.00\",\"max_devices\":3,\"max_contacts\":1000}]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a billing order for a plan upgrade.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/billing\/orders",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/billing\/orders"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"plan_id\":2,\"gateway_id\":1}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"id\":1,\"invoice_no\":\"INV-XXXXXXXXXX\",\"amount\":\"9.00\",\"status\":\"pending\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List billing orders.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/billing\/orders",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/billing\/orders"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"invoice_no\":\"INV-XXXXXXXXXX\",\"amount\":\"9.00\",\"status\":\"completed\",\"created_at\":\"2026-06-30\"}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get current plan quota usage.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/billing\/quota",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/billing\/quota"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"devices\":{\"used\":2,\"max\":10},\"contacts\":{\"used\":450,\"max\":10000},\"messages_today\":{\"used\":120,\"max\":10000},\"active_campaigns\":{\"used\":1,\"max\":50}}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "GET api\/flows\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/flows\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/flows\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the flow."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"error\":\"Invalid API key.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "PUT api\/flows\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/flows\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/flows\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the flow."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "DELETE api\/flows\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/flows\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/flows\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the flow."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "GET api\/devices\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 100,
                                    "description": "The ID of the device."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"error\":\"Invalid API key.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "PUT api\/devices\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 100,
                                    "description": "The ID of the device."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"label\":\"b\",\"webhook_url\":\"http:\\\/\\\/bailey.com\\\/\"}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "PUT api\/campaigns\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/campaigns\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/campaigns\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 29,
                                    "description": "The ID of the campaign."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"b\",\"delay_seconds\":22,\"scheduled_at\":\"2052-07-23\"}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "DELETE api\/campaigns\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/campaigns\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/campaigns\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 29,
                                    "description": "The ID of the campaign."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "GET api\/support\/tickets\/{ticketId}\/messages",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/support\/tickets\/:ticketId\/messages",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/support\/tickets\/:ticketId\/messages",
                            "variable": [
                                {
                                    "id": "ticketId",
                                    "key": "ticketId",
                                    "value": "architecto",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"error\":\"Invalid API key.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/support\/tickets\/{ticketId}\/messages",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/support\/tickets\/:ticketId\/messages",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/support\/tickets\/:ticketId\/messages",
                            "variable": [
                                {
                                    "id": "ticketId",
                                    "key": "ticketId",
                                    "value": "architecto",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"body\":\"b\"}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "GET api\/devices\/{deviceId}\/groups",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices\/:deviceId\/groups",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices\/:deviceId\/groups",
                            "variable": [
                                {
                                    "id": "deviceId",
                                    "key": "deviceId",
                                    "value": 100,
                                    "description": ""
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"error\":\"Invalid API key.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/devices\/{deviceId}\/groups\/{groupId}\/send-text",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices\/:deviceId\/groups\/:groupId\/send-text",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices\/:deviceId\/groups\/:groupId\/send-text",
                            "variable": [
                                {
                                    "id": "deviceId",
                                    "key": "deviceId",
                                    "value": 100,
                                    "description": ""
                                },
                                {
                                    "id": "groupId",
                                    "key": "groupId",
                                    "value": 16,
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"body\":\"architecto\"}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "POST api\/devices\/{deviceId}\/groups\/{groupId}\/send-media",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/devices\/:deviceId\/groups\/:groupId\/send-media",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/devices\/:deviceId\/groups\/:groupId\/send-media",
                            "variable": [
                                {
                                    "id": "deviceId",
                                    "key": "deviceId",
                                    "value": 100,
                                    "description": ""
                                },
                                {
                                    "id": "groupId",
                                    "key": "groupId",
                                    "value": 16,
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"media_url\":\"http:\\\/\\\/www.bailey.biz\\\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html\",\"type\":\"video\",\"caption\":\"architecto\"}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "POST api\/billing\/checkout",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/billing\/checkout",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/billing\/checkout"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"plan_id\":16,\"gateway_id\":16}"
                        },
                        "description": ""
                    },
                    "response": []
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "Authorization",
                "type": "string"
            }
        ]
    }
}