{
  "info": {
    "_postman_id": "fad2d259-19dd-5960-aaf5-8d541448cd9a",
    "name": "Qlara API - WhatsApp",
    "description": "The WhatsApp section of API Reference in the Qlara documentation.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "id": "3a6037f1-f004-5353-afae-0027fa34062f",
      "name": "List WhatsApp phone numbers",
      "request": {
        "name": "List WhatsApp phone numbers",
        "description": {
          "content": "Returns the WhatsApp Business phone numbers of your account, one page at a time.\n\n- **Where the ID is used**: the ID of a number is what a campaign takes as `whatsappPhoneNumberId`, and what `GET /whatsapp/phone-numbers/{phoneNumberId}` takes.\n- **Pagination**: `page` is 0-based (default 0) and `limit` goes from 1 to 1000 (default 10).",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "whatsapp",
            "phone-numbers"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [
            {
              "disabled": false,
              "key": "limit",
              "value": "809",
              "description": "Results per page, from 1 to 1000. Defaults to 10."
            },
            {
              "disabled": false,
              "key": "page",
              "value": "314",
              "description": "Page number, 0-based. Defaults to 0."
            }
          ],
          "variable": []
        },
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "GET",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        }
      },
      "response": [
        {
          "id": "9fe872f5-a47d-5d11-ab01-5d209c56fbbc",
          "name": "One page of WhatsApp phone numbers.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "whatsapp",
                "phone-numbers"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "809"
                },
                {
                  "key": "page",
                  "value": "314"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "OK",
          "code": 200,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{}",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "ed72fe87-e551-5392-af03-492e57adcf33",
          "name": "`page` or `limit` is out of range. The response body names the parameter.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "whatsapp",
                "phone-numbers"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "809"
                },
                {
                  "key": "page",
                  "value": "314"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Bad Request",
          "code": 400,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "fcddf4bb-6ee4-59c5-a54b-9f1aafbdd5c1",
          "name": "The API key is missing, invalid, or lacks the `WHATSAPP` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "whatsapp",
                "phone-numbers"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "809"
                },
                {
                  "key": "page",
                  "value": "314"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    },
    {
      "id": "eb8f19ba-66f4-58b8-a94f-a08f5b06f58e",
      "name": "Get a WhatsApp phone number",
      "request": {
        "name": "Get a WhatsApp phone number",
        "description": {
          "content": "Returns one WhatsApp Business phone number of your account by its ID, the one `GET /whatsapp/phone-numbers` lists.",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "whatsapp",
            "phone-numbers",
            ":phoneNumberId"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [],
          "variable": [
            {
              "disabled": false,
              "type": "any",
              "value": "5145",
              "key": "phoneNumberId",
              "description": "(Required) ID of the WhatsApp phone number, as `GET /whatsapp/phone-numbers` lists it."
            }
          ]
        },
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "GET",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        }
      },
      "response": [
        {
          "id": "a39a048d-6dc0-582f-ad09-fc9cd7ae46ac",
          "name": "The WhatsApp phone number.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "whatsapp",
                "phone-numbers",
                ":phoneNumberId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "phoneNumberId",
                  "description": "(Required) ID of the WhatsApp phone number, as `GET /whatsapp/phone-numbers` lists it."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "OK",
          "code": 200,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{}",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "99f5bcd5-51d0-573c-a684-5261a474574a",
          "name": "The API key is missing, invalid, or lacks the `WHATSAPP` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "whatsapp",
                "phone-numbers",
                ":phoneNumberId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "phoneNumberId",
                  "description": "(Required) ID of the WhatsApp phone number, as `GET /whatsapp/phone-numbers` lists it."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "b497565d-cd1b-553f-a06a-c4d1db88349d",
          "name": "No WhatsApp phone number with this ID in your account.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "whatsapp",
                "phone-numbers",
                ":phoneNumberId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "phoneNumberId",
                  "description": "(Required) ID of the WhatsApp phone number, as `GET /whatsapp/phone-numbers` lists it."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Not Found",
          "code": 404,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    },
    {
      "id": "486cbae5-9c8e-5b3b-add3-2d9a8eec3a2f",
      "name": "Templates",
      "item": [
        {
          "id": "6f0bf7eb-123f-5e74-a5ba-a49d2dc1e8d4",
          "name": "List WhatsApp templates",
          "request": {
            "name": "List WhatsApp templates",
            "description": {
              "content": "Returns the templates of your account with pagination and optional filters.\n\nOnly the templates of numbers that can send are listed: templates of disconnected, banned, deleted, migrated, pending or unverified numbers, or of numbers Meta has blocked from sending, are left out.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "message-server",
                "whatsapp",
                "templates"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "10",
                  "description": "Maximum number of items per page"
                },
                {
                  "disabled": false,
                  "key": "page",
                  "value": "0",
                  "description": "Page number (0-based)"
                },
                {
                  "disabled": false,
                  "key": "category",
                  "value": "AUTHENTICATION,MARKETING",
                  "description": "Filter by category; several values are comma-separated"
                },
                {
                  "disabled": false,
                  "key": "status",
                  "value": "LOCKED,PENDING_DELETION",
                  "description": "Filter by status; several values are comma-separated"
                },
                {
                  "disabled": false,
                  "key": "templateId",
                  "value": "5835,519",
                  "description": "Filter by template ID; up to 25 comma-separated IDs"
                },
                {
                  "disabled": false,
                  "key": "phoneNumberId",
                  "value": "9822",
                  "description": "Filter by phone number"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [
            {
              "id": "21c89d25-6b93-546b-a2c0-ad9ae0ca9009",
              "name": "List of templates",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    },
                    {
                      "key": "category",
                      "value": "AUTHENTICATION,MARKETING"
                    },
                    {
                      "key": "status",
                      "value": "LOCKED,PENDING_DELETION"
                    },
                    {
                      "key": "templateId",
                      "value": "5835,519"
                    },
                    {
                      "key": "phoneNumberId",
                      "value": "9822"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": [\n    {\n      \"id\": 42,\n      \"phoneNumberId\": 5,\n      \"name\": \"marketing_Welcome\",\n      \"slug\": \"marketing_welcome\",\n      \"category\": \"MARKETING\",\n      \"lang\": \"it\",\n      \"status\": \"APPROVED\",\n      \"quality\": \"GREEN\",\n      \"createdAt\": \"2025-09-15 10:00:00.000+0000\",\n      \"updatedAt\": \"2025-09-15 10:20:31.000+0000\",\n      \"headerText\": \"Welcome\",\n      \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n      \"footer\": \"Per info visita il sito\",\n      \"buttons\": [\n        {\n          \"type\": \"URL\",\n          \"text\": \"Apri il sito\",\n          \"url\": \"https://qlara.ai/\"\n        },\n        {\n          \"type\": \"PHONE_NUMBER\",\n          \"text\": \"Chiamaci\",\n          \"phoneNumber\": \"+39 123123123\"\n        },\n        {\n          \"type\": \"QUICK_REPLY\",\n          \"text\": \"Voglio essere contattato\"\n        }\n      ],\n      \"placeholders\": [\n        \"firstName\"\n      ]\n    },\n    {\n      \"id\": 43,\n      \"phoneNumberId\": 5,\n      \"name\": \"promo_autunno\",\n      \"slug\": \"promo_autunno\",\n      \"category\": \"MARKETING\",\n      \"lang\": \"it\",\n      \"status\": \"REJECTED\",\n      \"quality\": \"UNKNOWN\",\n      \"rejectedReason\": \"PROMOTIONAL\",\n      \"createdAt\": \"2025-10-01 08:00:00.000+0000\",\n      \"updatedAt\": \"2025-10-01 09:12:45.000+0000\",\n      \"headerMedia\": {\n        \"url\": \"https://fs-lora-namespace-public.fsn1.your-objectstorage.com/4d8f5607/830b788d/9c106b57985ab66cf5c96ca1e9cc95b8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=...\",\n        \"mimeType\": \"image/jpeg\",\n        \"thumbnailUrl\": \"https://fs-lora-namespace-public.fsn1.your-objectstorage.com/4d8f5607/830b788d/2b7e4d1c0f9a8e6d5c4b3a2918f7e6d5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=...\",\n        \"thumbnailMimeType\": \"image/jpeg\"\n      },\n      \"headerFormat\": \"IMAGE\",\n      \"body\": \"Ciao {firstName}, scopri le offerte d'autunno!\",\n      \"footer\": \"Offerta valida fino al 30 novembre\",\n      \"placeholders\": [\n        \"firstName\"\n      ]\n    }\n  ],\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalCount\": 2,\n  \"totalPages\": 1\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e4beb1b2-9dbe-51b5-a137-47309b890d79",
              "name": "Invalid filter value",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    },
                    {
                      "key": "category",
                      "value": "AUTHENTICATION,MARKETING"
                    },
                    {
                      "key": "status",
                      "value": "LOCKED,PENDING_DELETION"
                    },
                    {
                      "key": "templateId",
                      "value": "5835,519"
                    },
                    {
                      "key": "phoneNumberId",
                      "value": "9822"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": \"Invalid status format. Status values must be valid TemplateStatus enum values separated by commas.\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "2e942b41-a1ce-5e01-a354-81a916d3cd2f",
          "name": "Create WhatsApp template",
          "request": {
            "name": "Create WhatsApp template",
            "description": {
              "content": "Creates a new WhatsApp template. The template must be approved by Meta before it can be used for sending.\n\n**Supported variants:**\n- Simple text template\n- Template with buttons (URL, phone, quick reply)\n- Template with image/video/document header\n- Template with tracked links in the body\n- Template with tracked links in buttons\n- AUTHENTICATION template (code with a copy button): no header, body, footer or buttons, only `otpExpirationMinutes`\n\n**Placeholders** in header, body, footer and buttons must be contact fields (such as `{firstName}`, `{lastName}`, `{companyName}`, `{city}`, or the extra contact fields defined for your account) or `{shortLinkT1}`–`{shortLinkT4}`: any other name is rejected with `INVALID_PLACEHOLDER`.\n\nEach template counts against the `whatsapp_templates` limit of your subscription: once it is reached, the API answers `429`.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "message-server",
                "whatsapp",
                "templates"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "phoneNumberId",
                  "value": "9822",
                  "description": "(Required) WhatsApp Business number ID to associate the template with"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": null,
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"marketing_Welcome\",\n  \"lang\": \"it\",\n  \"category\": \"MARKETING\",\n  \"headerText\": \"Welcome\",\n  \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n  \"footer\": \"Per info visita il sito\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "id": "70deaff0-9d2a-5090-acdb-c3fc3cf7d540",
              "name": "Template created and sent to Meta for review",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "phoneNumberId",
                      "value": "9822"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"marketing_Welcome\",\n  \"lang\": \"it\",\n  \"category\": \"MARKETING\",\n  \"headerText\": \"Welcome\",\n  \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n  \"footer\": \"Per info visita il sito\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 44,\n  \"phoneNumberId\": 5,\n  \"name\": \"marketing_Welcome\",\n  \"slug\": \"marketing_welcome\",\n  \"category\": \"MARKETING\",\n  \"lang\": \"it\",\n  \"status\": \"PENDING\",\n  \"createdAt\": \"2025-10-05 14:02:11.000+0000\",\n  \"updatedAt\": \"2025-10-05 14:02:11.000+0000\",\n  \"headerText\": \"Welcome\",\n  \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n  \"footer\": \"Per info visita il sito\",\n  \"placeholders\": [\n    \"firstName\"\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "44651db6-22c0-53e9-a453-3783f503d504",
              "name": "Invalid request. `data` carries the error code, an object with `message` and `errors`, or the invalid fields with their messages.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "phoneNumberId",
                      "value": "9822"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"marketing_Welcome\",\n  \"lang\": \"it\",\n  \"category\": \"MARKETING\",\n  \"headerText\": \"Welcome\",\n  \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n  \"footer\": \"Per info visita il sito\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {\n    \"message\": \"INVALID_PLACEHOLDER\",\n    \"errors\": [\n      \"codicesconto\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "6e5b4a26-42b9-5a66-a8c6-a5b43a919d1d",
              "name": "WhatsApp Business number not found in your account",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "phoneNumberId",
                      "value": "9822"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"marketing_Welcome\",\n  \"lang\": \"it\",\n  \"category\": \"MARKETING\",\n  \"headerText\": \"Welcome\",\n  \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n  \"footer\": \"Per info visita il sito\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": \"PHONE_NUMBER_NOT_FOUND\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "69865df8-c6fa-587f-ae6a-9478d7a4d2de",
              "name": "The `whatsapp_templates` limit of your subscription has been reached",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "phoneNumberId",
                      "value": "9822"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"marketing_Welcome\",\n  \"lang\": \"it\",\n  \"category\": \"MARKETING\",\n  \"headerText\": \"Welcome\",\n  \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n  \"footer\": \"Per info visita il sito\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {\n    \"error\": \"SUBSCRIPTION_LIMIT_EXCEEDED\",\n    \"field\": \"whatsapp_templates\",\n    \"used\": 10,\n    \"limit\": 10\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "fc9692c3-bce3-5cca-a6e6-cf24edb376dd",
          "name": "Template details",
          "request": {
            "name": "Template details",
            "description": {
              "content": "Returns the complete details of a template, including components (header, body, footer, buttons).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "message-server",
                "whatsapp",
                "templates",
                ":templateId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "9822",
                  "key": "templateId",
                  "description": "(Required) Template ID"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [
            {
              "id": "f13270a2-c22f-563e-ab56-5c724d20974e",
              "name": "Template details",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "9822",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 42,\n  \"phoneNumberId\": 5,\n  \"name\": \"marketing_Welcome\",\n  \"slug\": \"marketing_welcome\",\n  \"category\": \"MARKETING\",\n  \"lang\": \"it\",\n  \"status\": \"APPROVED\",\n  \"quality\": \"GREEN\",\n  \"createdAt\": \"2025-09-15 10:00:00.000+0000\",\n  \"updatedAt\": \"2025-09-15 10:20:31.000+0000\",\n  \"headerText\": \"Welcome\",\n  \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n  \"footer\": \"Per info visita il sito\",\n  \"buttons\": [\n    {\n      \"type\": \"URL\",\n      \"text\": \"Apri il sito\",\n      \"url\": \"https://qlara.ai/\"\n    },\n    {\n      \"type\": \"PHONE_NUMBER\",\n      \"text\": \"Chiamaci\",\n      \"phoneNumber\": \"+39 123123123\"\n    },\n    {\n      \"type\": \"QUICK_REPLY\",\n      \"text\": \"Voglio essere contattato\"\n    }\n  ],\n  \"placeholders\": [\n    \"firstName\"\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "9efb3844-f2b5-570b-a2ee-431bc2b25010",
              "name": "Template not found in your account",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "9822",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": \"TEMPLATE_NOT_FOUND\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "0908f142-9daa-5bba-a36b-fb5c4a7b75fe",
          "name": "Update template",
          "request": {
            "name": "Update template",
            "description": {
              "content": "Updates an existing template and submits it to Meta again: `status` goes back to `PENDING`.\n\n- **The request replaces the whole content**: header, body, footer and buttons are rebuilt from the fields you send, so send again the parts you want to keep.\n- **`category`** cannot be changed once the template is `APPROVED`.\n- **24-hour limit**: an `APPROVED` template cannot be updated within 24 hours of its last update.\n\n> **Tracked URL buttons are the exception: an update does not change where they redirect.** To change the destination of a tracked button and keep it tracked, create a new template.\n\n<details>\n<summary>What an update does to tracked URL buttons</summary>\n\n- **Destinations are recorded once**: when the URL buttons are first tracked, at creation or by the first update with `trackButtonLinks: true`.\n- **A later update with `trackButtonLinks: true`** appends the new URLs to `originalButtonUrls` instead of replacing them. A button whose URL you change keeps redirecting to the old destination, and added or reordered URL buttons redirect to the wrong URL.\n- **An update without `trackButtonLinks: true`** stops the tracking: the URL buttons open the URLs you sent.\n\n</details>",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "message-server",
                "whatsapp",
                "templates",
                ":templateId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "9822",
                  "key": "templateId",
                  "description": "(Required) Template ID"
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PATCH",
            "auth": null,
            "body": {
              "mode": "raw",
              "raw": "{\n  \"headerText\": \"Suuuper Welcome\",\n  \"body\": \"Ciao {firstName} siamo gasatissimi di averti tra noi\",\n  \"footer\": \"Sul nostro sito trovi tutte le info\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "id": "1641878c-9945-5496-a423-8023ba7a1994",
              "name": "Template updated",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "9822",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PATCH",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"headerText\": \"Suuuper Welcome\",\n  \"body\": \"Ciao {firstName} siamo gasatissimi di averti tra noi\",\n  \"footer\": \"Sul nostro sito trovi tutte le info\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 42,\n  \"phoneNumberId\": 5,\n  \"name\": \"marketing_Welcome\",\n  \"slug\": \"marketing_welcome\",\n  \"category\": \"MARKETING\",\n  \"lang\": \"it\",\n  \"status\": \"PENDING\",\n  \"quality\": \"GREEN\",\n  \"createdAt\": \"2025-09-15 10:00:00.000+0000\",\n  \"updatedAt\": \"2025-10-05 15:40:02.000+0000\",\n  \"headerText\": \"Suuuper Welcome\",\n  \"body\": \"Ciao {firstName} siamo gasatissimi di averti tra noi\",\n  \"footer\": \"Sul nostro sito trovi tutte le info\",\n  \"placeholders\": [\n    \"firstName\"\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7af756f1-752a-5c37-a838-5b0448f4f1e1",
              "name": "Invalid request. `data` carries the error code, an object with `message` and `errors`, or the invalid fields with their messages.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "9822",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PATCH",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"headerText\": \"Suuuper Welcome\",\n  \"body\": \"Ciao {firstName} siamo gasatissimi di averti tra noi\",\n  \"footer\": \"Sul nostro sito trovi tutte le info\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {\n    \"message\": \"INVALID_PLACEHOLDER\",\n    \"errors\": [\n      \"codicesconto\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "6a83144f-c7dc-565e-ae71-40c32082ce5a",
              "name": "Template not found in your account",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "9822",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PATCH",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"headerText\": \"Suuuper Welcome\",\n  \"body\": \"Ciao {firstName} siamo gasatissimi di averti tra noi\",\n  \"footer\": \"Sul nostro sito trovi tutte le info\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": \"TEMPLATE_NOT_FOUND\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "9a678ecb-58f9-5da5-a5ba-a2e952051cba",
          "name": "Delete template",
          "request": {
            "name": "Delete template",
            "description": {
              "content": "Deletes a WhatsApp template.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "message-server",
                "whatsapp",
                "templates",
                ":templateId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "9822",
                  "key": "templateId",
                  "description": "(Required) Template ID"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "auth": null
          },
          "response": [
            {
              "id": "f5e248aa-16b9-5621-a661-bf90797c9674",
              "name": "Template deleted",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "9822",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "method": "DELETE",
                "body": {}
              },
              "status": "No Content",
              "code": 204,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/plain"
                }
              ],
              "body": "",
              "cookie": [],
              "_postman_previewlanguage": "text"
            },
            {
              "id": "2bb69ba7-0416-5e45-a7ed-f2fb7866331d",
              "name": "Template not found in your account",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "9822",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "DELETE",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": \"TEMPLATE_NOT_FOUND\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "id": "ec2acb88-dd57-5c31-ab1c-4eb5137cc2d3",
      "name": "Campaigns",
      "item": [
        {
          "id": "312408b4-f62f-56ca-a743-2adc61e17734",
          "name": "Create a WhatsApp campaign",
          "request": {
            "name": "Create a WhatsApp campaign",
            "description": {
              "content": "Creates a bulk WhatsApp campaign, as a draft or already marked ready to send. Nothing is sent until you confirm it.\n\n- **Channel**: set `sendingMode` to `WHATSAPP`, with the phone number (`whatsappPhoneNumberId`) and the template (`whatsappTemplateId`). `WHATSAPP_SMS` tries WhatsApp first and falls back to SMS: it needs `smsSender` and `smsBody` too.\n- **Recipients**: contact lists in `contactListIds` (`destinationType` `0`), phone numbers in `destinations` (`destinationType` `1`), or both (`destinationType` `2`).\n- **Schedule**: set `scheduledDate` to a future time (`yyyy-MM-dd HH:mm:ss.SSSZ`) to send later. Without it the campaign is sent as soon as it is confirmed.\n- **The number is checked against your account**: `whatsappPhoneNumberId` must be one of your WhatsApp numbers, and with `WHATSAPP_SMS` `smsSender` must be an approved sender. Nothing is created when a check fails.\n- **Personalisation of the fallback SMS**: `smsBody` accepts placeholders in single braces named after your contact fields, such as `{firstName}`.\n- **API key**: `CAMPAIGNS` opens every campaign. A key without it manages only the campaigns whose `sendingMode` uses its channel operations, all of them for a combined mode: `SMS` campaigns need `SMS`, `RCS_SMS` campaigns need `RCS` and `SMS`.\n\n<details>\n<summary>From draft to sending, step by step</summary>\n\n1. Create the campaign with `readyToSend` false to save it as a draft.\n2. Adjust it with `PUT /campaigns/{id}`, as many times as you need.\n3. Check the recipient count and the price with `GET /campaigns/{id}/price`.\n4. Set `readyToSend` to true with `PUT /campaigns/{id}` when the configuration is final.\n5. Confirm it with `PUT /campaigns/{id}/confirm`: the campaign is priced, the amount is reserved and the sending starts, at once or at the `scheduledDate`.\n\n</details>\n\n<details>\n<summary>Fields each sending mode needs</summary>\n\n| `sendingMode` | Fields |\n|---|---|\n| `WHATSAPP` | `whatsappPhoneNumberId` and `whatsappTemplateId`: the template is loaded only when both are sent. |\n| `WHATSAPP_SMS` | The WhatsApp fields, plus `smsSender` and `smsBody`: WhatsApp is tried first, then SMS. |\n| `WHATSAPP_RCS_SMS`, `RCS_WHATSAPP_SMS` | The fields of all three channels, tried in the order of the name. The RCS ones are on [Create an RCS campaign](/api-channel-rcs/create-campaign). |\n\n`WHATSAPP_RCS_SMS` is stored and returned as `RCS_WHATSAPP_SMS` (RCS first) whenever `rcsAgentId` is set, which that mode needs before it can be confirmed.\n\n</details>\n\n`POST /campaigns` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/create-campaign) or [RCS](/api-channel-rcs/create-campaign).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "campaigns"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"WhatsApp Newsletter May\",\n  \"sendingMode\": \"WHATSAPP\",\n  \"whatsappPhoneNumberId\": 12,\n  \"whatsappTemplateId\": 55,\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101\n  ],\n  \"scheduledDate\": \"2027-05-15 09:00:00.000+0200\",\n  \"readyToSend\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "id": "d08fc495-2d4f-5066-a5d8-240f0fd8cf62",
              "name": "Campaign created, returned as stored with its `id`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"WhatsApp Newsletter May\",\n  \"sendingMode\": \"WHATSAPP\",\n  \"whatsappPhoneNumberId\": 12,\n  \"whatsappTemplateId\": 55,\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101\n  ],\n  \"scheduledDate\": \"2027-05-15 09:00:00.000+0200\",\n  \"readyToSend\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 1004,\n  \"name\": \"WhatsApp Newsletter May\",\n  \"status\": \"DRAFT\",\n  \"sendingMode\": \"WHATSAPP\",\n  \"whatsappPhoneNumberId\": 12,\n  \"whatsappTemplateId\": 55,\n  \"contactListIds\": [\n    101\n  ],\n  \"scheduledDate\": \"2027-05-15 09:00:00.000+0200\",\n  \"readyToSend\": true\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7251ae4a-4119-52ac-a431-270965158390",
              "name": "A required field is missing, `sendingMode` is not a valid value, or `whatsappTemplateId` is sent without `whatsappPhoneNumberId`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"WhatsApp Newsletter May\",\n  \"sendingMode\": \"WHATSAPP\",\n  \"whatsappPhoneNumberId\": 12,\n  \"whatsappTemplateId\": 55,\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101\n  ],\n  \"scheduledDate\": \"2027-05-15 09:00:00.000+0200\",\n  \"readyToSend\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "1addae82-5362-5aa3-a1c7-d4f80baf9807",
              "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor the operation of every channel of the campaign's `sendingMode`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"WhatsApp Newsletter May\",\n  \"sendingMode\": \"WHATSAPP\",\n  \"whatsappPhoneNumberId\": 12,\n  \"whatsappTemplateId\": 55,\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101\n  ],\n  \"scheduledDate\": \"2027-05-15 09:00:00.000+0200\",\n  \"readyToSend\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "ef5d7f3b-d230-5e6b-a83b-2b4655ea7766",
              "name": "`smsSender` is not an approved sender of your account (see `GET /sms/senders`).",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"WhatsApp Newsletter May\",\n  \"sendingMode\": \"WHATSAPP\",\n  \"whatsappPhoneNumberId\": 12,\n  \"whatsappTemplateId\": 55,\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101\n  ],\n  \"scheduledDate\": \"2027-05-15 09:00:00.000+0200\",\n  \"readyToSend\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "ad915fa7-4c33-574e-a9d4-b2f0db9d63e2",
              "name": "`rcsTemplateId` is not an enabled RCS template of your account, or `whatsappPhoneNumberId` is not one of your WhatsApp phone numbers.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"WhatsApp Newsletter May\",\n  \"sendingMode\": \"WHATSAPP\",\n  \"whatsappPhoneNumberId\": 12,\n  \"whatsappTemplateId\": 55,\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101\n  ],\n  \"scheduledDate\": \"2027-05-15 09:00:00.000+0200\",\n  \"readyToSend\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "caf046fa-91bf-573b-acf0-bf6fa556435a",
          "name": "Update a WhatsApp campaign",
          "request": {
            "name": "Update a WhatsApp campaign",
            "description": {
              "content": "Updates a campaign that has not been confirmed yet. Fields you leave out keep their value, with the exceptions below.\n\n- **Only before confirmation**: the campaign must be in status `DRAFT`, whether or not `readyToSend` is true. Once confirmed with `PUT /campaigns/{id}/confirm` (`PRE_BILLED` and later) it can no longer be updated.\n- **Always required**: `sendingMode` (send the current one to keep it) and `destinationType` (send the value the campaign was created with: an update cannot change it).\n- **WhatsApp template**: to change it, send `whatsappPhoneNumberId` together with `whatsappTemplateId`. The new template, with the content and category that set the price, is loaded only when both are sent.\n- **The number is checked against your account**: `whatsappPhoneNumberId` must be one of your WhatsApp numbers, and with `WHATSAPP_SMS` `smsSender` must be an approved sender. The campaign is not changed when a check fails.\n- **After changing recipients or content**, call `GET /campaigns/{id}/price` for the new recipient count and price.\n\n> **Two fields are reset when you leave them out.** An update without `scheduledDate` removes the schedule, and an update without `readyToSend: true` moves the campaign back to `DRAFT`. Repeat both in every update of a scheduled campaign that is ready to send.\n\n`PUT /campaigns/{id}` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/update-campaign) or [RCS](/api-channel-rcs/update-campaign).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "campaigns",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "6232",
                  "key": "id",
                  "description": "(Required) ID of the campaign."
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sendingMode\": \"WHATSAPP\",\n  \"destinationType\": 0,\n  \"whatsappPhoneNumberId\": 12,\n  \"whatsappTemplateId\": 55,\n  \"contactListIds\": [\n    101\n  ],\n  \"scheduledDate\": \"2027-05-15 09:00:00.000+0200\",\n  \"readyToSend\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "id": "35f2cccc-3be8-51c5-a8a4-51aca46f9a8f",
              "name": "Campaign updated, returned as stored.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destinationType\": 0,\n  \"sendingMode\": \"WHATSAPP\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393339876543\"\n  ],\n  \"smsSender\": \"MYCOMPANY\",\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"scheduledDate\": \"2027-06-01 09:00:00.000+0200\",\n  \"name\": \"Summer Promo\",\n  \"description\": \"25% off all Summer 2025 collection — VIP segment only\",\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"placeholderFields\": {\n    \"SMS\": {\n      \"shortLinkT1\": \"https://example.com/summer\"\n    }\n  },\n  \"readyToSend\": true,\n  \"whatsappPhoneNumberId\": 61,\n  \"whatsappTemplateId\": 169\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 1001,\n  \"userId\": 6725,\n  \"companyId\": 9403,\n  \"creationDate\": \"2026-09-01 10:17:53.200+0000\",\n  \"scheduledDate\": \"2026-09-02 09:00:00.000+0000\",\n  \"lastUpdateDate\": \"2026-09-01 10:20:04.512+0000\",\n  \"startDate\": \"2026-09-02 09:00:01.031+0000\",\n  \"endDate\": \"2026-09-02 09:14:37.870+0000\",\n  \"name\": \"Spring Promo\",\n  \"description\": \"string\",\n  \"status\": \"ENDED\",\n  \"sendingMode\": \"SMS\",\n  \"contactListIds\": [\n    87,\n    2192\n  ],\n  \"totalDestinations\": 9908,\n  \"totalPrice\": 2544,\n  \"walletKind\": \"CREDITS\",\n  \"smsSender\": \"string\",\n  \"smsBody\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"totalSuccess\": 3397,\n  \"totalFailed\": 8194,\n  \"totalSent\": 1727,\n  \"totalRead\": 3591,\n  \"totalFallback\": 6929,\n  \"smsSent\": 8481,\n  \"smsPending\": 2627,\n  \"smsSuccess\": 1147,\n  \"smsFailed\": 1703,\n  \"smsFallback\": 7031,\n  \"waSent\": 7116,\n  \"waPending\": 816,\n  \"waSuccess\": 4262,\n  \"waFailed\": 6246,\n  \"waFallback\": 1850,\n  \"waRead\": 2794,\n  \"destinationType\": 4949,\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"isUpdatable\": true,\n  \"maxUpdateTime\": \"string\",\n  \"readyToSend\": false,\n  \"whatsappPhoneNumberId\": 3223,\n  \"whatsappTemplateId\": 2530,\n  \"whatsappMessageBody\": {\n    \"key_0\": 9172.947483602911\n  },\n  \"numOfDistinctContact\": 8817,\n  \"whatsappExceedingDestinationUnitPrice\": 8251,\n  \"whatsappExceedingDestinationNum\": 754\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "fcd3b02b-941c-55ea-a69d-f60dbb4e08c7",
              "name": "The body is invalid (including a missing `sendingMode` or `destinationType`, or `whatsappTemplateId` without `whatsappPhoneNumberId`), or the campaign can no longer be edited.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destinationType\": 0,\n  \"sendingMode\": \"WHATSAPP\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393339876543\"\n  ],\n  \"smsSender\": \"MYCOMPANY\",\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"scheduledDate\": \"2027-06-01 09:00:00.000+0200\",\n  \"name\": \"Summer Promo\",\n  \"description\": \"25% off all Summer 2025 collection — VIP segment only\",\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"placeholderFields\": {\n    \"SMS\": {\n      \"shortLinkT1\": \"https://example.com/summer\"\n    }\n  },\n  \"readyToSend\": true,\n  \"whatsappPhoneNumberId\": 61,\n  \"whatsappTemplateId\": 169\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "095c3754-6128-5525-a70a-f64b00e76c34",
              "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor the operation of every channel of the campaign's `sendingMode`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destinationType\": 0,\n  \"sendingMode\": \"WHATSAPP\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393339876543\"\n  ],\n  \"smsSender\": \"MYCOMPANY\",\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"scheduledDate\": \"2027-06-01 09:00:00.000+0200\",\n  \"name\": \"Summer Promo\",\n  \"description\": \"25% off all Summer 2025 collection — VIP segment only\",\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"placeholderFields\": {\n    \"SMS\": {\n      \"shortLinkT1\": \"https://example.com/summer\"\n    }\n  },\n  \"readyToSend\": true,\n  \"whatsappPhoneNumberId\": 61,\n  \"whatsappTemplateId\": 169\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "41c8544c-7958-5876-a8fc-8ccaf9565c31",
              "name": "`smsSender` is not an approved sender of your account (see `GET /sms/senders`).",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destinationType\": 0,\n  \"sendingMode\": \"WHATSAPP\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393339876543\"\n  ],\n  \"smsSender\": \"MYCOMPANY\",\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"scheduledDate\": \"2027-06-01 09:00:00.000+0200\",\n  \"name\": \"Summer Promo\",\n  \"description\": \"25% off all Summer 2025 collection — VIP segment only\",\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"placeholderFields\": {\n    \"SMS\": {\n      \"shortLinkT1\": \"https://example.com/summer\"\n    }\n  },\n  \"readyToSend\": true,\n  \"whatsappPhoneNumberId\": 61,\n  \"whatsappTemplateId\": 169\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "2e74cc31-9a06-597c-ad63-250a0bef2009",
              "name": "No campaign with this ID in your account, `rcsTemplateId` is not an enabled RCS template of your account, or `whatsappPhoneNumberId` is not one of your WhatsApp phone numbers.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destinationType\": 0,\n  \"sendingMode\": \"WHATSAPP\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393339876543\"\n  ],\n  \"smsSender\": \"MYCOMPANY\",\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"scheduledDate\": \"2027-06-01 09:00:00.000+0200\",\n  \"name\": \"Summer Promo\",\n  \"description\": \"25% off all Summer 2025 collection — VIP segment only\",\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"placeholderFields\": {\n    \"SMS\": {\n      \"shortLinkT1\": \"https://example.com/summer\"\n    }\n  },\n  \"readyToSend\": true,\n  \"whatsappPhoneNumberId\": 61,\n  \"whatsappTemplateId\": 169\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "6edae126-3d30-59fe-a93a-02b292587d77",
          "name": "Get the total price of a WhatsApp campaign",
          "request": {
            "name": "Get the total price of a WhatsApp campaign",
            "description": {
              "content": "Returns the campaign with its total price, computed on every call from the current configuration.\n\n- **What sets the price**: the `sendingMode`, the distinct recipients of the campaign's contact lists and `destinations`, and the per-message rate of your account.\n- **In the response**: `totalPrice`, its unit (`walletKind`) and the number of distinct recipients (`numOfDistinctContact`).\n- **Nothing is reserved**: use it as a cost preview. `PUT /campaigns/{id}/confirm` prices the campaign again and reserves the amount.\n- **Accounts without cross-channel fallback**: a campaign that combines WhatsApp with other channels is switched to `WHATSAPP` before pricing, and the change is saved.\n\n`GET /campaigns/{id}/price` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/get-total-price) or [RCS](/api-channel-rcs/get-total-price).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "campaigns",
                ":id",
                "price"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "6232",
                  "key": "id",
                  "description": "(Required) ID of the campaign."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "0cd797ec-bb6b-577d-a62e-1b80a8c740e5",
              "name": "The campaign with its `totalPrice`, `walletKind` and `numOfDistinctContact`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "price"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 1001,\n  \"userId\": 6725,\n  \"companyId\": 9403,\n  \"creationDate\": \"2026-09-01 10:17:53.200+0000\",\n  \"scheduledDate\": \"2026-09-02 09:00:00.000+0000\",\n  \"lastUpdateDate\": \"2026-09-01 10:20:04.512+0000\",\n  \"startDate\": \"2026-09-02 09:00:01.031+0000\",\n  \"endDate\": \"2026-09-02 09:14:37.870+0000\",\n  \"name\": \"Spring Promo\",\n  \"description\": \"string\",\n  \"status\": \"ENDED\",\n  \"sendingMode\": \"SMS\",\n  \"contactListIds\": [\n    87,\n    2192\n  ],\n  \"totalDestinations\": 9908,\n  \"totalPrice\": 2544,\n  \"walletKind\": \"CREDITS\",\n  \"smsSender\": \"string\",\n  \"smsBody\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"totalSuccess\": 3397,\n  \"totalFailed\": 8194,\n  \"totalSent\": 1727,\n  \"totalRead\": 3591,\n  \"totalFallback\": 6929,\n  \"smsSent\": 8481,\n  \"smsPending\": 2627,\n  \"smsSuccess\": 1147,\n  \"smsFailed\": 1703,\n  \"smsFallback\": 7031,\n  \"waSent\": 7116,\n  \"waPending\": 816,\n  \"waSuccess\": 4262,\n  \"waFailed\": 6246,\n  \"waFallback\": 1850,\n  \"waRead\": 2794,\n  \"destinationType\": 4949,\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"isUpdatable\": true,\n  \"maxUpdateTime\": \"string\",\n  \"readyToSend\": false,\n  \"whatsappPhoneNumberId\": 3223,\n  \"whatsappTemplateId\": 2530,\n  \"whatsappMessageBody\": {\n    \"key_0\": 9172.947483602911\n  },\n  \"numOfDistinctContact\": 8817,\n  \"whatsappExceedingDestinationUnitPrice\": 8251,\n  \"whatsappExceedingDestinationNum\": 754\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "4da196a0-a0a5-57dc-a1b0-198dcf031e85",
              "name": "The campaign is incomplete or has no valid recipient.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "price"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "5952f133-849d-52ff-a2bd-93f0a720b3c5",
              "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor the operation of every channel of the campaign's `sendingMode`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "price"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "28036fcd-94f6-5000-a5d9-d46f3ba9db73",
              "name": "No campaign with this ID in your account.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "price"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "48cb86b0-2448-55bc-acde-44da54df8b0f",
          "name": "Confirm / schedule a WhatsApp campaign",
          "request": {
            "name": "Confirm / schedule a WhatsApp campaign",
            "description": {
              "content": "Confirms a campaign: it is priced from its current configuration, the amount is reserved on your wallet and the sending is queued, at once or at the `scheduledDate`.\n\n- **What the campaign needs**: a name, a valid `sendingMode` and `destinationType`, `whatsappPhoneNumberId` and `whatsappTemplateId` (plus `smsSender` and `smsBody` with `WHATSAPP_SMS`), the recipients its `destinationType` asks for, and enough credit to cover the price.\n- **Preview the price** with `GET /campaigns/{id}/price`. `POST /campaigns/{id}/calculateGoal` is not needed: it only writes the campaign description.\n- **`readyToSend`**: set it to true once the configuration is final. Confirmation does not currently check the flag.\n- **After confirmation** the campaign is `PRE_BILLED` and can no longer be updated. Without a `scheduledDate` it starts sending at once and cannot be deleted. A scheduled campaign can still be deleted with `DELETE /campaigns/{id}` while its `scheduledDate` is outside the platform's edit window, which releases the reserved amount.\n- **Accounts without cross-channel fallback**: a campaign that combines WhatsApp with other channels is switched to `WHATSAPP` before pricing.\n\n> **After a timeout, check before you retry.** A campaign that is already confirmed answers `400` as well, so read its status with `GET /campaigns/{id}` first.\n\n`PUT /campaigns/{id}/confirm` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/confirm-campaign) or [RCS](/api-channel-rcs/confirm-campaign).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "campaigns",
                ":id",
                "confirm"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "6232",
                  "key": "id",
                  "description": "(Required) ID of the campaign."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "4a27c77a-914a-5ead-ab78-b77a4bb687f5",
              "name": "Campaign confirmed and queued for sending. No response body.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {}
              },
              "status": "Accepted",
              "code": 202,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "21f28608-fff0-5e99-a788-1623908cb4ce",
              "name": "A required field or the recipients are missing, the computed price is zero (for example, no valid recipient), your wallet balance does not cover the price, or the campaign is already confirmed.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "efd7e24f-b892-53f8-a6ea-507bfc159961",
              "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor the operation of every channel of the campaign's `sendingMode`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "815d99b7-4559-5e07-aa4a-c47fc12d30bf",
              "name": "No campaign with this ID in your account.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "e2009441-03a9-5ad0-a799-f5fafba35f73",
          "name": "Get a WhatsApp campaign",
          "request": {
            "name": "Get a WhatsApp campaign",
            "description": {
              "content": "Returns one campaign with its configuration, status and delivery counters. It works at every stage: draft, confirmed, sending or finished.\n\n- **Status**: `status` names the stage the campaign is in; the values are listed on the field. A campaign marked ready to send is reported as `DRAFT` with `readyToSend` true.\n- **Configuration**: `sendingMode`, the message content (the WhatsApp template in `whatsappMessageBody`, and `smsBody` for an SMS fallback), the recipients (`contactListIds`, `destinations`) and the `scheduledDate`, if any.\n- **Results**: `totalDestinations`, `totalSuccess`, `totalFailed` and the WhatsApp counters, plus the SMS ones for a fallback.\n\n`GET /campaigns/{id}` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/get-campaign-by-id) or [RCS](/api-channel-rcs/get-campaign-by-id).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "campaigns",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "6232",
                  "key": "id",
                  "description": "(Required) ID of the campaign."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "7e04c07c-bab8-56fe-a7df-158ddd3e8f35",
              "name": "The campaign.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 1004,\n  \"name\": \"WhatsApp Newsletter May\",\n  \"status\": \"ENDED\",\n  \"sendingMode\": \"WHATSAPP\",\n  \"whatsappPhoneNumberId\": 12,\n  \"whatsappTemplateId\": 55,\n  \"contactListIds\": [\n    101\n  ],\n  \"scheduledDate\": \"2027-05-15 09:00:00.000+0200\",\n  \"totalDestinations\": 500,\n  \"totalSuccess\": 485,\n  \"totalFailed\": 15,\n  \"readyToSend\": false\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "a4afa11c-cbd1-503c-a1c3-2f46d0953ded",
              "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor the operation of every channel of the campaign's `sendingMode`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "964cda88-6c0c-5f19-aaa5-57f23fcede94",
              "name": "No campaign with this ID in your account.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "32ceb36d-532d-59f9-ac5c-42d3e918ea78",
          "name": "List WhatsApp campaigns",
          "request": {
            "name": "List WhatsApp campaigns",
            "description": {
              "content": "Returns the campaigns of your account, one page at a time, newest first by creation date.\n\n- **Confirmed campaigns by default**: without a status filter only confirmed campaigns are listed (`PRE_BILLED` onwards). Drafts are left out.\n- **Status filters**: `isDraft`, `isProgrammed` and `readyToSend` choose the stage to list. `readyToSend` wins over the other two, and `isDraft=true` wins over `isProgrammed`.\n- **WhatsApp campaigns only**: send `sendingMode=WHATSAPP`, or `sendingMode=WHATSAPP,WHATSAPP_SMS` to include those with an SMS fallback. Without `sendingMode` the list holds the campaigns of every channel. Each mode is matched exactly, so `WHATSAPP` does not include `WHATSAPP_SMS`.\n- **Phone number**: `channel=WHATSAPP` and `channelId` go together, and keep the campaigns of one WhatsApp number: `channelId` is the numeric phone number ID.\n- **Search**: `search` is a case-insensitive partial match on the campaign name. The WhatsApp template content and the description are not searched.\n- **Date window**: `startDate` and `endDate` (`yyyy-MM-dd`) keep the campaigns scheduled in that window, or created in it when they have no `scheduledDate`. `endDate` includes the whole day.\n- **Keys scoped by channel**: a key without `CAMPAIGNS` lists only the campaigns whose channels it holds (`SMS`, `RCS`, `WHATSAPP`). A `sendingMode` filter with a channel the key lacks answers `401`.\n\n<details>\n<summary>What each status filter lists</summary>\n\n| Filter | Campaigns listed |\n|---|---|\n| `isDraft=true` | Not yet confirmed, including those marked ready to send, which come back with status `DRAFT` and `readyToSend` true. |\n| `isDraft=false` | Same as leaving it out: confirmed campaigns only. |\n| `isProgrammed=true` | Confirmed and not yet fully sent (`PRE_BILLED` through `STARTED`), whether scheduled for later or sending now. |\n| `isProgrammed=false` | Sent, ended or archived. |\n| `readyToSend=true` | Drafts marked ready to send. |\n| `readyToSend=false` | The other drafts. |\n\n</details>\n\n`GET /campaigns` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/get-campaigns) or [RCS](/api-channel-rcs/get-campaigns).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "campaigns"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "channel",
                  "value": "string",
                  "description": "`WHATSAPP` (case-insensitive), only together with `channelId`: it says that `channelId` is a WhatsApp phone number ID. To filter by sending mode use `sendingMode`."
                },
                {
                  "disabled": false,
                  "key": "channelId",
                  "value": "string",
                  "description": "Numeric WhatsApp phone number ID to filter by, only together with `channel`."
                },
                {
                  "disabled": false,
                  "key": "direction",
                  "value": "string",
                  "description": "Sort by creation date: `DESC` (default, newest first) or `ASC`."
                },
                {
                  "disabled": false,
                  "key": "endDate",
                  "value": "string",
                  "description": "End of the date window (`yyyy-MM-dd`), whole day included."
                },
                {
                  "disabled": false,
                  "key": "isDraft",
                  "value": "true",
                  "description": "`true` lists the campaigns not yet confirmed (drafts, including those marked ready to send). `false` or omitted lists confirmed campaigns only."
                },
                {
                  "disabled": false,
                  "key": "isProgrammed",
                  "value": "true",
                  "description": "`true` lists confirmed campaigns not yet fully sent, scheduled or sending. `false` lists campaigns sent, ended or archived. Ignored with `isDraft=true` or `readyToSend`."
                },
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "642",
                  "description": "Page size, at most 1000 (default 10; 0 also means the default)."
                },
                {
                  "disabled": false,
                  "key": "page",
                  "value": "4622",
                  "description": "Page number, 0-based."
                },
                {
                  "disabled": false,
                  "key": "readyToSend",
                  "value": "true",
                  "description": "`true` lists the drafts marked ready to send, `false` the other drafts. Overrides `isDraft` and `isProgrammed`."
                },
                {
                  "disabled": false,
                  "key": "search",
                  "value": "string",
                  "description": "Case-insensitive partial match on the name. The WhatsApp template content and the description are not searched."
                },
                {
                  "disabled": false,
                  "key": "sendingMode",
                  "value": "string",
                  "description": "`WHATSAPP`, `WHATSAPP_SMS` or both separated by a comma, each matched exactly (case-insensitive). Omit it for the campaigns of every channel."
                },
                {
                  "disabled": false,
                  "key": "startDate",
                  "value": "string",
                  "description": "Start of the date window (`yyyy-MM-dd`), matched against `scheduledDate`, or `creationDate` when there is none."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "4b9a793a-9408-5a9b-a415-df45f217409b",
              "name": "The campaigns that match the filters, one page at a time.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "string"
                    },
                    {
                      "key": "channelId",
                      "value": "string"
                    },
                    {
                      "key": "direction",
                      "value": "string"
                    },
                    {
                      "key": "endDate",
                      "value": "string"
                    },
                    {
                      "key": "isDraft",
                      "value": "true"
                    },
                    {
                      "key": "isProgrammed",
                      "value": "true"
                    },
                    {
                      "key": "limit",
                      "value": "642"
                    },
                    {
                      "key": "page",
                      "value": "4622"
                    },
                    {
                      "key": "readyToSend",
                      "value": "true"
                    },
                    {
                      "key": "search",
                      "value": "string"
                    },
                    {
                      "key": "sendingMode",
                      "value": "string"
                    },
                    {
                      "key": "startDate",
                      "value": "string"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "d2b5e42b-e753-5b5b-a9bf-1f8caf9c9ba3",
              "name": "`channel` or `channelId` is sent without the other, `channel` is unknown, `channelId` is not numeric with `channel=WHATSAPP`, `startDate` or `endDate` is not a valid date, `sendingMode` is not a valid value, `page` is negative, or `limit` is negative or above 1000.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "string"
                    },
                    {
                      "key": "channelId",
                      "value": "string"
                    },
                    {
                      "key": "direction",
                      "value": "string"
                    },
                    {
                      "key": "endDate",
                      "value": "string"
                    },
                    {
                      "key": "isDraft",
                      "value": "true"
                    },
                    {
                      "key": "isProgrammed",
                      "value": "true"
                    },
                    {
                      "key": "limit",
                      "value": "642"
                    },
                    {
                      "key": "page",
                      "value": "4622"
                    },
                    {
                      "key": "readyToSend",
                      "value": "true"
                    },
                    {
                      "key": "search",
                      "value": "string"
                    },
                    {
                      "key": "sendingMode",
                      "value": "string"
                    },
                    {
                      "key": "startDate",
                      "value": "string"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7ea54274-8b29-5f18-a6df-c063da66fbd0",
              "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor the operation of every channel of the campaign's `sendingMode`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "string"
                    },
                    {
                      "key": "channelId",
                      "value": "string"
                    },
                    {
                      "key": "direction",
                      "value": "string"
                    },
                    {
                      "key": "endDate",
                      "value": "string"
                    },
                    {
                      "key": "isDraft",
                      "value": "true"
                    },
                    {
                      "key": "isProgrammed",
                      "value": "true"
                    },
                    {
                      "key": "limit",
                      "value": "642"
                    },
                    {
                      "key": "page",
                      "value": "4622"
                    },
                    {
                      "key": "readyToSend",
                      "value": "true"
                    },
                    {
                      "key": "search",
                      "value": "string"
                    },
                    {
                      "key": "sendingMode",
                      "value": "string"
                    },
                    {
                      "key": "startDate",
                      "value": "string"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "002cc528-7c3e-5609-a03c-a4c04976db9b",
          "name": "Get WhatsApp campaign statistics",
          "request": {
            "name": "Get WhatsApp campaign statistics",
            "description": {
              "content": "Returns delivery statistics for a date range, grouped by time bucket, newest bucket first.\n\n- **Required**: `startDate` and `endDate` (`yyyy-MM-dd`) and `aggregateOn` (`hour`, `day`, `week` or `month`, case-insensitive). `endDate` cannot be before `startDate`, and the window cannot exceed 1 year.\n- **Campaign rows** (`isHttpStat` false): each one adds up the campaigns of one time bucket, `sendingMode` and `destinationType`, placed by the date they started sending.\n- **API rows** (`isHttpStat` true): the messages you sent through the API, outside any campaign, one row per time bucket and channel. Leave them out when you need campaign figures only.\n- **Drafts**: `isDraft` defaults to false, which counts confirmed campaigns. `isDraft=true` counts only the campaigns not yet confirmed, which have usually sent nothing. API rows are included either way.\n- **Keys scoped by channel**: a key without `CAMPAIGNS` must send a `sendingMode` whose channels it holds (`RCS_SMS` needs `RCS` and `SMS`).\n- **Pagination is optional**: without `page` and `limit` every row comes back in one page. `page` is 0-based, `limit` sets the page size (default 10, at most 1000), and a `limit` without `page` returns the first page. `direction` is currently ignored.\n\nWith `sendingMode=WHATSAPP` the rows count the `WHATSAPP`, `WHATSAPP_SMS` and `WHATSAPP_RCS_SMS` campaigns and the WhatsApp messages sent through the API. `RCS_WHATSAPP_SMS` campaigns are counted only when `sendingMode` is omitted, together with every other channel.\n\n`GET /campaigns/stats` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/get-stats) or [RCS](/api-channel-rcs/get-stats).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "campaigns",
                "stats"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "aggregateOn",
                  "value": "string",
                  "description": "(Required) Time bucket the rows are grouped by: `hour`, `day`, `week` or `month` (case-insensitive)."
                },
                {
                  "disabled": false,
                  "key": "direction",
                  "value": "string",
                  "description": "Currently ignored: rows always come newest time bucket first."
                },
                {
                  "disabled": false,
                  "key": "endDate",
                  "value": "string",
                  "description": "(Required) End date (`yyyy-MM-dd`), not before `startDate` and at most 1 year after it."
                },
                {
                  "disabled": false,
                  "key": "isDraft",
                  "value": "true",
                  "description": "`false` (default) counts confirmed campaigns, `true` the campaigns not yet confirmed. Rows for messages sent through the API are included either way."
                },
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "642",
                  "description": "Page size, at most 1000 (default 10; 0 also means the default). Sent without `page`, it returns the first page."
                },
                {
                  "disabled": false,
                  "key": "page",
                  "value": "4622",
                  "description": "Page number, 0-based. Without `page` and `limit` every row is returned in one page."
                },
                {
                  "disabled": false,
                  "key": "sendingMode",
                  "value": "string",
                  "description": "`WHATSAPP` (case-insensitive) for the WhatsApp figures only. Omit it for every channel."
                },
                {
                  "disabled": false,
                  "key": "startDate",
                  "value": "string",
                  "description": "(Required) Start date (`yyyy-MM-dd`)."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "71108a96-da1f-54c7-aecb-f1d78eab83ef",
              "name": "The statistics rows of the date range.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    "stats"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "aggregateOn",
                      "value": "string"
                    },
                    {
                      "key": "direction",
                      "value": "string"
                    },
                    {
                      "key": "endDate",
                      "value": "string"
                    },
                    {
                      "key": "isDraft",
                      "value": "true"
                    },
                    {
                      "key": "limit",
                      "value": "642"
                    },
                    {
                      "key": "page",
                      "value": "4622"
                    },
                    {
                      "key": "sendingMode",
                      "value": "string"
                    },
                    {
                      "key": "startDate",
                      "value": "string"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": [\n    {\n      \"timeBucket\": \"2026-09-01 00:00:00\",\n      \"sendingMode\": \"SMS\",\n      \"isHttpStat\": false,\n      \"numMessageCampaigns\": 5,\n      \"destinationType\": 6967,\n      \"totalDestinations\": 2836,\n      \"totalSent\": 7912,\n      \"totalSuccess\": 2005,\n      \"totalRead\": 8774,\n      \"totalFailed\": 387,\n      \"totalFallback\": 9503,\n      \"smsSent\": 5459,\n      \"smsPending\": 4616,\n      \"smsSuccess\": 8256,\n      \"smsFailed\": 2002,\n      \"smsFallback\": 8536,\n      \"waSent\": 7562,\n      \"waPending\": 4379,\n      \"waSuccess\": 1904,\n      \"waFailed\": 9231,\n      \"waFallback\": 5101,\n      \"waRead\": 5612,\n      \"totalSms\": 6332,\n      \"totalWhatsapp\": 415,\n      \"totalPending\": 4372,\n      \"totalDelivered\": 6084,\n      \"totalError\": 5143,\n      \"totalCreditError\": 8702\n    },\n    {\n      \"timeBucket\": \"2026-09-01 00:00:00\",\n      \"sendingMode\": \"SMS\",\n      \"isHttpStat\": false,\n      \"numMessageCampaigns\": 5,\n      \"destinationType\": 6574,\n      \"totalDestinations\": 9021,\n      \"totalSent\": 7608,\n      \"totalSuccess\": 4058,\n      \"totalRead\": 6409,\n      \"totalFailed\": 4969,\n      \"totalFallback\": 8296,\n      \"smsSent\": 5441,\n      \"smsPending\": 3438,\n      \"smsSuccess\": 1152,\n      \"smsFailed\": 809,\n      \"smsFallback\": 9006,\n      \"waSent\": 7555,\n      \"waPending\": 224,\n      \"waSuccess\": 5398,\n      \"waFailed\": 2201,\n      \"waFallback\": 2165,\n      \"waRead\": 5706,\n      \"totalSms\": 5150,\n      \"totalWhatsapp\": 862,\n      \"totalPending\": 4659,\n      \"totalDelivered\": 7979,\n      \"totalError\": 6775,\n      \"totalCreditError\": 9281\n    }\n  ],\n  \"totalCount\": 52,\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalPages\": 6\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "9b92a4a3-5178-56a6-a5bb-47790dcd4842",
              "name": "`startDate`, `endDate` or `aggregateOn` is missing or invalid, the date window is reversed or longer than 1 year, or a key without `CAMPAIGNS` sends no `sendingMode`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    "stats"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "aggregateOn",
                      "value": "string"
                    },
                    {
                      "key": "direction",
                      "value": "string"
                    },
                    {
                      "key": "endDate",
                      "value": "string"
                    },
                    {
                      "key": "isDraft",
                      "value": "true"
                    },
                    {
                      "key": "limit",
                      "value": "642"
                    },
                    {
                      "key": "page",
                      "value": "4622"
                    },
                    {
                      "key": "sendingMode",
                      "value": "string"
                    },
                    {
                      "key": "startDate",
                      "value": "string"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "24ad6f0e-9219-595d-a1e8-96d508c64570",
              "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor the operation of every channel of the campaign's `sendingMode`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    "stats"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "aggregateOn",
                      "value": "string"
                    },
                    {
                      "key": "direction",
                      "value": "string"
                    },
                    {
                      "key": "endDate",
                      "value": "string"
                    },
                    {
                      "key": "isDraft",
                      "value": "true"
                    },
                    {
                      "key": "limit",
                      "value": "642"
                    },
                    {
                      "key": "page",
                      "value": "4622"
                    },
                    {
                      "key": "sendingMode",
                      "value": "string"
                    },
                    {
                      "key": "startDate",
                      "value": "string"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "f7520623-75c8-5f8d-acff-0f100509fc6b",
          "name": "Generate the description of a WhatsApp campaign",
          "request": {
            "name": "Generate the description of a WhatsApp campaign",
            "description": {
              "content": "Generates a description of the campaign with an AI model and saves it as the campaign `description`, replacing the current one.\n\n- **Source**: the WhatsApp template of the campaign.\n- **No content yet**: nothing is generated and the stored description is left unchanged.\n- **Not a pricing step**: it computes neither recipients nor cost, and confirming a campaign does not require it. For the recipient count and the price, use `GET /campaigns/{id}/price`.\n\n`POST /campaigns/{id}/calculateGoal` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/calculate-goal) or [RCS](/api-channel-rcs/calculate-goal).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "campaigns",
                ":id",
                "calculateGoal"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "6232",
                  "key": "id",
                  "description": "(Required) ID of the campaign."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "a77a22d6-52ac-56f7-a19f-b8b6ba9868f6",
              "name": "Description generated. The campaign is returned with it.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "calculateGoal"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 1001,\n  \"userId\": 6725,\n  \"companyId\": 9403,\n  \"creationDate\": \"2026-09-01 10:17:53.200+0000\",\n  \"scheduledDate\": \"2026-09-02 09:00:00.000+0000\",\n  \"lastUpdateDate\": \"2026-09-01 10:20:04.512+0000\",\n  \"startDate\": \"2026-09-02 09:00:01.031+0000\",\n  \"endDate\": \"2026-09-02 09:14:37.870+0000\",\n  \"name\": \"Spring Promo\",\n  \"description\": \"string\",\n  \"status\": \"ENDED\",\n  \"sendingMode\": \"SMS\",\n  \"contactListIds\": [\n    87,\n    2192\n  ],\n  \"totalDestinations\": 9908,\n  \"totalPrice\": 2544,\n  \"walletKind\": \"CREDITS\",\n  \"smsSender\": \"string\",\n  \"smsBody\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"totalSuccess\": 3397,\n  \"totalFailed\": 8194,\n  \"totalSent\": 1727,\n  \"totalRead\": 3591,\n  \"totalFallback\": 6929,\n  \"smsSent\": 8481,\n  \"smsPending\": 2627,\n  \"smsSuccess\": 1147,\n  \"smsFailed\": 1703,\n  \"smsFallback\": 7031,\n  \"waSent\": 7116,\n  \"waPending\": 816,\n  \"waSuccess\": 4262,\n  \"waFailed\": 6246,\n  \"waFallback\": 1850,\n  \"waRead\": 2794,\n  \"destinationType\": 4949,\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"isUpdatable\": true,\n  \"maxUpdateTime\": \"string\",\n  \"readyToSend\": false,\n  \"whatsappPhoneNumberId\": 3223,\n  \"whatsappTemplateId\": 2530,\n  \"whatsappMessageBody\": {\n    \"key_0\": 9172.947483602911\n  },\n  \"numOfDistinctContact\": 8817,\n  \"whatsappExceedingDestinationUnitPrice\": 8251,\n  \"whatsappExceedingDestinationNum\": 754\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "a164366d-ef69-5ab1-a95f-f3528ab3184f",
              "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor the operation of every channel of the campaign's `sendingMode`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "calculateGoal"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "5f1b4deb-c0e4-5ba1-acd7-0e8882dd8ac3",
              "name": "No campaign with this ID in your account.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id",
                    "calculateGoal"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "e2e2e6da-cb97-53aa-a076-b5fa1539dcb7",
          "name": "Delete a WhatsApp campaign",
          "request": {
            "name": "Delete a WhatsApp campaign",
            "description": {
              "content": "Deletes a campaign. This cannot be undone.\n\n- **Not yet confirmed**: the campaign can always be deleted, whether or not it is marked ready to send.\n- **Confirmed and scheduled** (`PRE_BILLED`): it can be deleted only while its `scheduledDate` is still outside the platform's edit window. Deleting it releases the funds reserved at confirmation.\n- **From `READY` onwards**: the campaign is being prepared or sent and can no longer be deleted.\n\nTo stop a scheduled campaign before it is sent, delete it well before its `scheduledDate`.\n\n`DELETE /campaigns/{id}` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/delete-campaign) or [RCS](/api-channel-rcs/delete-campaign).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "campaigns",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "6232",
                  "key": "id",
                  "description": "(Required) ID of the campaign."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "ea18af1d-07a9-5fe3-a792-374b5a21c7d4",
              "name": "Campaign deleted. No response body.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "DELETE",
                "body": {}
              },
              "status": "No Content",
              "code": 204,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "4665205d-7a1f-5a4b-a951-11edd0089ec9",
              "name": "The campaign can no longer be deleted.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "DELETE",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "2f0cb6d2-8f92-52e8-a0ad-4c05763c54b6",
              "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor the operation of every channel of the campaign's `sendingMode`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "DELETE",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "0d7f5a69-687d-50e1-a388-71c021d1c5cf",
              "name": "No campaign with this ID in your account.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "campaigns",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "6232",
                      "key": "id",
                      "description": "(Required) ID of the campaign."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "DELETE",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "id": "d5f83042-71ff-573e-a0f9-d54cb8acfc7f",
      "name": "Single WhatsApp sends",
      "item": [
        {
          "id": "ca09614e-c770-558c-a9ae-9999b777e03f",
          "name": "Send WhatsApp message",
          "request": {
            "name": "Send WhatsApp message",
            "description": {
              "content": "Sends a WhatsApp message. The content is one of the following, **mutually exclusive**: one of the two is required.\n\n- **Approved template** (`template`): a template approved by Meta.\n- **Free-form message** (`body`): only within the 24h window from the user's last message.\n\nFallback and tracked links:\n\n- **Fallback**: if the message cannot be delivered via WhatsApp, a fallback to RCS (`fallbackRcs`) and/or SMS (`fallbackSms`) can be configured. The fallbacks apply only if your account supports mixed-channel sending; otherwise they are ignored.\n- **Tracked links in the body**: for templates with `{shortLinkT1}` in the body, insert the `shortLinkT1` placeholder in the `placeholders` map with the actual destination URL.\n- **Tracked URL buttons**: the URL buttons of templates created with `trackButtonLinks: true` are tracked automatically, and there is nothing to pass.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "message-server",
                "whatsapp",
                "send"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": null,
            "body": {
              "mode": "raw",
              "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "id": "44338c69-13c1-5b56-a9a2-3ee304de22f0",
              "name": "Request accepted. Check `results.whatsapp.accepted` to see whether the message was accepted.\n\n- **`accepted: true`** means the message was accepted for sending, not that it was delivered. Delivery confirmation arrives via webhook.\n- **With fallbacks**, `results` also carries `rcs` and/or `sms`: those messages are prepared now and sent only if the previous channel fails. In that case `results.whatsapp.accepted` and `results.rcs.accepted` are always `true`, and only the SMS can be rejected at this stage.\n- **Omitted values**: the results of the channels not involved, and `reasons` when the message is accepted.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Accepted",
              "code": 202,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"messageId\": \"e76614d1-4ac1-4d94-89f0-d07f1b5a190c\",\n  \"simulation\": false,\n  \"results\": {\n    \"whatsapp\": {\n      \"accepted\": true\n    }\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "02f34d47-ea7d-5573-a336-030c8be18217",
              "name": "Invalid request. Fields that fail validation are listed in `data`, an object that maps the path of each invalid field (such as `sendWhatsAppMessage.request.destination`) to its messages; a body that cannot be read gives `data: \"Invalid request body\"`. A number, template or RCS agent that your account cannot use gives `message` and `code` instead.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {\n    \"sendWhatsAppMessage.request.destination\": [\n      \"'destination' can't be blank\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "416f2600-a874-5c9c-aaa9-3e1162d6d24c",
              "name": "Missing or invalid credentials. The body is empty.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/plain"
                }
              ],
              "body": "",
              "cookie": [],
              "_postman_previewlanguage": "text"
            },
            {
              "id": "c526428a-bfab-59da-a448-872467c44ffd",
              "name": "The platform cannot find your account: the message is not stored. Contact support",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"message\": \"Company not found\",\n  \"code\": 102\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e5ba59cf-be35-5504-a3ca-3a84bb4474c3",
              "name": "Unexpected error while handling the message",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"error\",\n  \"message\": \"Something bad happened. Please try again!\",\n  \"code\": 8\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "acaf4598-e7ea-5a76-a801-8505e468fbb1",
              "name": "The calling IP address is outside the IP ranges configured for your account",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Network Authentication Required",
              "code": 511,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"error\",\n  \"message\": \"IP address not allowed\",\n  \"code\": 100\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "77d77d29-a9e6-57d0-a525-8b55d341cc33",
          "name": "List WhatsApp Business numbers",
          "request": {
            "name": "List WhatsApp Business numbers",
            "description": {
              "content": "Returns the WhatsApp Business numbers associated with your account, with pagination. Disconnected numbers are not listed.\n\nFrom the response, use the `id` field of the number as the `phoneNumberId` in send requests.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "message-server",
                "whatsapp",
                "phone-numbers"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "10",
                  "description": "Maximum number of items per page"
                },
                {
                  "disabled": false,
                  "key": "page",
                  "value": "0",
                  "description": "Page number (0-based)"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [
            {
              "id": "211d9113-e48e-5c52-af5d-d9ce81cce894",
              "name": "List of numbers",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "phone-numbers"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": [\n    {\n      \"id\": 5,\n      \"messagingLimitTier\": \"TIER_1K\",\n      \"phoneNumber\": \"+39 02 1234 5678\",\n      \"phoneQuality\": \"GREEN\",\n      \"throughput\": \"STANDARD\",\n      \"verifiedName\": \"My Business\",\n      \"messageSendingStatus\": \"AVAILABLE\",\n      \"codeVerificationStatus\": \"VERIFIED\",\n      \"status\": \"CONNECTED\",\n      \"healthErrors\": [],\n      \"healthInfo\": [],\n      \"about\": \"Assistenza clienti dal lunedì al venerdì\",\n      \"address\": \"Via Roma 1, 20121 Milano\",\n      \"description\": \"Negozio di elettronica\",\n      \"email\": \"info@example.com\",\n      \"profilePictureUrl\": \"https://fs-lora-namespace-public.fsn1.your-objectstorage.com/b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=...\",\n      \"vertical\": \"RETAIL\",\n      \"websites\": [\n        \"https://example.com\"\n      ],\n      \"isOnBusinessApp\": false,\n      \"createdAt\": \"2025-09-15 10:00:00.000+0000\",\n      \"updatedAt\": \"2025-10-01 08:30:00.000+0000\"\n    }\n  ],\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalCount\": 1,\n  \"totalPages\": 1\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "9b880ccc-8e41-5dd2-adee-19d7e24054e4",
              "name": "Missing or invalid credentials. The body is empty.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "phone-numbers"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    }
                  ],
                  "variable": []
                },
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/plain"
                }
              ],
              "body": "",
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "bff2b394-c841-5851-a9c8-cc3ecbdb9b88",
          "name": "WhatsApp Business number details",
          "request": {
            "name": "WhatsApp Business number details",
            "description": {
              "content": "Returns a WhatsApp Business number of your account, whatever its status.\n\n> **The response can be cached for up to 10 minutes**, so a change made in the meantime may not show yet. The list `GET /message-server/whatsapp/phone-numbers` is not cached.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "message-server",
                "whatsapp",
                "phone-numbers",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "9822",
                  "key": "id",
                  "description": "(Required) WhatsApp Business number ID"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [
            {
              "id": "8f9fb682-510f-5505-aeeb-deb214f32d25",
              "name": "Number details",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "phone-numbers",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "9822",
                      "key": "id",
                      "description": "(Required) WhatsApp Business number ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 5,\n  \"messagingLimitTier\": \"TIER_1K\",\n  \"phoneNumber\": \"+39 02 1234 5678\",\n  \"phoneQuality\": \"GREEN\",\n  \"throughput\": \"STANDARD\",\n  \"verifiedName\": \"My Business\",\n  \"messageSendingStatus\": \"AVAILABLE\",\n  \"codeVerificationStatus\": \"VERIFIED\",\n  \"status\": \"CONNECTED\",\n  \"healthErrors\": [],\n  \"healthInfo\": [],\n  \"about\": \"Assistenza clienti dal lunedì al venerdì\",\n  \"address\": \"Via Roma 1, 20121 Milano\",\n  \"description\": \"Negozio di elettronica\",\n  \"email\": \"info@example.com\",\n  \"profilePictureUrl\": \"https://fs-lora-namespace-public.fsn1.your-objectstorage.com/b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=...\",\n  \"vertical\": \"RETAIL\",\n  \"websites\": [\n    \"https://example.com\"\n  ],\n  \"isOnBusinessApp\": false,\n  \"createdAt\": \"2025-09-15 10:00:00.000+0000\",\n  \"updatedAt\": \"2025-10-01 08:30:00.000+0000\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "77ab7cdd-022d-58f3-a06a-b952c37b4012",
              "name": "WhatsApp Business number not found in your account",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "whatsapp",
                    "phone-numbers",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "9822",
                      "key": "id",
                      "description": "(Required) WhatsApp Business number ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": \"PHONE_NUMBER_NOT_FOUND\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "266009ec-0995-5a5f-a096-37a75ac5103b",
          "name": "Get WhatsApp message status",
          "request": {
            "name": "Get WhatsApp message status",
            "description": {
              "content": "Returns the current delivery status of one WhatsApp message, looked up by its `messageId`, including whether the recipient has read it.\n\n- **Which ID to use**: the `messageId` returned by the WhatsApp send endpoint when you sent the message. Store it at send time.\n- **Reading is not a status**: when the recipient opens the conversation (the double blue checkmarks in WhatsApp), `readDate` is filled in while `deliveryStatus` stays `DELIVERED`. Recipients can switch read receipts off in their privacy settings: `readDate` then stays null even after the message has been read.\n- **No in-flight status**: a message still waiting for its first receipt reads `UNKNOWN`.\n- **24-hour window**: outside the customer-service window only pre-approved template messages can be sent. A non-template message sent outside it ends as `CONVERSATION_CLOSED`. The rate limits and quality ratings of WhatsApp can also affect delivery.\n- **Same data as the generic endpoint**: `GET /messages/status/{customerMessageId}` with `channel=WHATSAPP` returns the identical payload and also looks up SMS. Prefer it when you track more than one channel.\n\n> **A `404` does not mean the send failed.** It is also the answer while an accepted message has not been dispatched yet, such as a scheduled message before its `scheduledDate`, so do not send the message again.\n\n<details>\n<summary>WhatsApp delivery statuses</summary>\n\n| `deliveryStatus` | Meaning |\n|---|---|\n| `DELIVERED` | WhatsApp confirmed that the message reached the recipient's device (the double grey checkmarks). The recipient may not have opened the conversation yet. |\n| `ERROR` | The message could not be delivered. Common causes: the number is not registered on WhatsApp, the WhatsApp Business account has been restricted or banned, the template was rejected, or the destination number is invalid. `deliveryStatusDescription` is always `general error`: the provider's failure reason is not returned. |\n| `CONVERSATION_CLOSED` | The 24-hour customer-service window had closed, so a non-template message could not be sent. |\n| `DISABLED` | The recipient has WhatsApp messaging from businesses switched off. |\n| `UNSUPPORTED` | The recipient's number does not support the message that was sent. |\n| `EXPIRED` | Not delivered within the allowed time window and discarded, for example because the device stayed offline for a long time. |\n| `UNKNOWN` | No status information from WhatsApp: the message may still be being processed, or the status callback was not received. |\n\nThe Delivery Statuses table in the API overview gives the numeric code the delivery webhook sends for each status.\n\n</details>",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "whatsapp",
                "messages",
                ":messageId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "string",
                  "key": "messageId",
                  "description": "(Required) The `messageId` returned by the WhatsApp send endpoint."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "be2baeed-794a-5dcf-ac1a-8bc25ed54722",
              "name": "The delivery status of the message.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "whatsapp",
                    "messages",
                    ":messageId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "string",
                      "key": "messageId",
                      "description": "(Required) The `messageId` returned by the WhatsApp send endpoint."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"customerMessageId\": \"msg-wa-001\",\n  \"channel\": \"WHATSAPP\",\n  \"destination\": \"+39333123456\",\n  \"deliveryStatus\": \"DELIVERED\",\n  \"deliveryStatusDescription\": \"delivered\",\n  \"sendDate\": \"2025-03-10T14:30:00+01:00\",\n  \"deliveryDate\": \"2025-03-10T14:30:05+01:00\",\n  \"readDate\": \"2025-03-10T14:31:00+01:00\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "fc7b6130-46c8-5789-a7d8-445bd3892056",
              "name": "The API key is missing, invalid, or lacks the `WHATSAPP` operation.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "whatsapp",
                    "messages",
                    ":messageId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "string",
                      "key": "messageId",
                      "description": "(Required) The `messageId` returned by the WhatsApp send endpoint."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "ae6d785e-b109-588c-a254-b48e44287f61",
              "name": "No WhatsApp message with this `messageId` in your account, or the message has not been dispatched yet.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "whatsapp",
                    "messages",
                    ":messageId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "string",
                      "key": "messageId",
                      "description": "(Required) The `messageId` returned by the WhatsApp send endpoint."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "f63afb0c-3b9d-56e6-a55d-7112a43e557e",
          "name": "Get the delivery status of a WhatsApp message",
          "request": {
            "name": "Get the delivery status of a WhatsApp message",
            "description": {
              "content": "Returns the current delivery status of one message, looked up by its `customerMessageId` and channel.\n\n- **Which ID to use**: the `messageId` you set when sending (cut to 200 characters), or the one the platform generated; the send response returns it as `messageId`.\n- **`channel` is required**: send `channel=WHATSAPP`. With any other channel a WhatsApp message answers `404`.\n- **A status exists only after dispatch**: a scheduled message has none before its `scheduledDate`. Allow a few seconds, possibly longer.\n- **Keep your IDs unique**: the platform does not check them. For a reused ID this endpoint returns one of the matching records, chosen arbitrarily, while `GET /messages/status` returns them all.\n\n> **A `404` does not mean the send failed.** It is also the answer while the message has not been dispatched yet, so do not send the message again.\n\n<details>\n<summary>Delivery statuses</summary>\n\n| `deliveryStatus` | Meaning |\n| --- | --- |\n| `DELIVERED` | The carrier or channel provider confirmed that the message reached the recipient's device. |\n| `EXPIRED` | Not delivered within its time-to-live window: the carrier discarded it. |\n| `ERROR` | The message could not be delivered. `deliveryStatusDescription` is always `general error`: the provider's failure reason is not returned. |\n| `DISABLED` | The recipient has the channel switched off. |\n| `UNSUPPORTED` | The recipient's device or number does not support the channel. |\n| `CONVERSATION_CLOSED` | The 24-hour customer-service window had closed. |\n| `UNKNOWN` | No status information. It also covers a message still waiting for its first receipt. |\n\nThe Delivery Statuses table in the API overview gives the numeric code the delivery webhook sends for each status.\n\n</details>\n\nTo check many messages in one call, use `GET /messages/status`.\n\n`GET /messages/status/{customerMessageId}` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/get-single-status) or [RCS](/api-channel-rcs/get-single-status).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "messages",
                "status",
                ":customerMessageId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "channel",
                  "value": "WHATSAPP",
                  "description": "(Required) `WHATSAPP` (case-insensitive): the channel the messages were sent on."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "string",
                  "key": "customerMessageId",
                  "description": "(Required) The `customerMessageId` of the message, returned as `messageId` by the send endpoint."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "98ab9545-3bd9-596b-a9fc-19d4e376dd8e",
              "name": "The delivery status of the message.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "status",
                    ":customerMessageId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "string",
                      "key": "customerMessageId",
                      "description": "(Required) The `customerMessageId` of the message, returned as `messageId` by the send endpoint."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"customerMessageId\": \"msg-wa-001\",\n  \"channel\": \"WHATSAPP\",\n  \"destination\": \"+39333123456\",\n  \"deliveryStatus\": \"DELIVERED\",\n  \"deliveryStatusDescription\": \"delivered\",\n  \"sendDate\": \"2025-03-10T14:30:00+01:00\",\n  \"deliveryDate\": \"2025-03-10T14:30:05+01:00\",\n  \"readDate\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "054c74ba-9fd9-5938-a038-abdd1f5ca8b2",
              "name": "`channel` is missing or is not one of `RCS`, `WHATSAPP`, `SMS`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "status",
                    ":customerMessageId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "string",
                      "key": "customerMessageId",
                      "description": "(Required) The `customerMessageId` of the message, returned as `messageId` by the send endpoint."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "d2beaf85-888d-570b-ad0b-09e902d2145e",
              "name": "The API key is missing, invalid, or lacks the `MESSAGES` operation.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "status",
                    ":customerMessageId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "string",
                      "key": "customerMessageId",
                      "description": "(Required) The `customerMessageId` of the message, returned as `messageId` by the send endpoint."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "5b6a8b42-ec14-5b5c-ae6d-d1eab106039c",
              "name": "No message with this `customerMessageId` on this channel for your account: the ID is unknown, the channel is not the one the message was sent on, or the message has not been dispatched yet.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "status",
                    ":customerMessageId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "string",
                      "key": "customerMessageId",
                      "description": "(Required) The `customerMessageId` of the message, returned as `messageId` by the send endpoint."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "b720902a-96dc-5818-a2ed-03f21419a181",
              "name": "Unexpected server error. Retry after a short delay.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "status",
                    ":customerMessageId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "string",
                      "key": "customerMessageId",
                      "description": "(Required) The `customerMessageId` of the message, returned as `messageId` by the send endpoint."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "c737432f-2536-5ddd-ab66-b71ee2d8de3b",
          "name": "Get the delivery status of several WhatsApp messages",
          "request": {
            "name": "Get the delivery status of several WhatsApp messages",
            "description": {
              "content": "Returns the delivery status of several messages in one call, which is much more efficient than calling the single-status endpoint in a loop.\n\n- **Channel**: send `channel=WHATSAPP`. All the IDs must be of WhatsApp messages.\n- **`ids`**: the `customerMessageId` values, separated by commas and without spaces, for example `ids=msg-001,msg-002,msg-003`.\n- **At most 200 IDs per call**: split larger lookups over several requests.\n- **Missing IDs are left out, not reported**: an ID that matches no message of your account on that channel is silently omitted, and so is a message not dispatched yet, such as a scheduled message before its `scheduledDate`. If nothing matches you get `200` with an empty array, not `404`.\n- **One ID can return several entries**: an ID reused on several sends returns one entry per send.\n\n> **Do not compare counts.** The array is unordered and can be shorter or longer than your list of IDs. To find the missing messages, compare the distinct `customerMessageId` values returned with your list.\n\nEach entry has the fields of `GET /messages/status/{customerMessageId}`, including `deliveryStatus`, whose values are in the Delivery Statuses table of the API overview. To list the messages sent through the API in a date range, use `GET /messages/history`.\n\n`GET /messages/status` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/get-batch-status) or [RCS](/api-channel-rcs/get-batch-status).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "messages",
                "status"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "channel",
                  "value": "WHATSAPP",
                  "description": "(Required) `WHATSAPP` (case-insensitive): the channel the messages were sent on."
                },
                {
                  "disabled": false,
                  "key": "ids",
                  "value": "string",
                  "description": "(Required) Comma-separated `customerMessageId` values returned at send time, such as `msg-001,msg-002,msg-003`, at most 200."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "2e466243-6ea7-5bb2-a48c-f5fddcd398bf",
              "name": "The delivery status entries found, in no particular order: an empty array when no ID matches.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "status"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    },
                    {
                      "key": "ids",
                      "value": "string"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"customerMessageId\": \"msg-001\",\n    \"channel\": \"WHATSAPP\",\n    \"destination\": \"+39333123456\",\n    \"deliveryStatus\": \"DELIVERED\",\n    \"deliveryStatusDescription\": \"delivered\",\n    \"sendDate\": \"2025-03-10T14:30:00+01:00\",\n    \"deliveryDate\": \"2025-03-10T14:30:05+01:00\",\n    \"readDate\": null\n  },\n  {\n    \"customerMessageId\": \"msg-002\",\n    \"channel\": \"WHATSAPP\",\n    \"destination\": \"+39333654321\",\n    \"deliveryStatus\": \"ERROR\",\n    \"deliveryStatusDescription\": \"general error\",\n    \"sendDate\": \"2025-03-10T14:30:00+01:00\",\n    \"deliveryDate\": null,\n    \"readDate\": null\n  }\n]",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "f7611cc7-5946-5992-ab3a-b4fbc7d4b795",
              "name": "`channel` or `ids` is missing, `channel` is not one of `RCS`, `WHATSAPP`, `SMS`, or `ids` holds more than 200 values.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "status"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    },
                    {
                      "key": "ids",
                      "value": "string"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "c6ac6d16-e931-5d46-af9f-99e1079ff188",
              "name": "The API key is missing, invalid, or lacks the `MESSAGES` operation.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "status"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    },
                    {
                      "key": "ids",
                      "value": "string"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "1c8e6c4b-ecb1-5667-a670-54085626c012",
              "name": "Unexpected server error. Retry after a short delay.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "status"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    },
                    {
                      "key": "ids",
                      "value": "string"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "8ede71d0-fe1e-5497-a46e-c6b50864d461",
          "name": "List the WhatsApp send history",
          "request": {
            "name": "List the WhatsApp send history",
            "description": {
              "content": "Returns the messages sent through the API on WhatsApp in a date range, one page at a time.\n\n- **Required**: `channel=WHATSAPP` and the send-date range `from` and `to`, both inclusive.\n- **Campaign messages are not included**, not even those of campaigns created with `POST /campaigns`. Follow a campaign with `GET /campaigns/{id}` and `GET /campaigns/stats`, or export its delivery reports with `POST /exports/delivery-reports` and its `campaignId`.\n- **One entry per sent message**: `page` and `limit` count the entries.\n- **Pagination**: `page` is 0-based and `limit` goes from 1 to 1000 (default 20). Without `status`, move to the next page until one comes back with fewer items than `limit`.\n- **Large ranges**: to extract thousands of messages, queue a CSV file with `POST /messages/history/export` instead of paging.\n\n> **With `status`, a short or empty page does not mean the end.** The filter is applied to each page of `limit` messages after it has been read, so a page can hold fewer items than `limit`, or none, while later pages still hold matching messages. To collect every message in one status, page without `status` and keep the entries whose `deliveryStatus` you want.\n\n<details>\n<summary>Date formats of from and to</summary>\n\n| Format | Example | Read as |\n|---|---|---|\n| Date alone | `2025-01-15` | The whole day in UTC: `00:00:00Z` as `from`, `23:59:59Z` as `to`. |\n| Date-time without offset | `2025-01-15T10:30:00` | UTC. |\n| ISO-8601 date-time with offset | `2025-01-15T00:00:00+01:00` or `2025-06-15T23:59:59Z` | That instant. |\n\nPercent-encode a `+` in the offset as `%2B`: an unencoded `+` is decoded as a space.\n\n</details>\n\n<details>\n<summary>Values of the status filter</summary>\n\n`ACCEPTED`, `REJECTED`, `DELIVERED`, `EXPIRED`, `DELETED`, `UNDELIVERABLE`, `ERROR`, `DISABLED`, `UNSUPPORTED`, `CONVERSATION_CLOSED` or `UNKNOWN`, in any letter case. Which ones can appear depends on the channel: see the Delivery Statuses table in the API overview. Leave `status` out for every status.\n\nFor SMS, the export is an alternative to the filter: its `Delivery result` column carries the SMS status. On RCS and WhatsApp the export only tells sent from delivered.\n\n</details>\n\n`GET /messages/history` is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for [SMS](/api-channel-sms/get-history) or [RCS](/api-channel-rcs/get-history).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "messages",
                "history"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "channel",
                  "value": "WHATSAPP",
                  "description": "(Required) `WHATSAPP` (case-insensitive): the channel the messages were sent on."
                },
                {
                  "disabled": false,
                  "key": "from",
                  "value": "2025-01-15T00:00:00Z",
                  "description": "(Required) Start of the send-date range, inclusive: `yyyy-MM-dd` (a whole day, UTC), `yyyy-MM-ddTHH:mm:ss` (UTC) or ISO-8601 with an offset, such as `2025-01-15T00:00:00+01:00` or `2025-01-15T00:00:00Z`. A date alone means the start of that day, `00:00:00Z`."
                },
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "20",
                  "description": "Page size, from 1 to 1000. Defaults to 20."
                },
                {
                  "disabled": false,
                  "key": "page",
                  "value": "0",
                  "description": "Page index, 0-based."
                },
                {
                  "disabled": false,
                  "key": "status",
                  "value": "UNSUPPORTED",
                  "description": "Delivery-status filter, case-insensitive: `ACCEPTED`, `REJECTED`, `DELIVERED`, `EXPIRED`, `DELETED`, `UNDELIVERABLE`, `ERROR`, `DISABLED`, `UNSUPPORTED`, `CONVERSATION_CLOSED` or `UNKNOWN`. It is applied to each page after the page has been read, so a filtered page can be short or empty while later pages still hold matching messages."
                },
                {
                  "disabled": false,
                  "key": "to",
                  "value": "2025-01-31T23:59:59Z",
                  "description": "(Required) End of the send-date range, inclusive: `yyyy-MM-dd` (a whole day, UTC), `yyyy-MM-ddTHH:mm:ss` (UTC) or ISO-8601 with an offset, such as `2025-01-15T00:00:00+01:00` or `2025-01-15T00:00:00Z`. A date alone means the end of that day, `23:59:59Z`."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "X-API-Key"
                },
                {
                  "key": "value",
                  "value": "{{apiKey}}"
                },
                {
                  "key": "in",
                  "value": "header"
                }
              ]
            }
          },
          "response": [
            {
              "id": "3ffeaab9-217f-5b60-a9c9-db39f336ceb8",
              "name": "One page of sent messages: an empty array when nothing on the page matches the filters.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "history"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    },
                    {
                      "key": "from",
                      "value": "2025-01-15T00:00:00Z"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    },
                    {
                      "key": "status",
                      "value": "UNSUPPORTED"
                    },
                    {
                      "key": "to",
                      "value": "2025-01-31T23:59:59Z"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"customerMessageId\": \"msg-wa-001\",\n    \"channel\": \"WHATSAPP\",\n    \"destination\": \"+39333123456\",\n    \"deliveryStatus\": \"DELIVERED\",\n    \"deliveryStatusDescription\": \"delivered\",\n    \"sendDate\": \"2025-01-15T10:00:00+01:00\",\n    \"deliveryDate\": \"2025-01-15T10:00:03+01:00\",\n    \"readDate\": null\n  }\n]",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "802f0128-a82f-5910-a547-66cc0ba4a61d",
              "name": "`channel`, `from` or `to` is missing or malformed, `from` is later than `to`, `status` is not one of the accepted values, or `page` or `limit` is not a whole number in range (`page` below 0, `limit` below 1 or above 1000, or `page` multiplied by `limit` above 2147483647). The response body names the parameter.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "history"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    },
                    {
                      "key": "from",
                      "value": "2025-01-15T00:00:00Z"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    },
                    {
                      "key": "status",
                      "value": "UNSUPPORTED"
                    },
                    {
                      "key": "to",
                      "value": "2025-01-31T23:59:59Z"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e9fa42fb-6342-5c29-ade9-99e2808b9697",
              "name": "The API key is missing, invalid, or lacks the `MESSAGES` operation.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "history"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    },
                    {
                      "key": "from",
                      "value": "2025-01-15T00:00:00Z"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    },
                    {
                      "key": "status",
                      "value": "UNSUPPORTED"
                    },
                    {
                      "key": "to",
                      "value": "2025-01-31T23:59:59Z"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "1d3a42ef-45e5-569d-a69c-4c35bbbbbd36",
              "name": "Unexpected server error. Retry after a short delay.",
              "originalRequest": {
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "history"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "channel",
                      "value": "WHATSAPP"
                    },
                    {
                      "key": "from",
                      "value": "2025-01-15T00:00:00Z"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    },
                    {
                      "key": "status",
                      "value": "UNSUPPORTED"
                    },
                    {
                      "key": "to",
                      "value": "2025-01-31T23:59:59Z"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "\"\"",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-Api-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.qlara.ai",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "YOUR_API_KEY",
      "type": "string"
    }
  ]
}
