{
    "info": {
        "name": "Watily API",
        "_postman_id": "watily-api-v1",
        "description": "Public REST API for Watily (`/api/v1`) — contacts, segments, campaigns,\nmessages, media, templates, loyalty, conversations, instances, analytics\nand webhooks. Authenticate with a Bearer token or `X-Api-Key` header;\nscope each API key to only the operations it needs (see `x-scope` on\neach operation, matching `App\\Models\\ApiKey::SCOPES`).\n\nواجهة واتيلي البرمجية العامة (`/api/v1`) لجهات ERP/POS ومطوّري التجار:\nجهات الاتصال، الشرائح، الحملات، الرسائل، الوسائط، القوالب، الولاء،\nالمحادثات، الأرقام، التحليلات والويبهوكات. المصادقة عبر Bearer أو ترويسة\n`X-Api-Key`، وكل مفتاح مقيّد بنطاقات محددة (`x-scope` بكل عملية).\n\nHand-maintained (no framework auto-generation) — kept next to\n`resources/js/Pages/WhatsApp/Integrations.tsx` which renders the same\nendpoints for merchants. `tests/Feature/Api/OpenApiSpecDriftTest.php`\nfails the build if a route is added/removed/rescoped here without a\nmatching change to this file.\n",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "variable": [
        {
            "key": "base_url",
            "value": "https://site.watily.com",
            "type": "string"
        },
        {
            "key": "api_key",
            "value": "",
            "type": "string"
        }
    ],
    "auth": {
        "type": "apikey",
        "apikey": [
            {
                "key": "key",
                "value": "Authorization",
                "type": "string"
            },
            {
                "key": "value",
                "value": "Bearer {{api_key}}",
                "type": "string"
            },
            {
                "key": "in",
                "value": "header",
                "type": "string"
            }
        ]
    },
    "item": [
        {
            "name": "Contacts",
            "description": "Create, look up and manage a company's WhatsApp contacts (leads).",
            "item": [
                {
                    "name": "List contacts",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/contacts",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "contacts"
                            ],
                            "query": [
                                {
                                    "key": "q",
                                    "value": "",
                                    "disabled": true
                                },
                                {
                                    "key": "tag",
                                    "value": "",
                                    "disabled": true
                                },
                                {
                                    "key": "lead_status",
                                    "value": "",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "25",
                                    "disabled": true
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Create a contact",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/contacts",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "contacts"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"phone\": \"\",\n    \"name\": \"\",\n    \"email\": \"\",\n    \"tags\": [],\n    \"custom_fields\": []\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Bulk import contacts (up to 500 per call)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/contacts/import",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "contacts",
                                "import"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"contacts\": [],\n    \"update_existing\": false\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get a contact by phone",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/contacts/{phone}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "contacts",
                                ":phone"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Update a contact",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/contacts/{phone}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "contacts",
                                ":phone"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"\",\n    \"phone\": \"\",\n    \"email\": \"\",\n    \"custom_fields\": []\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Check if a phone number has WhatsApp (QR lines only)",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/contacts/{phone}/exists",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "contacts",
                                ":phone",
                                "exists"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Unsubscribe a contact from marketing messages",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/contacts/{phone}/unsubscribe",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "contacts",
                                ":phone",
                                "unsubscribe"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Resubscribe a contact",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/contacts/{phone}/resubscribe",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "contacts",
                                ":phone",
                                "resubscribe"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Segments",
            "description": "Named, reusable audience filters for campaigns.",
            "item": [
                {
                    "name": "List saved segments",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/segments",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "segments"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Create a segment",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/segments",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "segments"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"\",\n    \"filters\": {\n        \"tags\": [],\n        \"lead_status\": [],\n        \"custom_fields\": []\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Campaigns",
            "description": "Bulk WhatsApp broadcast campaigns.",
            "item": [
                {
                    "name": "Create a campaign (draft)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/campaigns",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "campaigns"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"\",\n    \"message\": \"\",\n    \"template_key\": 0,\n    \"audience\": {\n        \"phones\": [],\n        \"segment_id\": 0\n    },\n    \"mm_api_only\": false\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get a campaign",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/campaigns/{campaign}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "campaigns",
                                ":campaign"
                            ],
                            "variable": [
                                {
                                    "key": "campaign",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Start a draft campaign",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/campaigns/{campaign}/start",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "campaigns",
                                ":campaign",
                                "start"
                            ],
                            "variable": [
                                {
                                    "key": "campaign",
                                    "value": "1"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"refresh_audience\": false\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Pause a running campaign",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/campaigns/{campaign}/pause",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "campaigns",
                                ":campaign",
                                "pause"
                            ],
                            "variable": [
                                {
                                    "key": "campaign",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Resume a paused campaign",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/campaigns/{campaign}/resume",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "campaigns",
                                ":campaign",
                                "resume"
                            ],
                            "variable": [
                                {
                                    "key": "campaign",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Removed — Automation Journeys was replaced by Growth Engine",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/journeys/{key}/enroll",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "journeys",
                                ":key",
                                "enroll"
                            ],
                            "variable": [
                                {
                                    "key": "key",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Messages",
            "description": "Send a single WhatsApp message.",
            "item": [
                {
                    "name": "Send a WhatsApp message",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/messages",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "messages"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"to\": \"\",\n    \"respect_opt_out\": false,\n    \"type\": \"\",\n    \"message\": \"\",\n    \"media_url\": \"\",\n    \"media_id\": 0,\n    \"template_name\": \"\",\n    \"template_language\": \"\",\n    \"template_components\": [],\n    \"interactive\": [],\n    \"latitude\": 0,\n    \"longitude\": 0,\n    \"location_name\": \"\",\n    \"address\": \"\",\n    \"message_id\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Media",
            "description": "Upload a file to reference by `media_id` when sending a message.",
            "item": [
                {
                    "name": "Upload media for use in a later message",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/media",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "media"
                            ]
                        },
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "file",
                                    "type": "file",
                                    "src": []
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Templates",
            "description": "List the company's approved WhatsApp message templates.",
            "item": [
                {
                    "name": "List approved WhatsApp templates",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/templates",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "templates"
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Loyalty",
            "description": "Points and stamp-card loyalty programs (POS/ERP integration).",
            "item": [
                {
                    "name": "List active loyalty programs for the store",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/programs",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "programs"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get a loyalty member by phone",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/members/{phone}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "members",
                                ":phone"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get the Apple/Google Wallet card links for a member",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/members/{phone}/wallet-card",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "members",
                                ":phone",
                                "wallet-card"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "List a member's points/stamp transaction history",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/members/{phone}/transactions",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "members",
                                ":phone",
                                "transactions"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Cheap POS balance check — points_total/level/next_level only",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/members/{phone}/points",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "members",
                                ":phone",
                                "points"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Award points to a member (idempotent, does not auto-enroll)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/members/{phone}/points",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "members",
                                ":phone",
                                "points"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": 0,\n    \"idempotency_key\": \"\",\n    \"reason\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Add a stamp to a member's card (idempotent)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/members/{phone}/stamps",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "members",
                                ":phone",
                                "stamps"
                            ],
                            "variable": [
                                {
                                    "key": "phone",
                                    "value": "1"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"program_id\": 0,\n    \"idempotency_key\": \"\",\n    \"notes\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Enroll a new loyalty member",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/members",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "members"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"phone\": \"\",\n    \"name\": \"\",\n    \"program_id\": 0,\n    \"send_welcome\": false\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "One-call POS/ERP flow — enroll + issue card + stamp (idempotent)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/stamps",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "stamps"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"phone\": \"\",\n    \"program_id\": 0,\n    \"idempotency_key\": \"\",\n    \"amount\": 0,\n    \"branch\": \"\",\n    \"external_ref\": \"\",\n    \"customer_name\": \"\",\n    \"notes\": \"\",\n    \"auto_enroll\": false\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Reverse a previously recorded stamp visit by idempotency_key",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/stamps/reverse",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "stamps",
                                "reverse"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"idempotency_key\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "One-call POS/ERP flow — enroll + award points (idempotent)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/points",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "points"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"phone\": \"\",\n    \"amount\": 0,\n    \"idempotency_key\": \"\",\n    \"auto_enroll\": false,\n    \"send_welcome\": false,\n    \"customer_name\": \"\",\n    \"branch\": \"\",\n    \"external_ref\": \"\",\n    \"notes\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Reverse a points award by idempotency_key",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/points/reverse",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "points",
                                "reverse"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"idempotency_key\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Delivery history for wallet-push broadcasts sent from this store",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/notifications",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "notifications"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Push a wallet-lock-screen notification to loyalty members",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/notifications",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "notifications"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "[]",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Look up a member by their printed/scanned card number",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/loyalty/cards/{cardNumber}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "loyalty",
                                "cards",
                                ":cardNumber"
                            ],
                            "variable": [
                                {
                                    "key": "cardNumber",
                                    "value": "LC-AB12-CD34"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Conversations",
            "description": "Inbox conversations — read, assign, tag, archive.",
            "item": [
                {
                    "name": "List inbox conversations",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/conversations",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "conversations"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get a conversation",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/conversations/{id}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "conversations",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "List messages in a conversation",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/conversations/{id}/messages",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "conversations",
                                ":id",
                                "messages"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Assign (or unassign) a conversation to a user",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/conversations/{id}/assign",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "conversations",
                                ":id",
                                "assign"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"user_id\": 0\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Archive a conversation",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/conversations/{id}/archive",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "conversations",
                                ":id",
                                "archive"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Unarchive a conversation",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/conversations/{id}/unarchive",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "conversations",
                                ":id",
                                "unarchive"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Replace a conversation's tags",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/conversations/{id}/tags",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "conversations",
                                ":id",
                                "tags"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"tags\": []\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Mark a conversation as read",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/conversations/{id}/read",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "conversations",
                                ":id",
                                "read"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Instances",
            "description": "Connected WhatsApp lines (QR or official/Cloud API).",
            "item": [
                {
                    "name": "List connected WhatsApp lines",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/instances",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "instances"
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Analytics",
            "description": "Aggregate WhatsApp usage counters.",
            "item": [
                {
                    "name": "Aggregate WhatsApp usage counters for a date range (default last 30 days)",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/analytics/summary",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "analytics",
                                "summary"
                            ],
                            "query": [
                                {
                                    "key": "from",
                                    "value": "",
                                    "disabled": true
                                },
                                {
                                    "key": "to",
                                    "value": "",
                                    "disabled": true
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Webhooks",
            "description": "Register endpoints to receive real-time event push notifications.",
            "item": [
                {
                    "name": "List webhook endpoints",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/webhooks",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "webhooks"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Register a webhook endpoint",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/webhooks",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "webhooks"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"url\": \"\",\n    \"events\": []\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Update a webhook endpoint",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/webhooks/{id}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "webhooks",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"url\": \"\",\n    \"events\": [],\n    \"enabled\": false\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "Delete a webhook endpoint",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/webhooks/{id}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "webhooks",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Send a test delivery to a webhook endpoint",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Store-Id",
                                "value": "",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/webhooks/{id}/test",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "webhooks",
                                ":id",
                                "test"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        }
    ]
}
