{
  "info": {
    "name": "Chatpaat API",
    "description": "Send WhatsApp messages and sync contacts, sequences, deals and products with Chatpaat.\n\nSet the `apiKey` variable to your key from Developers in the Chatpaat app (it starts with cp_live_). Docs: https://www.chatpaat.com/docs/api",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://www.chatpaat.com",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "cp_live_your_key_here",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Messages",
      "description": "Send WhatsApp messages and check whether they were delivered and read.",
      "item": [
        {
          "name": "Send a message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "messages"
              ]
            },
            "description": "Send a WhatsApp message to a phone number. Send `text` to reply within 24 hours of the customer's last message, or an approved `template` at any time (order updates, reminders, offers). The contact is created if it's new.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"to\": \"+919876543210\",\n  \"template\": {\n    \"name\": \"order_shipped\",\n    \"language\": \"en\",\n    \"bodyParams\": [\n      \"Priya\",\n      \"#CP2041\"\n    ]\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/messages",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "messages"
                  ]
                },
                "description": "Send a WhatsApp message to a phone number. Send `text` to reply within 24 hours of the customer's last message, or an approved `template` at any time (order updates, reminders, offers). The contact is created if it's new.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"to\": \"+919876543210\",\n  \"template\": {\n    \"name\": \"order_shipped\",\n    \"language\": \"en\",\n    \"bodyParams\": [\n      \"Priya\",\n      \"#CP2041\"\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"cm2k8z3ab0002ab12cd34ef56\",\n  \"wamid\": \"wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgS\",\n  \"status\": \"sent\",\n  \"contactId\": \"cm2k8x1q40001ab12cd34ef56\"\n}"
            }
          ]
        },
        {
          "name": "Get a message's status",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/messages/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "messages",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "cm2k8z3ab0002ab12cd34ef56",
                  "description": "The `id` or `wamid` returned when you sent it."
                }
              ]
            },
            "description": "Check if a message was sent, delivered, read or failed. Look it up by the Chatpaat `id` or the WhatsApp `wamid`."
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/messages/:id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "messages",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "cm2k8z3ab0002ab12cd34ef56",
                      "description": "The `id` or `wamid` returned when you sent it."
                    }
                  ]
                },
                "description": "Check if a message was sent, delivered, read or failed. Look it up by the Chatpaat `id` or the WhatsApp `wamid`."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"cm2k8z3ab0002ab12cd34ef56\",\n  \"wamid\": \"wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgS\",\n  \"direction\": \"outbound\",\n  \"type\": \"template\",\n  \"text\": \"Hi Priya, your order #CP2041 has shipped!\",\n  \"status\": \"read\",\n  \"error\": null,\n  \"createdAt\": \"2026-10-13T10:00:00.000Z\",\n  \"sentAt\": \"2026-10-13T10:00:01.000Z\",\n  \"deliveredAt\": \"2026-10-13T10:00:03.000Z\",\n  \"readAt\": \"2026-10-13T10:02:40.000Z\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Contacts",
      "description": "Keep your customer list in sync with your own systems.",
      "item": [
        {
          "name": "List contacts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contacts?tag=vip&limit=50",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contacts"
              ],
              "query": [
                {
                  "key": "phone",
                  "value": "",
                  "description": "Only the contact with this phone number.",
                  "disabled": true
                },
                {
                  "key": "tag",
                  "value": "vip",
                  "description": "Only contacts with this tag.",
                  "disabled": false
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "How many to return, 1 to 200. Default 50.",
                  "disabled": false
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "The `nextCursor` from the previous page, to get the next page.",
                  "disabled": true
                }
              ]
            },
            "description": "List your contacts, newest first. Filter by phone number to find one person, or by tag."
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/contacts?tag=vip&limit=50",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "contacts"
                  ],
                  "query": [
                    {
                      "key": "phone",
                      "value": "",
                      "description": "Only the contact with this phone number.",
                      "disabled": true
                    },
                    {
                      "key": "tag",
                      "value": "vip",
                      "description": "Only contacts with this tag.",
                      "disabled": false
                    },
                    {
                      "key": "limit",
                      "value": "50",
                      "description": "How many to return, 1 to 200. Default 50.",
                      "disabled": false
                    },
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "The `nextCursor` from the previous page, to get the next page.",
                      "disabled": true
                    }
                  ]
                },
                "description": "List your contacts, newest first. Filter by phone number to find one person, or by tag."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"cm2k8x1q40001ab12cd34ef56\",\n      \"phone\": \"919876543210\",\n      \"name\": \"Priya Sharma\",\n      \"email\": \"priya@example.com\",\n      \"tags\": [\n        \"vip\",\n        \"pune\"\n      ],\n      \"attributes\": {\n        \"city\": \"Pune\",\n        \"plan\": \"gold\"\n      },\n      \"optIn\": \"opted_in\",\n      \"createdAt\": \"2026-10-13T09:30:00.000Z\"\n    }\n  ],\n  \"nextCursor\": null\n}"
            }
          ]
        },
        {
          "name": "Create or update a contact",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contacts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contacts"
              ]
            },
            "description": "Add a contact, or update it if the phone number already exists. New tags and attributes are merged with the ones it has, so it's safe to call every time a customer signs up or orders.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone\": \"+919876543210\",\n  \"name\": \"Priya Sharma\",\n  \"email\": \"priya@example.com\",\n  \"tags\": [\n    \"vip\"\n  ],\n  \"attributes\": {\n    \"city\": \"Pune\"\n  },\n  \"optedIn\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/contacts",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "contacts"
                  ]
                },
                "description": "Add a contact, or update it if the phone number already exists. New tags and attributes are merged with the ones it has, so it's safe to call every time a customer signs up or orders.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+919876543210\",\n  \"name\": \"Priya Sharma\",\n  \"email\": \"priya@example.com\",\n  \"tags\": [\n    \"vip\"\n  ],\n  \"attributes\": {\n    \"city\": \"Pune\"\n  },\n  \"optedIn\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"cm2k8x1q40001ab12cd34ef56\",\n  \"phone\": \"919876543210\",\n  \"name\": \"Priya Sharma\",\n  \"email\": \"priya@example.com\",\n  \"tags\": [\n    \"vip\",\n    \"pune\"\n  ],\n  \"attributes\": {\n    \"city\": \"Pune\",\n    \"plan\": \"gold\"\n  },\n  \"optIn\": \"opted_in\",\n  \"createdAt\": \"2026-10-13T09:30:00.000Z\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Templates",
      "description": "See which approved templates you can send, and how many variables each needs.",
      "item": [
        {
          "name": "List approved templates",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/templates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "templates"
              ]
            },
            "description": "Every template Meta has approved, with every value it takes when you send it: header type, how many body and header values, which buttons need a value, and a ready-made `exampleRequest` for POST /messages."
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/templates",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "templates"
                  ]
                },
                "description": "Every template Meta has approved, with every value it takes when you send it: header type, how many body and header values, which buttons need a value, and a ready-made `exampleRequest` for POST /messages."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": [\n    {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": \"utility\",\n      \"body\": \"Hi {{1}}, your order #{{2}} is ready. Download your files below.\",\n      \"authentication\": false,\n      \"header\": \"document\",\n      \"headerParams\": 0,\n      \"bodyParams\": 2,\n      \"urlParams\": 1,\n      \"quickReplies\": 1,\n      \"offerCode\": false,\n      \"buttons\": [\n        {\n          \"index\": 0,\n          \"type\": \"URL\",\n          \"text\": \"Download\",\n          \"send\": \"urlParams\"\n        },\n        {\n          \"index\": 1,\n          \"type\": \"QUICK_REPLY\",\n          \"text\": \"Need help\",\n          \"send\": \"quickReplyPayloads\"\n        }\n      ],\n      \"exampleRequest\": {\n        \"to\": \"+919876543210\",\n        \"template\": {\n          \"name\": \"order_ready\",\n          \"language\": \"en\",\n          \"bodyParams\": [\n            \"value 1\",\n            \"value 2\"\n          ],\n          \"headerMediaUrl\": \"https://example.com/invoice.pdf\",\n          \"headerMediaFilename\": \"Invoice.pdf\",\n          \"urlParams\": [\n            \"link-value-1\"\n          ],\n          \"quickReplyPayloads\": [\n            \"reply-1\"\n          ]\n        }\n      }\n    }\n  ]\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Sequences",
      "description": "Start a drip sequence for a contact, for example from your sign-up form.",
      "item": [
        {
          "name": "List sequences",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/sequences",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "sequences"
              ]
            },
            "description": "Your drip sequences, to find the `id` to enrol contacts into."
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/sequences",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "sequences"
                  ]
                },
                "description": "Your drip sequences, to find the `id` to enrol contacts into."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"cm2ka1b2c0004ab12cd34ef56\",\n      \"name\": \"Welcome series\",\n      \"enabled\": true,\n      \"trigger\": \"manual\",\n      \"tag\": null,\n      \"steps\": 3\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "Enrol a contact in a sequence",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/sequences/:id/enroll",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "sequences",
                ":id",
                "enroll"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "cm2ka1b2c0004ab12cd34ef56",
                  "description": "The sequence id from List sequences."
                }
              ]
            },
            "description": "Start a sequence for one person, for example right after they sign up on your website. Creates the contact if needed.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone\": \"+919876543210\",\n  \"name\": \"Priya Sharma\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/sequences/:id/enroll",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "sequences",
                    ":id",
                    "enroll"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "cm2ka1b2c0004ab12cd34ef56",
                      "description": "The sequence id from List sequences."
                    }
                  ]
                },
                "description": "Start a sequence for one person, for example right after they sign up on your website. Creates the contact if needed.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+919876543210\",\n  \"name\": \"Priya Sharma\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"contactId\": \"cm2k8x1q40001ab12cd34ef56\",\n  \"enrolled\": true,\n  \"alreadyEnrolled\": false\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Deals",
      "description": "Add leads to your sales pipeline and move them between stages.",
      "item": [
        {
          "name": "List deals",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/deals?status=open",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "deals"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "open",
                  "description": "`open`, `won` or `lost`.",
                  "disabled": false
                },
                {
                  "key": "contactId",
                  "value": "",
                  "description": "Only this contact's deals.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "",
                  "description": "How many to return, 1 to 200. Default 50.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "The `nextCursor` from the previous page, to get the next page.",
                  "disabled": true
                }
              ]
            },
            "description": "Deals in your sales pipeline, newest first."
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/deals?status=open",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "deals"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "`open`, `won` or `lost`.",
                      "disabled": false
                    },
                    {
                      "key": "contactId",
                      "value": "",
                      "description": "Only this contact's deals.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "",
                      "description": "How many to return, 1 to 200. Default 50.",
                      "disabled": true
                    },
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "The `nextCursor` from the previous page, to get the next page.",
                      "disabled": true
                    }
                  ]
                },
                "description": "Deals in your sales pipeline, newest first."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"cm2k9a7rt0003ab12cd34ef56\",\n      \"title\": \"Wholesale order: 200 kurtas\",\n      \"contactId\": \"cm2k8x1q40001ab12cd34ef56\",\n      \"stage\": \"Quote sent\",\n      \"status\": \"open\",\n      \"value\": 25000,\n      \"currency\": \"INR\",\n      \"ownerId\": null,\n      \"followUpAt\": null,\n      \"lostReason\": null,\n      \"createdAt\": \"2026-10-13T09:45:00.000Z\",\n      \"closedAt\": null\n    }\n  ],\n  \"nextCursor\": null\n}"
            }
          ]
        },
        {
          "name": "Create a deal",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/deals",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "deals"
              ]
            },
            "description": "Add a deal to your pipeline, e.g. from your website's enquiry form. Give a `contactId` or a `phone` (the contact is created if needed).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone\": \"+919876543210\",\n  \"title\": \"Wholesale order: 200 kurtas\",\n  \"value\": 25000,\n  \"stage\": \"Quote sent\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/deals",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "deals"
                  ]
                },
                "description": "Add a deal to your pipeline, e.g. from your website's enquiry form. Give a `contactId` or a `phone` (the contact is created if needed).",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+919876543210\",\n  \"title\": \"Wholesale order: 200 kurtas\",\n  \"value\": 25000,\n  \"stage\": \"Quote sent\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"cm2k9a7rt0003ab12cd34ef56\",\n  \"title\": \"Wholesale order: 200 kurtas\",\n  \"contactId\": \"cm2k8x1q40001ab12cd34ef56\",\n  \"stage\": \"Quote sent\",\n  \"status\": \"open\",\n  \"value\": 25000,\n  \"currency\": \"INR\",\n  \"ownerId\": null,\n  \"followUpAt\": null,\n  \"lostReason\": null,\n  \"createdAt\": \"2026-10-13T09:45:00.000Z\",\n  \"closedAt\": null\n}"
            }
          ]
        },
        {
          "name": "Get a deal",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/deals/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "deals",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "cm2k9a7rt0003ab12cd34ef56",
                  "description": "The deal id."
                }
              ]
            },
            "description": "One deal, with its stage and whether it's open, won or lost."
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/deals/:id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "deals",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "cm2k9a7rt0003ab12cd34ef56",
                      "description": "The deal id."
                    }
                  ]
                },
                "description": "One deal, with its stage and whether it's open, won or lost."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"cm2k9a7rt0003ab12cd34ef56\",\n  \"title\": \"Wholesale order: 200 kurtas\",\n  \"contactId\": \"cm2k8x1q40001ab12cd34ef56\",\n  \"stage\": \"Quote sent\",\n  \"status\": \"open\",\n  \"value\": 25000,\n  \"currency\": \"INR\",\n  \"ownerId\": null,\n  \"followUpAt\": null,\n  \"lostReason\": null,\n  \"createdAt\": \"2026-10-13T09:45:00.000Z\",\n  \"closedAt\": null\n}"
            }
          ]
        },
        {
          "name": "Update or move a deal",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/deals/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "deals",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "cm2k9a7rt0003ab12cd34ef56",
                  "description": "The deal id."
                }
              ]
            },
            "description": "Change a deal or move it to another stage. Moving it to a Won or Lost stage closes it.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stage\": \"Won\",\n  \"value\": 27500\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/deals/:id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "deals",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "cm2k9a7rt0003ab12cd34ef56",
                      "description": "The deal id."
                    }
                  ]
                },
                "description": "Change a deal or move it to another stage. Moving it to a Won or Lost stage closes it.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"stage\": \"Won\",\n  \"value\": 27500\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"cm2k9a7rt0003ab12cd34ef56\",\n  \"title\": \"Wholesale order: 200 kurtas\",\n  \"contactId\": \"cm2k8x1q40001ab12cd34ef56\",\n  \"stage\": \"Won\",\n  \"status\": \"won\",\n  \"value\": 27500,\n  \"currency\": \"INR\",\n  \"ownerId\": null,\n  \"followUpAt\": null,\n  \"lostReason\": null,\n  \"createdAt\": \"2026-10-13T09:45:00.000Z\",\n  \"closedAt\": \"2026-10-14T11:20:00.000Z\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Products",
      "description": "Keep your catalog in step with your website, using your own product IDs. Changes reach your WhatsApp shop too.",
      "item": [
        {
          "name": "List products",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/products?inStock=true",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "products"
              ],
              "query": [
                {
                  "key": "category",
                  "value": "",
                  "description": "Only products in this category.",
                  "disabled": true
                },
                {
                  "key": "inStock",
                  "value": "true",
                  "description": "`true` or `false`.",
                  "disabled": false
                },
                {
                  "key": "limit",
                  "value": "",
                  "description": "How many to return, 1 to 200. Default 50.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "The `nextCursor` from the previous page, to get the next page.",
                  "disabled": true
                }
              ]
            },
            "description": "Your products, newest first."
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/products?inStock=true",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "products"
                  ],
                  "query": [
                    {
                      "key": "category",
                      "value": "",
                      "description": "Only products in this category.",
                      "disabled": true
                    },
                    {
                      "key": "inStock",
                      "value": "true",
                      "description": "`true` or `false`.",
                      "disabled": false
                    },
                    {
                      "key": "limit",
                      "value": "",
                      "description": "How many to return, 1 to 200. Default 50.",
                      "disabled": true
                    },
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "The `nextCursor` from the previous page, to get the next page.",
                      "disabled": true
                    }
                  ]
                },
                "description": "Your products, newest first."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"KK-500\",\n      \"name\": \"Kaju katli (500 g)\",\n      \"description\": \"Made fresh every morning with pure ghee.\",\n      \"price\": 600,\n      \"mrp\": 700,\n      \"currency\": \"INR\",\n      \"imageUrl\": \"https://sharmasweets.in/img/kaju-katli.jpg\",\n      \"websiteUrl\": \"https://sharmasweets.in/products/kaju-katli\",\n      \"category\": \"Sweets\",\n      \"inStock\": true,\n      \"whatsapp\": {\n        \"inCatalog\": true,\n        \"error\": null\n      },\n      \"createdAt\": \"2026-10-19T08:00:00.000Z\",\n      \"updatedAt\": \"2026-10-19T08:00:00.000Z\"\n    }\n  ],\n  \"nextCursor\": null\n}"
            }
          ]
        },
        {
          "name": "Add a product",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/products",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "products"
              ]
            },
            "description": "Add a product under your own product ID. Fails with 409 if that ID is already used; to create or replace in one call, use PUT /products/{id}.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": \"KK-500\",\n  \"name\": \"Kaju katli (500 g)\",\n  \"price\": 600,\n  \"mrp\": 700,\n  \"description\": \"Made fresh every morning with pure ghee.\",\n  \"imageUrl\": \"https://sharmasweets.in/img/kaju-katli.jpg\",\n  \"websiteUrl\": \"https://sharmasweets.in/products/kaju-katli\",\n  \"category\": \"Sweets\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/products",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "products"
                  ]
                },
                "description": "Add a product under your own product ID. Fails with 409 if that ID is already used; to create or replace in one call, use PUT /products/{id}.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"id\": \"KK-500\",\n  \"name\": \"Kaju katli (500 g)\",\n  \"price\": 600,\n  \"mrp\": 700,\n  \"description\": \"Made fresh every morning with pure ghee.\",\n  \"imageUrl\": \"https://sharmasweets.in/img/kaju-katli.jpg\",\n  \"websiteUrl\": \"https://sharmasweets.in/products/kaju-katli\",\n  \"category\": \"Sweets\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"KK-500\",\n  \"name\": \"Kaju katli (500 g)\",\n  \"description\": \"Made fresh every morning with pure ghee.\",\n  \"price\": 600,\n  \"mrp\": 700,\n  \"currency\": \"INR\",\n  \"imageUrl\": \"https://sharmasweets.in/img/kaju-katli.jpg\",\n  \"websiteUrl\": \"https://sharmasweets.in/products/kaju-katli\",\n  \"category\": \"Sweets\",\n  \"inStock\": true,\n  \"whatsapp\": {\n    \"inCatalog\": true,\n    \"error\": null\n  },\n  \"createdAt\": \"2026-10-19T08:00:00.000Z\",\n  \"updatedAt\": \"2026-10-19T08:00:00.000Z\"\n}"
            }
          ]
        },
        {
          "name": "Get a product",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/products/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "products",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "KK-500",
                  "description": "Your own product ID (the SKU on your website), URL-encoded. Products added in the app without one use the `id` the API returns for them."
                }
              ]
            },
            "description": "One product, by your product ID."
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/products/:id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "products",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "KK-500",
                      "description": "Your own product ID (the SKU on your website), URL-encoded. Products added in the app without one use the `id` the API returns for them."
                    }
                  ]
                },
                "description": "One product, by your product ID."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"KK-500\",\n  \"name\": \"Kaju katli (500 g)\",\n  \"description\": \"Made fresh every morning with pure ghee.\",\n  \"price\": 600,\n  \"mrp\": 700,\n  \"currency\": \"INR\",\n  \"imageUrl\": \"https://sharmasweets.in/img/kaju-katli.jpg\",\n  \"websiteUrl\": \"https://sharmasweets.in/products/kaju-katli\",\n  \"category\": \"Sweets\",\n  \"inStock\": true,\n  \"whatsapp\": {\n    \"inCatalog\": true,\n    \"error\": null\n  },\n  \"createdAt\": \"2026-10-19T08:00:00.000Z\",\n  \"updatedAt\": \"2026-10-19T08:00:00.000Z\"\n}"
            }
          ]
        },
        {
          "name": "Create or replace a product",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/products/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "products",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "KK-500",
                  "description": "Your own product ID (the SKU on your website), URL-encoded. Products added in the app without one use the `id` the API returns for them."
                }
              ]
            },
            "description": "Creates the product if your ID is new (201), otherwise replaces it (200). Send the whole product: optional fields you leave out are cleared. The easiest way to sync your website's catalog.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Kaju katli (500 g)\",\n  \"price\": 600,\n  \"mrp\": 700,\n  \"description\": \"Made fresh every morning with pure ghee.\",\n  \"imageUrl\": \"https://sharmasweets.in/img/kaju-katli.jpg\",\n  \"websiteUrl\": \"https://sharmasweets.in/products/kaju-katli\",\n  \"category\": \"Sweets\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/products/:id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "products",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "KK-500",
                      "description": "Your own product ID (the SKU on your website), URL-encoded. Products added in the app without one use the `id` the API returns for them."
                    }
                  ]
                },
                "description": "Creates the product if your ID is new (201), otherwise replaces it (200). Send the whole product: optional fields you leave out are cleared. The easiest way to sync your website's catalog.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Kaju katli (500 g)\",\n  \"price\": 600,\n  \"mrp\": 700,\n  \"description\": \"Made fresh every morning with pure ghee.\",\n  \"imageUrl\": \"https://sharmasweets.in/img/kaju-katli.jpg\",\n  \"websiteUrl\": \"https://sharmasweets.in/products/kaju-katli\",\n  \"category\": \"Sweets\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"KK-500\",\n  \"name\": \"Kaju katli (500 g)\",\n  \"description\": \"Made fresh every morning with pure ghee.\",\n  \"price\": 600,\n  \"mrp\": 700,\n  \"currency\": \"INR\",\n  \"imageUrl\": \"https://sharmasweets.in/img/kaju-katli.jpg\",\n  \"websiteUrl\": \"https://sharmasweets.in/products/kaju-katli\",\n  \"category\": \"Sweets\",\n  \"inStock\": true,\n  \"whatsapp\": {\n    \"inCatalog\": true,\n    \"error\": null\n  },\n  \"createdAt\": \"2026-10-19T08:00:00.000Z\",\n  \"updatedAt\": \"2026-10-19T08:00:00.000Z\"\n}"
            }
          ]
        },
        {
          "name": "Update a product",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/products/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "products",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "KK-500",
                  "description": "Your own product ID (the SKU on your website), URL-encoded. Products added in the app without one use the `id` the API returns for them."
                }
              ]
            },
            "description": "Change some fields, e.g. the price or stock. Fields you leave out stay as they are.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"price\": 650,\n  \"inStock\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/products/:id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "products",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "KK-500",
                      "description": "Your own product ID (the SKU on your website), URL-encoded. Products added in the app without one use the `id` the API returns for them."
                    }
                  ]
                },
                "description": "Change some fields, e.g. the price or stock. Fields you leave out stay as they are.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"price\": 650,\n  \"inStock\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"KK-500\",\n  \"name\": \"Kaju katli (500 g)\",\n  \"description\": \"Made fresh every morning with pure ghee.\",\n  \"price\": 650,\n  \"mrp\": 700,\n  \"currency\": \"INR\",\n  \"imageUrl\": \"https://sharmasweets.in/img/kaju-katli.jpg\",\n  \"websiteUrl\": \"https://sharmasweets.in/products/kaju-katli\",\n  \"category\": \"Sweets\",\n  \"inStock\": false,\n  \"whatsapp\": {\n    \"inCatalog\": true,\n    \"error\": null\n  },\n  \"createdAt\": \"2026-10-19T08:00:00.000Z\",\n  \"updatedAt\": \"2026-10-19T10:30:00.000Z\"\n}"
            }
          ]
        },
        {
          "name": "Delete a product",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/products/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "products",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "KK-500",
                  "description": "Your own product ID (the SKU on your website), URL-encoded. Products added in the app without one use the `id` the API returns for them."
                }
              ]
            },
            "description": "Deletes the product and takes it off your WhatsApp catalog. Past orders keep their own copy of its name and price."
          },
          "response": [
            {
              "name": "Example",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/api/v1/products/:id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "products",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "KK-500",
                      "description": "Your own product ID (the SKU on your website), URL-encoded. Products added in the app without one use the `id` the API returns for them."
                    }
                  ]
                },
                "description": "Deletes the product and takes it off your WhatsApp catalog. Past orders keep their own copy of its name and price."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"KK-500\",\n  \"deleted\": true\n}"
            }
          ]
        }
      ]
    }
  ]
}