{
  "info": {
    "_postman_id": "52e21955-889c-5d52-ae0b-e593ab415884",
    "name": "Qlara API (complete)",
    "description": "Every endpoint of the Qlara documentation, in the folders of its sidebar: the API Reference, one section per channel (senders, templates, campaigns and single sends), then contacts, inbox, exports and the other common APIs.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "id": "b276f94c-d8d0-574a-a1de-6e5939b8c10c",
      "name": "API Reference",
      "item": [
        {
          "id": "801de852-0209-5785-a534-d707fe2cbd54",
          "name": "API keys",
          "item": [
            {
              "id": "a25c550e-e4e8-50c1-acea-36d0c25ba23c",
              "name": "Create an API Key",
              "request": {
                "name": "Create an API Key",
                "description": {
                  "content": "Creates an API key for your account and returns its full value. The key is active at once: send it in the `X-API-Key` header.\n\n> **The full value is shown only once.** No endpoint returns it again (`GET /authentication` shows it masked), so store it securely right away. If you lose a key, delete it with `DELETE /authentication/{id}` and create a new one.\n\n- **`operations` scope the key on this API** (`/api/partner-gateway`): each one opens the path of the same name, for example `SMS` opens `/sms` and `CONTACTS` opens `/contacts`. A call to an endpoint outside the key's operations is refused with `401`. `AUTOMATION`, `CALENDAR` and `REPORT` open no endpoint.\n- **Campaigns by channel**: `CAMPAIGNS` opens every campaign. Without it, `SMS`, `RCS` and `WHATSAPP` open the campaigns of their channel under `/campaigns` (a combined `sendingMode` such as `RCS_SMS` needs every channel in it), and `EMAIL` opens the email campaigns under `/campaigns/email`.\n- **They do not restrict sending**: the messaging API (`/api/message-server`), which sends SMS, RCS and WhatsApp and spends credit, and media downloads (`/api/files`) accept any key of your account, whatever its operations.\n- **A key cannot grant more than it has**: the operations you request must be a subset of those of the key making the call, and `trafficType` can only be `0` (the default) or that key's own. Check both with `GET /authentication/me`.\n- **`userId` must be an accepted member of your team**, whatever user the calling key carries: a user of another company, a pending invitation or a suspended member is refused.\n- **No username**: keys created here are identified by their `id` and `userId`, so `username` is always null in the response.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "authentication"
                  ],
                  "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  \"userId\": 4618,\n  \"operations\": [\n    \"SMS\",\n    \"RCS\",\n    \"WHATSAPP\",\n    \"CONTACTS\",\n    \"MESSAGES\"\n  ],\n  \"trafficType\": 0\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "169eac4d-062b-5b97-a176-d3f74980e0c9",
                  "name": "API key created. This is the only response that carries its full value.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"userId\": 4618,\n  \"operations\": [\n    \"SMS\",\n    \"RCS\",\n    \"WHATSAPP\",\n    \"CONTACTS\",\n    \"MESSAGES\"\n  ],\n  \"trafficType\": 0\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Created",
                  "code": 201,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 1,\n  \"companyId\": 100,\n  \"userId\": 4618,\n  \"apiKey\": \"Ab3dK7pQ2vLx9mRt4sNw8yZc1bHf6jDg0eUa5iOWx9z\",\n  \"username\": null,\n  \"trafficType\": 0,\n  \"operations\": [\n    \"SMS\",\n    \"RCS\",\n    \"WHATSAPP\"\n  ],\n  \"creationDate\": \"2025-03-10 14:30:00.000+0100\",\n  \"lastUpdateDate\": \"2025-03-10 14:30:00.000+0100\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "05c80e07-4402-57d8-a85c-8f4b1f7e7a88",
                  "name": "The body is malformed or misses a required field (`userId`, or a non-empty `operations`), or `userId` is not an accepted member of your team.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"userId\": 4618,\n  \"operations\": [\n    \"SMS\",\n    \"RCS\",\n    \"WHATSAPP\",\n    \"CONTACTS\",\n    \"MESSAGES\"\n  ],\n  \"trafficType\": 0\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "6fae8ee3-92e7-51ff-a808-17da8e896eea",
                  "name": "The API key is missing, invalid, or lacks the `AUTHENTICATION` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"userId\": 4618,\n  \"operations\": [\n    \"SMS\",\n    \"RCS\",\n    \"WHATSAPP\",\n    \"CONTACTS\",\n    \"MESSAGES\"\n  ],\n  \"trafficType\": 0\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "b9751660-3423-52d9-a18c-72f3c74fefd8",
                  "name": "The requested operations exceed those of the calling key, or `trafficType` is neither `0` nor that key's own.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"userId\": 4618,\n  \"operations\": [\n    \"SMS\",\n    \"RCS\",\n    \"WHATSAPP\",\n    \"CONTACTS\",\n    \"MESSAGES\"\n  ],\n  \"trafficType\": 0\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "fcbefcab-c055-53fb-ac3d-32f6d5286463",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"userId\": 4618,\n  \"operations\": [\n    \"SMS\",\n    \"RCS\",\n    \"WHATSAPP\",\n    \"CONTACTS\",\n    \"MESSAGES\"\n  ],\n  \"trafficType\": 0\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "4be6cecb-dc0c-513b-a00c-e20880636be4",
              "name": "Find API Keys",
              "request": {
                "name": "Find API Keys",
                "description": {
                  "content": "Returns all the API keys of your account, as a single array with no pagination.\n\n- **Masked value**: only the first and last 4 characters of each key are shown, enough to tell your keys apart. The full value is never returned after creation.\n- **What each entry holds**: key ID, company, `userId` (null on keys created without one), username, allowed operations, traffic type, creation and last-update dates.\n- **Filter by user**: pass `userId` to see only the keys created by or assigned to that user.\n- **When to use it**: to audit which keys exist before creating new ones or revoking old ones.\n\nTo inspect the key that authenticates your request, operations included, use `GET /authentication/me`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "authentication"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "userId",
                      "value": "5145",
                      "description": "Filter by user ID."
                    }
                  ],
                  "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": "a7fb3033-f6b0-509a-a667-50576fa1c568",
                  "name": "The API keys of your account, each with its value masked.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "userId",
                          "value": "5145"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 1,\n    \"companyId\": 100,\n    \"userId\": 4618,\n    \"apiKey\": \"Ab3d***********************************Wx9z\",\n    \"username\": null,\n    \"trafficType\": 0,\n    \"operations\": [\n      \"SMS\",\n      \"RCS\",\n      \"WHATSAPP\"\n    ],\n    \"creationDate\": \"2025-03-10 14:30:00.000+0100\",\n    \"lastUpdateDate\": \"2025-03-10 14:30:00.000+0100\"\n  }\n]",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "4fad8e21-7597-55d0-aa57-73f221d44677",
                  "name": "The API key is missing, invalid, or lacks the `AUTHENTICATION` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "userId",
                          "value": "5145"
                        }
                      ],
                      "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": "5122b555-3daa-5283-ab2b-8e9abc99662a",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "userId",
                          "value": "5145"
                        }
                      ],
                      "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": "0990bf72-d9a3-5ee4-ac5d-2b9d36c00afc",
              "name": "Describe the current API Key",
              "request": {
                "name": "Describe the current API Key",
                "description": {
                  "content": "Returns the metadata of the API key that authenticates this request: ID, company, user, username, allowed operations, traffic type and creation date.\n\n- **When to use it**: to verify that a key you have stored is still valid, and to check which operations it holds.\n- **No parameters**: the key is read from the `X-API-Key` header, so it never travels in the URL.\n- **The key value is not returned**: it is available only when the key is created, with `POST /authentication`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "authentication",
                    "me"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "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": "cec9811f-208d-5150-af32-8a39cc50e32b",
                  "name": "Metadata of the calling key.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication",
                        "me"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 1,\n  \"companyId\": 100,\n  \"userId\": 42,\n  \"username\": \"api-user\",\n  \"trafficType\": 0,\n  \"operations\": [\n    \"SMS\",\n    \"RCS\",\n    \"WHATSAPP\"\n  ],\n  \"creationDate\": \"2025-03-10 14:30:00.000+0100\",\n  \"lastUpdateDate\": \"2025-03-10 14:30:00.000+0100\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "bdfba84e-ab54-5227-aaa5-0d31ae14a96a",
                  "name": "The API key is missing, invalid, or lacks the `AUTHENTICATION` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication",
                        "me"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "722670d1-03a1-5c71-a697-af74a70df59c",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication",
                        "me"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "f9bc1ea5-29b4-5a2c-afcc-8bdb553785d5",
              "name": "Delete an API Key",
              "request": {
                "name": "Delete an API Key",
                "description": {
                  "content": "Revokes and deletes an API key, permanently. This cannot be undone.\n\n- **Immediate on this API** (`/api/partner-gateway`): the next request that sends the deleted key answers `401`.\n- **Up to 24 hours elsewhere**: the messaging API (`/api/message-server`) and media downloads (`/api/files`) keep a cached copy of the keys they have checked, so they can keep accepting the deleted key, and sending messages with it, until that copy expires.\n- **Which keys you can delete**: a key can delete itself and any key whose operations are all among its own. When the key to delete holds an operation that the calling key does not hold, the answer is `403`.\n- **Before deleting**: make sure no integration or scheduled job still depends on the key. A key deleted by mistake cannot be restored: create a new one with `POST /authentication` and update every client that used the old one.\n\n> **If the key was compromised**, delete it and also contact support.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "authentication",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "id",
                      "description": "(Required) ID of the API Key to delete."
                    }
                  ]
                },
                "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": "4a633d4a-2020-50b3-a786-cd5169c3b1f2",
                  "name": "API key deleted. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the API Key to delete."
                        }
                      ]
                    },
                    "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": "baa0f929-1882-5d88-a1a6-f9d4df37f01b",
                  "name": "The API key is missing, invalid, or lacks the `AUTHENTICATION` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the API Key to delete."
                        }
                      ]
                    },
                    "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": "ae287d54-87c3-5d71-a31a-d9927d79a6d1",
                  "name": "The key to delete holds an operation that the calling key does not hold.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the API Key to delete."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {}
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "eacda18a-ae02-5488-af1c-91a9422cd068",
                  "name": "No key with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the API Key to delete."
                        }
                      ]
                    },
                    "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"
                },
                {
                  "id": "ff88ea5e-7b23-5ecc-abc3-60c0f6f4a9cc",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "authentication",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the API Key to delete."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {}
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            }
          ]
        },
        {
          "id": "b22786e7-8d64-5678-a68f-6553bf831019",
          "name": "SMS",
          "item": [
            {
              "id": "2f8d3f93-9edc-5ada-ace8-602ed2220544",
              "name": "List SMS senders",
              "request": {
                "name": "List SMS senders",
                "description": {
                  "content": "Returns every SMS sender ID registered for your account, alphanumeric or numeric, in one response: the list is not paginated.\n\n- **Status**: each entry is `APPROVED`, `PENDING` (waiting for review) or `REJECTED`.\n- **Only `APPROVED` senders can send**: a message sent under a `PENDING` or `REJECTED` sender can be refused.\n- **Platform default sender**: when one is enabled, the list ends with it, marked `isDefaultSender` true. `totalCount` does not count that entry.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "sms",
                    "senders"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "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": "1ff77b9c-c2ab-5695-ac20-dcb45359cf22",
                  "name": "The SMS senders of your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "sms",
                        "senders"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "0b0f5215-d987-5557-ae99-aceecc6b0f9a",
                  "name": "The API key is missing, invalid, or lacks the `SMS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "sms",
                        "senders"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "e1c668c1-001f-5b52-ab67-fc1d9d16314e",
              "name": "Campaigns",
              "item": [
                {
                  "id": "5a768699-47f5-5f63-a401-266170aa1aa4",
                  "name": "Create an SMS campaign",
                  "request": {
                    "name": "Create an SMS campaign",
                    "description": {
                      "content": "Creates a bulk SMS campaign, as a draft or already marked ready to send. Nothing is sent until you confirm it.\n\n- **Channel**: set `sendingMode` to `SMS`. The campaign needs an approved sender (`smsSender`) and the text (`smsBody`).\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 sender is checked against your account**: `smsSender` must be an approved sender (see `GET /sms/senders`). Nothing is created when the check fails.\n- **Personalisation**: `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`POST /campaigns` is one endpoint for SMS, RCS and WhatsApp: this page describes it for SMS. See it for [RCS](/api-channel-rcs/create-campaign) or [WhatsApp](/api-channel-whatsapp/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\": \"Spring Promo\",\n  \"sendingMode\": \"SMS\",\n  \"smsSender\": \"MYCOMPANY\",\n  \"smsBody\": \"Hi {firstName}, your exclusive 20% discount is ready!\",\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"readyToSend\": false\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "70ff08a1-a228-5fa5-ae16-03014e0fb1a4",
                      "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\": \"Spring Promo\",\n  \"sendingMode\": \"SMS\",\n  \"smsSender\": \"MYCOMPANY\",\n  \"smsBody\": \"Hi {firstName}, your exclusive 20% discount is ready!\",\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"readyToSend\": false\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Created",
                      "code": 201,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"id\": 1002,\n  \"name\": \"Spring Promo\",\n  \"status\": \"DRAFT\",\n  \"sendingMode\": \"SMS\",\n  \"smsSender\": \"MYCOMPANY\",\n  \"smsBody\": \"Hi {firstName}, your discount is ready!\",\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"readyToSend\": false\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "29d450cc-43ff-5ea8-aaa8-3a004ea075f5",
                      "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\": \"Spring Promo\",\n  \"sendingMode\": \"SMS\",\n  \"smsSender\": \"MYCOMPANY\",\n  \"smsBody\": \"Hi {firstName}, your exclusive 20% discount is ready!\",\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"readyToSend\": false\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "84f44f99-6b64-5d40-a4df-456d4d6edf5c",
                      "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\": \"Spring Promo\",\n  \"sendingMode\": \"SMS\",\n  \"smsSender\": \"MYCOMPANY\",\n  \"smsBody\": \"Hi {firstName}, your exclusive 20% discount is ready!\",\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"readyToSend\": false\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "2cd64154-18d9-57a5-ad18-b4f9cb8a2bf7",
                      "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\": \"Spring Promo\",\n  \"sendingMode\": \"SMS\",\n  \"smsSender\": \"MYCOMPANY\",\n  \"smsBody\": \"Hi {firstName}, your exclusive 20% discount is ready!\",\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"readyToSend\": false\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Forbidden",
                      "code": 403,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "0a9f9e13-c8bb-5da5-af0c-9ecc221083fb",
                      "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\": \"Spring Promo\",\n  \"sendingMode\": \"SMS\",\n  \"smsSender\": \"MYCOMPANY\",\n  \"smsBody\": \"Hi {firstName}, your exclusive 20% discount is ready!\",\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"readyToSend\": false\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": "bc761df8-a668-5164-ae87-9bc214b25a30",
                  "name": "Update an SMS campaign",
                  "request": {
                    "name": "Update an SMS 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- **The sender is checked against your account**: `smsSender` must be an approved sender (see `GET /sms/senders`). The campaign is not changed when the 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 SMS. See it for [RCS](/api-channel-rcs/update-campaign) or [WhatsApp](/api-channel-whatsapp/update-campaign).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "2518",
                          "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\": \"SMS\",\n  \"destinationType\": 0,\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"scheduledDate\": \"2027-06-01 09:00:00.000+0200\",\n  \"readyToSend\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "d4d13da0-de06-5500-aa46-54fe69ca460d",
                      "name": "Campaign updated, returned as stored.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "2518",
                              "key": "id",
                              "description": "(Required) ID of the campaign."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"sendingMode\": \"SMS\",\n  \"destinationType\": 0,\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"scheduledDate\": \"2027-06-01 09:00:00.000+0200\",\n  \"readyToSend\": true\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"id\": 1001,\n  \"userId\": 3440,\n  \"companyId\": 3785,\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    5034,\n    8474\n  ],\n  \"totalDestinations\": 7511,\n  \"totalPrice\": 3215,\n  \"walletKind\": \"CREDITS\",\n  \"smsSender\": \"string\",\n  \"smsBody\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"totalSuccess\": 1626,\n  \"totalFailed\": 1602,\n  \"totalSent\": 6969,\n  \"totalRead\": 9188,\n  \"totalFallback\": 8539,\n  \"smsSent\": 7447,\n  \"smsPending\": 9924,\n  \"smsSuccess\": 1230,\n  \"smsFailed\": 8002,\n  \"smsFallback\": 1800,\n  \"destinationType\": 9508,\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"isUpdatable\": true,\n  \"maxUpdateTime\": \"string\",\n  \"readyToSend\": false,\n  \"numOfDistinctContact\": 1910\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "99cfa5bb-098c-5727-ae3e-55904099ad8b",
                      "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": "2518",
                              "key": "id",
                              "description": "(Required) ID of the campaign."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"sendingMode\": \"SMS\",\n  \"destinationType\": 0,\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"scheduledDate\": \"2027-06-01 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": "3bb0a854-4216-5211-a3bf-af57f4dda994",
                      "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": "2518",
                              "key": "id",
                              "description": "(Required) ID of the campaign."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"sendingMode\": \"SMS\",\n  \"destinationType\": 0,\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"scheduledDate\": \"2027-06-01 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": "6733f2a5-6e9f-5653-ad41-87aa7007ff5b",
                      "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": "2518",
                              "key": "id",
                              "description": "(Required) ID of the campaign."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"sendingMode\": \"SMS\",\n  \"destinationType\": 0,\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"scheduledDate\": \"2027-06-01 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": "952efb7a-ff4d-525d-a10a-52834d727ff9",
                      "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": "2518",
                              "key": "id",
                              "description": "(Required) ID of the campaign."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"sendingMode\": \"SMS\",\n  \"destinationType\": 0,\n  \"smsBody\": \"Hi {firstName}, your 25% discount on the new Summer collection is ready! Code: SUMMER25\",\n  \"scheduledDate\": \"2027-06-01 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": "ee425da7-58d1-5549-a47a-96cf8af3b2ab",
                  "name": "Get the total price of an SMS campaign",
                  "request": {
                    "name": "Get the total price of an SMS 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\n\n`GET /campaigns/{id}/price` is one endpoint for SMS, RCS and WhatsApp: this page describes it for SMS. See it for [RCS](/api-channel-rcs/get-total-price) or [WhatsApp](/api-channel-whatsapp/get-total-price).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id",
                        "price"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "2518",
                          "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": "fa4e5103-2c44-530f-a8fb-c47de0f4341d",
                      "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": "2518",
                              "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\": 3440,\n  \"companyId\": 3785,\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    5034,\n    8474\n  ],\n  \"totalDestinations\": 7511,\n  \"totalPrice\": 3215,\n  \"walletKind\": \"CREDITS\",\n  \"smsSender\": \"string\",\n  \"smsBody\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"totalSuccess\": 1626,\n  \"totalFailed\": 1602,\n  \"totalSent\": 6969,\n  \"totalRead\": 9188,\n  \"totalFallback\": 8539,\n  \"smsSent\": 7447,\n  \"smsPending\": 9924,\n  \"smsSuccess\": 1230,\n  \"smsFailed\": 8002,\n  \"smsFallback\": 1800,\n  \"destinationType\": 9508,\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"isUpdatable\": true,\n  \"maxUpdateTime\": \"string\",\n  \"readyToSend\": false,\n  \"numOfDistinctContact\": 1910\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "55b07825-e111-5fca-a61f-4a26d1fbe981",
                      "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": "2518",
                              "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": "4a84b420-6417-54aa-aef3-0cb3f77d3afd",
                      "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": "2518",
                              "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": "9cb1ef8f-fca4-5344-ae28-5ed0e32deb76",
                      "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": "2518",
                              "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": "9154ddc1-36af-5279-acd5-5aee9f732ae5",
                  "name": "Confirm / schedule an SMS campaign",
                  "request": {
                    "name": "Confirm / schedule an SMS 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, `sendingMode` `SMS` and a valid `destinationType`, `smsSender` and `smsBody`, 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\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 SMS. See it for [RCS](/api-channel-rcs/confirm-campaign) or [WhatsApp](/api-channel-whatsapp/confirm-campaign).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id",
                        "confirm"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "2518",
                          "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": "09c4d67a-2b29-5c6a-a2df-2571ce85be47",
                      "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": "2518",
                              "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": "1d581fa6-c1f3-58d9-ae6f-6128d114b8fe",
                      "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": "2518",
                              "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": "d1d06c77-312d-5f1a-ac45-7781c338b9ae",
                      "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": "2518",
                              "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": "3e9707ea-782d-52c8-af7e-4419b1898925",
                      "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": "2518",
                              "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": "ef2a73f3-1c3f-58bc-aca1-de795be08854",
                  "name": "Get an SMS campaign",
                  "request": {
                    "name": "Get an SMS 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 (`smsBody`), the recipients (`contactListIds`, `destinations`) and the `scheduledDate`, if any.\n- **Results**: `totalDestinations`, `totalSuccess`, `totalFailed` and the SMS counters.\n\n`GET /campaigns/{id}` is one endpoint for SMS, RCS and WhatsApp: this page describes it for SMS. See it for [RCS](/api-channel-rcs/get-campaign-by-id) or [WhatsApp](/api-channel-whatsapp/get-campaign-by-id).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "2518",
                          "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": "ce765d1e-04bf-5778-a7f4-f741f861cd3f",
                      "name": "The campaign.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "2518",
                              "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  \"name\": \"Spring Promo\",\n  \"status\": \"ENDED\",\n  \"sendingMode\": \"SMS\",\n  \"smsSender\": \"MYCOMPANY\",\n  \"smsBody\": \"Hi! Your 20% discount is ready.\",\n  \"contactListIds\": [\n    101,\n    102\n  ],\n  \"totalDestinations\": 500,\n  \"totalSuccess\": 485,\n  \"totalFailed\": 15,\n  \"readyToSend\": false\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "d3ecef19-8051-5360-a215-b4a08deeeb94",
                      "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": "2518",
                              "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": "ef2d6417-3a59-5284-a776-19a6809e766b",
                      "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": "2518",
                              "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": "59c8d3e0-0337-5f9d-a1cd-dcc6dc9217c0",
                  "name": "List SMS campaigns",
                  "request": {
                    "name": "List SMS 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- **SMS campaigns only**: send `sendingMode=SMS`. Without `sendingMode` the list holds the campaigns of every channel. The mode is matched exactly, so `SMS` does not include `RCS_SMS` or `WHATSAPP_SMS`.\n- **Sender**: `channel=SMS` and `channelId` go together, and keep the campaigns of one SMS sender: `channelId` is the sender name.\n- **Search**: `search` is a case-insensitive partial match on the campaign name and on the SMS text. The description is never 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 SMS. See it for [RCS](/api-channel-rcs/get-campaigns) or [WhatsApp](/api-channel-whatsapp/get-campaigns).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "disabled": false,
                          "key": "channel",
                          "value": "string",
                          "description": "`SMS` (case-insensitive), only together with `channelId`: it says that `channelId` is an SMS sender name. To filter by sending mode use `sendingMode`."
                        },
                        {
                          "disabled": false,
                          "key": "channelId",
                          "value": "string",
                          "description": "SMS sender name 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": "719",
                          "description": "Page size, at most 1000 (default 10; 0 also means the default)."
                        },
                        {
                          "disabled": false,
                          "key": "page",
                          "value": "5496",
                          "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 and on the SMS text. The description is not searched."
                        },
                        {
                          "disabled": false,
                          "key": "sendingMode",
                          "value": "string",
                          "description": "`SMS` (case-insensitive) to list the SMS campaigns only. 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": "a3827390-b0b1-5d80-a863-dc18df23b3ac",
                      "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": "719"
                            },
                            {
                              "key": "page",
                              "value": "5496"
                            },
                            {
                              "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": "11399685-c44b-5cea-a5a7-e5654730fa65",
                      "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": "719"
                            },
                            {
                              "key": "page",
                              "value": "5496"
                            },
                            {
                              "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": "2294c27a-1f15-5b77-a65d-424f8c6ad6f7",
                      "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": "719"
                            },
                            {
                              "key": "page",
                              "value": "5496"
                            },
                            {
                              "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": "a57b0576-aedb-52ef-acde-c667e413946f",
                  "name": "Get SMS campaign statistics",
                  "request": {
                    "name": "Get SMS 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=SMS` the rows count the `SMS` campaigns and the SMS sent through the API. Without `sendingMode` they cover every channel.\n\n`GET /campaigns/stats` is one endpoint for SMS, RCS and WhatsApp: this page describes it for SMS. See it for [RCS](/api-channel-rcs/get-stats) or [WhatsApp](/api-channel-whatsapp/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": "719",
                          "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": "5496",
                          "description": "Page number, 0-based. Without `page` and `limit` every row is returned in one page."
                        },
                        {
                          "disabled": false,
                          "key": "sendingMode",
                          "value": "string",
                          "description": "`SMS` (case-insensitive) for the SMS 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": "90829c95-1b80-5b1c-abb3-ca6ffc613ff0",
                      "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": "719"
                            },
                            {
                              "key": "page",
                              "value": "5496"
                            },
                            {
                              "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\": 9499,\n      \"totalDestinations\": 2643,\n      \"totalSent\": 2907,\n      \"totalSuccess\": 396,\n      \"totalRead\": 7422,\n      \"totalFailed\": 6884,\n      \"totalFallback\": 1311,\n      \"smsSent\": 7191,\n      \"smsPending\": 3467,\n      \"smsSuccess\": 6663,\n      \"smsFailed\": 3885,\n      \"smsFallback\": 3430,\n      \"totalSms\": 2392,\n      \"totalPending\": 6474,\n      \"totalDelivered\": 1998,\n      \"totalError\": 3766,\n      \"totalCreditError\": 8461\n    },\n    {\n      \"timeBucket\": \"2026-09-01 00:00:00\",\n      \"sendingMode\": \"SMS\",\n      \"isHttpStat\": false,\n      \"numMessageCampaigns\": 5,\n      \"destinationType\": 8797,\n      \"totalDestinations\": 3113,\n      \"totalSent\": 3753,\n      \"totalSuccess\": 9700,\n      \"totalRead\": 6039,\n      \"totalFailed\": 161,\n      \"totalFallback\": 4892,\n      \"smsSent\": 3183,\n      \"smsPending\": 4026,\n      \"smsSuccess\": 2419,\n      \"smsFailed\": 8226,\n      \"smsFallback\": 5285,\n      \"totalSms\": 4447,\n      \"totalPending\": 8036,\n      \"totalDelivered\": 6891,\n      \"totalError\": 5939,\n      \"totalCreditError\": 2285\n    }\n  ],\n  \"totalCount\": 52,\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalPages\": 6\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "acbf3206-4a77-5599-a8cf-e4ad3ac35893",
                      "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": "719"
                            },
                            {
                              "key": "page",
                              "value": "5496"
                            },
                            {
                              "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": "d4b17977-730d-5ad5-a3ad-ccdc31d46888",
                      "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": "719"
                            },
                            {
                              "key": "page",
                              "value": "5496"
                            },
                            {
                              "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": "c6196153-3455-5ccd-a5af-6e9a2f756e69",
                  "name": "Generate the description of an SMS campaign",
                  "request": {
                    "name": "Generate the description of an SMS 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 SMS text 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 SMS. See it for [RCS](/api-channel-rcs/calculate-goal) or [WhatsApp](/api-channel-whatsapp/calculate-goal).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id",
                        "calculateGoal"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "2518",
                          "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": "59bc400a-77d0-54f2-a963-e19c0409467c",
                      "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": "2518",
                              "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\": 3440,\n  \"companyId\": 3785,\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    5034,\n    8474\n  ],\n  \"totalDestinations\": 7511,\n  \"totalPrice\": 3215,\n  \"walletKind\": \"CREDITS\",\n  \"smsSender\": \"string\",\n  \"smsBody\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"totalSuccess\": 1626,\n  \"totalFailed\": 1602,\n  \"totalSent\": 6969,\n  \"totalRead\": 9188,\n  \"totalFallback\": 8539,\n  \"smsSent\": 7447,\n  \"smsPending\": 9924,\n  \"smsSuccess\": 1230,\n  \"smsFailed\": 8002,\n  \"smsFallback\": 1800,\n  \"destinationType\": 9508,\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"isUpdatable\": true,\n  \"maxUpdateTime\": \"string\",\n  \"readyToSend\": false,\n  \"numOfDistinctContact\": 1910\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "48b555f4-ae63-586f-ace6-598dd6a0c539",
                      "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": "2518",
                              "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": "f21193d0-d899-5378-a297-cf09e18c78aa",
                      "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": "2518",
                              "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": "487724ab-7cc0-54d2-a653-50598be9590d",
                  "name": "Delete an SMS campaign",
                  "request": {
                    "name": "Delete an SMS 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 SMS. See it for [RCS](/api-channel-rcs/delete-campaign) or [WhatsApp](/api-channel-whatsapp/delete-campaign).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "2518",
                          "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": "501d1f1f-d455-5c1e-ab66-b6e2498ad319",
                      "name": "Campaign deleted. No response body.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "2518",
                              "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": "1583f852-438e-5892-a484-bae04ed97cc7",
                      "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": "2518",
                              "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": "35fe81e8-0f30-5fec-ae66-86206fc82de6",
                      "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": "2518",
                              "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": "c353bdfd-15c8-55b6-a4d7-4f3a482acd65",
                      "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": "2518",
                              "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": "5cbb7cb0-05f4-5302-afc8-66c378cd9bdb",
              "name": "Single SMS sends",
              "item": [
                {
                  "id": "9c7007e3-55ed-5af3-af02-d29c1d0213dd",
                  "name": "Send SMS Universal",
                  "request": {
                    "name": "Send SMS Universal",
                    "description": {
                      "content": "Sends an SMS message to the specified recipient.\n\n- **Placeholders**: insert `{name}` in the body and fill the `placeholders` map.\n- **Concatenation**: long messages are split into parts automatically (multipart SMS).\n- **UDH**: custom User Data Header data for binary SMS.\n- **Scheduling**: set `scheduledDate` to send later.\n- **Dry run**: set `simulation: true` to validate the request without sending.\n\n> **A `202` does not mean the message was accepted.** A request that passes validation is answered `202` also when the message is rejected: check `results.sms.accepted` and, if it is `false`, `results.sms.reasons`.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "sms",
                        "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\": \"+393201234567\",\n  \"sender\": \"MyBrand\",\n  \"body\": \"Ciao, il tuo ordine è stato spedito!\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "35e0a22c-f89a-5157-a331-e9fa1ed60a72",
                      "name": "Request accepted. Check `results.sms.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- **`reasons`** is present only when the message is rejected.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "sms",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393201234567\",\n  \"sender\": \"MyBrand\",\n  \"body\": \"Ciao, il tuo ordine è stato spedito!\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Accepted",
                      "code": 202,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"messageId\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n  \"simulation\": false,\n  \"results\": {\n    \"sms\": {\n      \"accepted\": true,\n      \"unicode\": false,\n      \"parts\": 1\n    }\n  }\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "1a2447ac-b938-5410-a6ec-b287f4b018fc",
                      "name": "Invalid request. Fields that fail validation are listed in `data`, an object that maps the path of each invalid field (such as `sendSms.request.destination`) to its messages (a too long `campaignId` is reported as `sendSms.request.groupId`); a body that cannot be read, for example a `scheduledDate` in another format, gives `data: \"Invalid request body\"`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "sms",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393201234567\",\n  \"sender\": \"MyBrand\",\n  \"body\": \"Ciao, il tuo ordine è stato spedito!\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"status\": \"fail\",\n  \"data\": {\n    \"sendSms.request.destination\": [\n      \"'destination' can't be blank\"\n    ]\n  }\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "03dc53ea-2bfd-53fd-a3e6-40d5cf9aad69",
                      "name": "Missing or invalid credentials. The body is empty.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "sms",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393201234567\",\n  \"sender\": \"MyBrand\",\n  \"body\": \"Ciao, il tuo ordine è stato spedito!\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "text/plain"
                        }
                      ],
                      "body": "",
                      "cookie": [],
                      "_postman_previewlanguage": "text"
                    },
                    {
                      "id": "12d88ff4-230d-50d2-a99a-5cdea1d20237",
                      "name": "The platform cannot find your account: the message is not stored. Contact support",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "sms",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393201234567\",\n  \"sender\": \"MyBrand\",\n  \"body\": \"Ciao, il tuo ordine è stato spedito!\"\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": "6373fd1c-a731-5885-a378-9fb48d750169",
                      "name": "Unexpected error while handling the message",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "sms",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393201234567\",\n  \"sender\": \"MyBrand\",\n  \"body\": \"Ciao, il tuo ordine è stato spedito!\"\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": "e0fc6033-7e00-5183-ac18-4676a32f1333",
                      "name": "The calling IP address is outside the IP ranges configured for your account",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "sms",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393201234567\",\n  \"sender\": \"MyBrand\",\n  \"body\": \"Ciao, il tuo ordine è stato spedito!\"\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": "e7714ff8-92c8-55a8-ab5f-8b62b601f959",
                  "name": "Get the delivery status of an SMS message",
                  "request": {
                    "name": "Get the delivery status of an SMS 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=SMS`. With any other channel an SMS answers `404`.\n- **A status exists only after dispatch**: a scheduled message has none before its `scheduledDate`. Allow a few seconds after the send.\n- **Keep your IDs unique**: the platform does not check them. For a reused ID, or an SMS split into several parts, 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| `ACCEPTED` | Forwarded to the carrier, no delivery receipt yet: the status of an SMS in flight. |\n| `DELIVERED` | The carrier or channel provider confirmed that the message reached the recipient's device. |\n| `REJECTED` | The carrier refused the message. |\n| `UNDELIVERABLE` | The destination cannot receive the message, typically an unreachable or invalid number. |\n| `DELETED` | The message was cancelled before it could be delivered. |\n| `EXPIRED` | Not delivered within its time-to-live window: the carrier discarded it. |\n| `UNKNOWN` | No status information. |\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 SMS. See it for [RCS](/api-channel-rcs/get-single-status) or [WhatsApp](/api-channel-whatsapp/get-single-status).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "messages",
                        "status",
                        ":customerMessageId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "disabled": false,
                          "key": "channel",
                          "value": "SMS",
                          "description": "(Required) `SMS` (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": "154c09a4-1e00-5707-ad92-2ff554f38941",
                      "name": "The delivery status of the message.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "messages",
                            "status",
                            ":customerMessageId"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "channel",
                              "value": "SMS"
                            }
                          ],
                          "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-sms-001\",\n  \"channel\": \"SMS\",\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": "492197f7-0e94-557a-ac00-46f842d36e6f",
                      "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": "SMS"
                            }
                          ],
                          "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": "8a07edbb-bc34-5bcd-a858-136984a6354e",
                      "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": "SMS"
                            }
                          ],
                          "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": "c329ff73-a46a-5d40-acb1-315af722924f",
                      "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": "SMS"
                            }
                          ],
                          "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": "633ec7ce-b136-5baa-aa4d-4bacc27718fb",
                      "name": "Unexpected server error. Retry after a short delay.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "messages",
                            "status",
                            ":customerMessageId"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "channel",
                              "value": "SMS"
                            }
                          ],
                          "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": "64367020-4a66-523d-a827-d79f40211677",
                  "name": "Get the delivery status of several SMS messages",
                  "request": {
                    "name": "Get the delivery status of several SMS 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=SMS`. All the IDs must be of SMS 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 SMS too long for a single part has one entry per part, each with the same `customerMessageId` and no part number, and 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 SMS. See it for [RCS](/api-channel-rcs/get-batch-status) or [WhatsApp](/api-channel-whatsapp/get-batch-status).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "messages",
                        "status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "disabled": false,
                          "key": "channel",
                          "value": "SMS",
                          "description": "(Required) `SMS` (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": "8930089b-aaf5-53a3-a6d4-5232ca926b92",
                      "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": "SMS"
                            },
                            {
                              "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\": \"SMS\",\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\": \"SMS\",\n    \"destination\": \"+39333654321\",\n    \"deliveryStatus\": \"UNDELIVERABLE\",\n    \"deliveryStatusDescription\": \"undeliverable\",\n    \"sendDate\": \"2025-03-10T14:30:00+01:00\",\n    \"deliveryDate\": null,\n    \"readDate\": null\n  }\n]",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "79da500d-943c-5179-a6bf-7c3d0abda017",
                      "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": "SMS"
                            },
                            {
                              "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": "9a77463e-a895-5c19-a84f-04013d789c3f",
                      "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": "SMS"
                            },
                            {
                              "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": "a04e7a06-943b-520a-a979-bc5f3e075988",
                      "name": "Unexpected server error. Retry after a short delay.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "messages",
                            "status"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "channel",
                              "value": "SMS"
                            },
                            {
                              "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": "2e080053-7699-59c4-a800-e28a22d62c76",
                  "name": "List the SMS send history",
                  "request": {
                    "name": "List the SMS send history",
                    "description": {
                      "content": "Returns the messages sent through the API on SMS in a date range, one page at a time.\n\n- **Required**: `channel=SMS` 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 record**: an SMS too long for a single part appears once per part, every part with the same `customerMessageId`. `page` and `limit` count those 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 SMS. See it for [RCS](/api-channel-rcs/get-history) or [WhatsApp](/api-channel-whatsapp/get-history).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "messages",
                        "history"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "disabled": false,
                          "key": "channel",
                          "value": "SMS",
                          "description": "(Required) `SMS` (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": "EXPIRED",
                          "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": "37cdf7a9-63fe-5eeb-a3e4-0f2e1d8a77c7",
                      "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": "SMS"
                            },
                            {
                              "key": "from",
                              "value": "2025-01-15T00:00:00Z"
                            },
                            {
                              "key": "limit",
                              "value": "20"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "status",
                              "value": "EXPIRED"
                            },
                            {
                              "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-sms-001\",\n    \"channel\": \"SMS\",\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": "57d3db40-59f0-5d59-ab67-5f2cd16485b8",
                      "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": "SMS"
                            },
                            {
                              "key": "from",
                              "value": "2025-01-15T00:00:00Z"
                            },
                            {
                              "key": "limit",
                              "value": "20"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "status",
                              "value": "EXPIRED"
                            },
                            {
                              "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": "7f5288f1-d730-5a56-a121-6d81a1649a4e",
                      "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": "SMS"
                            },
                            {
                              "key": "from",
                              "value": "2025-01-15T00:00:00Z"
                            },
                            {
                              "key": "limit",
                              "value": "20"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "status",
                              "value": "EXPIRED"
                            },
                            {
                              "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": "1bff2978-e66e-58c1-a0c6-8725959fd3c1",
                      "name": "Unexpected server error. Retry after a short delay.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "messages",
                            "history"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "channel",
                              "value": "SMS"
                            },
                            {
                              "key": "from",
                              "value": "2025-01-15T00:00:00Z"
                            },
                            {
                              "key": "limit",
                              "value": "20"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "status",
                              "value": "EXPIRED"
                            },
                            {
                              "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
                  }
                }
              ]
            }
          ]
        },
        {
          "id": "b638b2ad-be6c-5608-a8f4-d6a7bd39d592",
          "name": "RCS",
          "item": [
            {
              "id": "733a0626-5087-59ca-ae8c-03361060a2a3",
              "name": "List RCS agents",
              "request": {
                "name": "List RCS agents",
                "description": {
                  "content": "Returns the RCS Business Messaging agents of your account, one page at a time.\n\n- **Two identifiers**: each agent has a numeric `id`, the one `GET /rcs/agents/{agentId}` takes, and an `agentGoogleId` (for example `ag-2_ci5xnlho_agent`), the one campaigns take as `rcsAgentId`.\n- **Pagination**: `page` is 0-based and `limit` goes from 1 to 1000.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "rcs",
                    "agents"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "limit",
                      "value": "809",
                      "description": "Results per page, from 1 to 1000."
                    },
                    {
                      "disabled": false,
                      "key": "page",
                      "value": "314",
                      "description": "Page number, 0-based."
                    }
                  ],
                  "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": "fe53d348-b5d8-5f08-a953-4321ce2575df",
                  "name": "One page of RCS agents.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "rcs",
                        "agents"
                      ],
                      "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": "5de8cba9-7452-53bc-a7d2-666894557066",
                  "name": "`page` or `limit` is out of range. The response body names the parameter.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "rcs",
                        "agents"
                      ],
                      "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": "a4614334-368e-52ea-aba5-c5c12675b4a0",
                  "name": "The API key is missing, invalid, or lacks the `RCS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "rcs",
                        "agents"
                      ],
                      "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": "d3d53876-13e4-5109-aaa1-235614d2a8d1",
              "name": "Get a single RCS agent",
              "request": {
                "name": "Get a single RCS agent",
                "description": {
                  "content": "Returns one RCS Business Messaging agent of your account, with the same fields as the list.\n\n`agentId` is the numeric `id` of an entry of `GET /rcs/agents`, not its `agentGoogleId`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "rcs",
                    "agents",
                    ":agentId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "agentId",
                      "description": "(Required) Numeric `id` of the agent, as `GET /rcs/agents` 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": "9b0fe230-0af5-577a-ae65-d86307f8e62d",
                  "name": "The RCS agent.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "rcs",
                        "agents",
                        ":agentId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "agentId",
                          "description": "(Required) Numeric `id` of the agent, as `GET /rcs/agents` 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": "b14c6f4f-bedf-508a-abc6-977b0e78c819",
                  "name": "The API key is missing, invalid, or lacks the `RCS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "rcs",
                        "agents",
                        ":agentId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "agentId",
                          "description": "(Required) Numeric `id` of the agent, as `GET /rcs/agents` 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": "31ec60ac-51c8-5209-a49f-91a3ce2dea4e",
                  "name": "The ID is not one of the agents that `GET /rcs/agents` lists for your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "rcs",
                        "agents",
                        ":agentId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "agentId",
                          "description": "(Required) Numeric `id` of the agent, as `GET /rcs/agents` 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": "c9765605-a834-5c4e-a588-b0373ecaa2d9",
              "name": "Templates",
              "item": [
                {
                  "id": "07a7abb9-166a-534c-a997-e5f4438e986b",
                  "name": "List templates",
                  "request": {
                    "name": "List templates",
                    "description": {
                      "content": "Returns RCS templates with pagination, filters and sorting. The templates are in `data`; `page`, `limit`, `totalCount` and `totalPages` describe the page.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "rcs",
                        "templates"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "disabled": false,
                          "key": "search",
                          "value": "string",
                          "description": "Text searched, without regard to case, in name and description. When it is set, the `id`, `name`, `description` and `type` filters are ignored, and disabled templates can be listed too."
                        },
                        {
                          "disabled": false,
                          "key": "id",
                          "value": "6394",
                          "description": "Filter by template ID"
                        },
                        {
                          "disabled": false,
                          "key": "name",
                          "value": "string",
                          "description": "Filter by template name: templates whose name contains this text, without regard to case"
                        },
                        {
                          "disabled": false,
                          "key": "description",
                          "value": "string",
                          "description": "Filter by description: templates whose description contains this text, without regard to case"
                        },
                        {
                          "disabled": false,
                          "key": "type",
                          "value": "CAROUSEL",
                          "description": "Filter by template type"
                        },
                        {
                          "disabled": false,
                          "key": "sortBy",
                          "value": "id",
                          "description": "Field to sort results by: `id`, `name`, `description`, `type`, `enabled`, `creationDate` or `lastUpdateDate`"
                        },
                        {
                          "disabled": false,
                          "key": "sortOrder",
                          "value": "asc",
                          "description": "Sort order"
                        },
                        {
                          "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": "56a93b2c-50f5-5893-a9d2-712176677ecc",
                      "name": "Template list",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "search",
                              "value": "string"
                            },
                            {
                              "key": "id",
                              "value": "6394"
                            },
                            {
                              "key": "name",
                              "value": "string"
                            },
                            {
                              "key": "description",
                              "value": "string"
                            },
                            {
                              "key": "type",
                              "value": "CAROUSEL"
                            },
                            {
                              "key": "sortBy",
                              "value": "id"
                            },
                            {
                              "key": "sortOrder",
                              "value": "asc"
                            },
                            {
                              "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\": 1,\n      \"companyId\": 1234,\n      \"name\": \"rcs_welcome\",\n      \"description\": \"Template di benvenuto\",\n      \"type\": \"TEXT\",\n      \"body\": {\n        \"text\": \"Ciao {name}! Benvenuto.\",\n        \"fallbackSms\": {\n          \"sender\": \"AZIENDA\",\n          \"text\": \"Ciao {name}! Benvenuto.\"\n        }\n      },\n      \"placeholderFields\": {},\n      \"enabled\": true,\n      \"creationDate\": \"2025-09-15 10:00:00.000+0000\",\n      \"lastUpdateDate\": \"2025-09-15 10:00:00.000+0000\"\n    }\n  ],\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalCount\": 1,\n  \"totalPages\": 1\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "e672c0a5-c8c2-5084-a770-f8a162c8dc29",
                      "name": "Missing or invalid credentials. The body is empty.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "search",
                              "value": "string"
                            },
                            {
                              "key": "id",
                              "value": "6394"
                            },
                            {
                              "key": "name",
                              "value": "string"
                            },
                            {
                              "key": "description",
                              "value": "string"
                            },
                            {
                              "key": "type",
                              "value": "CAROUSEL"
                            },
                            {
                              "key": "sortBy",
                              "value": "id"
                            },
                            {
                              "key": "sortOrder",
                              "value": "asc"
                            },
                            {
                              "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": "7cc84d6f-c31b-5816-ad48-c894ed4ba05c",
                  "name": "Create template",
                  "request": {
                    "name": "Create template",
                    "description": {
                      "content": "Creates a new RCS template. The `body` field varies based on the specified `type`:\n\n- **TEXT**: plain text with optional suggestions\n- **CARD**: rich card with media, title and description\n- **CAROUSEL**: carousel of cards with media\n",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "rcs",
                        "templates"
                      ],
                      "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  \"name\": \"rcs_welcome\",\n  \"description\": \"Template di benvenuto\",\n  \"type\": \"TEXT\",\n  \"body\": {\n    \"text\": \"Ciao {name}! Benvenuto.\",\n    \"fallbackSms\": {\n      \"sender\": \"AZIENDA\",\n      \"text\": \"Ciao {name}! Benvenuto.\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "9ce45220-75da-5849-a9ef-5cb0761bdeea",
                      "name": "Template created",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"name\": \"rcs_welcome\",\n  \"description\": \"Template di benvenuto\",\n  \"type\": \"TEXT\",\n  \"body\": {\n    \"text\": \"Ciao {name}! Benvenuto.\",\n    \"fallbackSms\": {\n      \"sender\": \"AZIENDA\",\n      \"text\": \"Ciao {name}! Benvenuto.\"\n    }\n  }\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Created",
                      "code": 201,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"id\": 384,\n  \"companyId\": 6363,\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"type\": \"CAROUSEL\",\n  \"body\": {\n    \"text\": \"string\",\n    \"suggestions\": [\n      {\n        \"type\": \"string\",\n        \"text\": \"string\",\n        \"reply\": {},\n        \"url\": {\n          \"url\": \"string\"\n        },\n        \"dial\": {\n          \"phoneNumber\": \"string\"\n        },\n        \"locationCoordinates\": {\n          \"latitude\": 4528.9443037472665,\n          \"longitude\": 5235.224142670631,\n          \"label\": \"string\"\n        },\n        \"locationQuery\": {\n          \"query\": \"string\"\n        },\n        \"calendar\": {\n          \"startTime\": \"1988-04-23T19:34:34.689Z\",\n          \"endTime\": \"1993-07-28T08:59:06.301Z\",\n          \"title\": \"string\",\n          \"description\": \"string\"\n        }\n      },\n      {\n        \"type\": \"string\",\n        \"text\": \"string\",\n        \"reply\": {},\n        \"url\": {\n          \"url\": \"string\"\n        },\n        \"dial\": {\n          \"phoneNumber\": \"string\"\n        },\n        \"locationCoordinates\": {\n          \"latitude\": 6085.9707137569785,\n          \"longitude\": 5463.0835191346705,\n          \"label\": \"string\"\n        },\n        \"locationQuery\": {\n          \"query\": \"string\"\n        },\n        \"calendar\": {\n          \"startTime\": \"1996-08-26T05:00:11.798Z\",\n          \"endTime\": \"1995-04-01T23:22:37.974Z\",\n          \"title\": \"string\",\n          \"description\": \"string\"\n        }\n      }\n    ],\n    \"ttlSeconds\": 615,\n    \"fallbackSms\": {\n      \"sender\": \"string\",\n      \"text\": \"string\"\n    },\n    \"fallbackWhatsApp\": {\n      \"phoneNumberId\": 4392,\n      \"body\": {},\n      \"template\": {}\n    }\n  },\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"enabled\": true,\n  \"creationDate\": \"string\",\n  \"lastUpdateDate\": \"string\"\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "1e8b4d00-bbd0-50f8-afaa-ffc6cbd2adff",
                      "name": "Invalid request. Fields that fail validation are listed in `data`, an object that maps the path of each invalid field (such as `createTemplate.request.body.text`) to its messages; a body that cannot be read gives `data: \"Invalid request body\"`. A missing `name` is reported as `If 'draft' is false, 'name' can't be blank`: `draft` cannot be set through this API.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"name\": \"rcs_welcome\",\n  \"description\": \"Template di benvenuto\",\n  \"type\": \"TEXT\",\n  \"body\": {\n    \"text\": \"Ciao {name}! Benvenuto.\",\n    \"fallbackSms\": {\n      \"sender\": \"AZIENDA\",\n      \"text\": \"Ciao {name}! Benvenuto.\"\n    }\n  }\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"status\": \"fail\",\n  \"data\": {\n    \"createTemplate.request.notDraftNameValid\": [\n      \"If 'draft' is false, 'name' can't be blank\"\n    ]\n  }\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "6d676e5d-5ea4-5fb5-ac32-1e2c900abecc",
                      "name": "Missing or invalid credentials. The body is empty.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"name\": \"rcs_welcome\",\n  \"description\": \"Template di benvenuto\",\n  \"type\": \"TEXT\",\n  \"body\": {\n    \"text\": \"Ciao {name}! Benvenuto.\",\n    \"fallbackSms\": {\n      \"sender\": \"AZIENDA\",\n      \"text\": \"Ciao {name}! Benvenuto.\"\n    }\n  }\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "text/plain"
                        }
                      ],
                      "body": "",
                      "cookie": [],
                      "_postman_previewlanguage": "text"
                    }
                  ],
                  "event": [],
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  }
                },
                {
                  "id": "e8370308-e689-5a2f-ab28-3114ceccd28d",
                  "name": "Template details",
                  "request": {
                    "name": "Template details",
                    "description": {
                      "content": "Returns the full details of an RCS template.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "rcs",
                        "templates",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "6394",
                          "key": "id",
                          "description": "(Required) RCS template ID"
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "auth": null
                  },
                  "response": [
                    {
                      "id": "af5801db-c8a2-5c6e-a69e-80130748f08e",
                      "name": "Template details",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "6394",
                              "key": "id",
                              "description": "(Required) RCS 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\": 384,\n  \"companyId\": 6363,\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"type\": \"CAROUSEL\",\n  \"body\": {\n    \"text\": \"string\",\n    \"suggestions\": [\n      {\n        \"type\": \"string\",\n        \"text\": \"string\",\n        \"reply\": {},\n        \"url\": {\n          \"url\": \"string\"\n        },\n        \"dial\": {\n          \"phoneNumber\": \"string\"\n        },\n        \"locationCoordinates\": {\n          \"latitude\": 4528.9443037472665,\n          \"longitude\": 5235.224142670631,\n          \"label\": \"string\"\n        },\n        \"locationQuery\": {\n          \"query\": \"string\"\n        },\n        \"calendar\": {\n          \"startTime\": \"1988-04-23T19:34:34.689Z\",\n          \"endTime\": \"1993-07-28T08:59:06.301Z\",\n          \"title\": \"string\",\n          \"description\": \"string\"\n        }\n      },\n      {\n        \"type\": \"string\",\n        \"text\": \"string\",\n        \"reply\": {},\n        \"url\": {\n          \"url\": \"string\"\n        },\n        \"dial\": {\n          \"phoneNumber\": \"string\"\n        },\n        \"locationCoordinates\": {\n          \"latitude\": 6085.9707137569785,\n          \"longitude\": 5463.0835191346705,\n          \"label\": \"string\"\n        },\n        \"locationQuery\": {\n          \"query\": \"string\"\n        },\n        \"calendar\": {\n          \"startTime\": \"1996-08-26T05:00:11.798Z\",\n          \"endTime\": \"1995-04-01T23:22:37.974Z\",\n          \"title\": \"string\",\n          \"description\": \"string\"\n        }\n      }\n    ],\n    \"ttlSeconds\": 615,\n    \"fallbackSms\": {\n      \"sender\": \"string\",\n      \"text\": \"string\"\n    },\n    \"fallbackWhatsApp\": {\n      \"phoneNumberId\": 4392,\n      \"body\": {},\n      \"template\": {}\n    }\n  },\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"enabled\": true,\n  \"creationDate\": \"string\",\n  \"lastUpdateDate\": \"string\"\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "171c938e-6fca-5380-a704-d80aa7b517dd",
                      "name": "Template not found in your account",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "6394",
                              "key": "id",
                              "description": "(Required) RCS 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 '55' not found\"\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    }
                  ],
                  "event": [],
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  }
                },
                {
                  "id": "2dfbb5ed-7f1c-5deb-a18f-7335cd000c5a",
                  "name": "Update template",
                  "request": {
                    "name": "Update template",
                    "description": {
                      "content": "Updates an existing RCS template.\n\n- **Always send `body`**: a request without `body` erases the content of the template, which is left with no text, card or fallback. To change only `name` or `description`, send the `type` and `body` that `GET /message-server/rcs/templates/{id}` returns together with them.\n- **The other fields are optional**: `name`, `description` and `type` keep their value when you leave them out.\n- **`body` is replaced as a whole**: a `body` replaces the whole content.\n- **No validation**: unlike the creation, the update does not validate the fields.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "rcs",
                        "templates",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "6394",
                          "key": "id",
                          "description": "(Required) RCS template ID"
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "auth": null,
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"rcs_welcome_v2\",\n  \"description\": \"Template di benvenuto aggiornato\",\n  \"type\": \"TEXT\",\n  \"body\": {\n    \"text\": \"Ciao {name}! Benvenuto.\",\n    \"fallbackSms\": {\n      \"sender\": \"AZIENDA\",\n      \"text\": \"Ciao {name}! Benvenuto.\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "d70af4a1-f3bb-5943-a878-180d36c91618",
                      "name": "Template updated",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "6394",
                              "key": "id",
                              "description": "(Required) RCS template ID"
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"name\": \"rcs_welcome_v2\",\n  \"description\": \"Template di benvenuto aggiornato\",\n  \"type\": \"TEXT\",\n  \"body\": {\n    \"text\": \"Ciao {name}! Benvenuto.\",\n    \"fallbackSms\": {\n      \"sender\": \"AZIENDA\",\n      \"text\": \"Ciao {name}! Benvenuto.\"\n    }\n  }\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"id\": 384,\n  \"companyId\": 6363,\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"type\": \"CAROUSEL\",\n  \"body\": {\n    \"text\": \"string\",\n    \"suggestions\": [\n      {\n        \"type\": \"string\",\n        \"text\": \"string\",\n        \"reply\": {},\n        \"url\": {\n          \"url\": \"string\"\n        },\n        \"dial\": {\n          \"phoneNumber\": \"string\"\n        },\n        \"locationCoordinates\": {\n          \"latitude\": 4528.9443037472665,\n          \"longitude\": 5235.224142670631,\n          \"label\": \"string\"\n        },\n        \"locationQuery\": {\n          \"query\": \"string\"\n        },\n        \"calendar\": {\n          \"startTime\": \"1988-04-23T19:34:34.689Z\",\n          \"endTime\": \"1993-07-28T08:59:06.301Z\",\n          \"title\": \"string\",\n          \"description\": \"string\"\n        }\n      },\n      {\n        \"type\": \"string\",\n        \"text\": \"string\",\n        \"reply\": {},\n        \"url\": {\n          \"url\": \"string\"\n        },\n        \"dial\": {\n          \"phoneNumber\": \"string\"\n        },\n        \"locationCoordinates\": {\n          \"latitude\": 6085.9707137569785,\n          \"longitude\": 5463.0835191346705,\n          \"label\": \"string\"\n        },\n        \"locationQuery\": {\n          \"query\": \"string\"\n        },\n        \"calendar\": {\n          \"startTime\": \"1996-08-26T05:00:11.798Z\",\n          \"endTime\": \"1995-04-01T23:22:37.974Z\",\n          \"title\": \"string\",\n          \"description\": \"string\"\n        }\n      }\n    ],\n    \"ttlSeconds\": 615,\n    \"fallbackSms\": {\n      \"sender\": \"string\",\n      \"text\": \"string\"\n    },\n    \"fallbackWhatsApp\": {\n      \"phoneNumberId\": 4392,\n      \"body\": {},\n      \"template\": {}\n    }\n  },\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"enabled\": true,\n  \"creationDate\": \"string\",\n  \"lastUpdateDate\": \"string\"\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "14ff3759-4fa3-5b38-ad6e-b8a950afed6a",
                      "name": "The body cannot be read: `data` is `Invalid request body`. Unlike the creation, the update does not validate the fields.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "6394",
                              "key": "id",
                              "description": "(Required) RCS template ID"
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"name\": \"rcs_welcome_v2\",\n  \"description\": \"Template di benvenuto aggiornato\",\n  \"type\": \"TEXT\",\n  \"body\": {\n    \"text\": \"Ciao {name}! Benvenuto.\",\n    \"fallbackSms\": {\n      \"sender\": \"AZIENDA\",\n      \"text\": \"Ciao {name}! Benvenuto.\"\n    }\n  }\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"status\": \"fail\",\n  \"data\": \"Invalid request body\"\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "656395e2-218b-5250-a2ef-1ac8d4a51087",
                      "name": "Template not found in your account",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "6394",
                              "key": "id",
                              "description": "(Required) RCS template ID"
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"name\": \"rcs_welcome_v2\",\n  \"description\": \"Template di benvenuto aggiornato\",\n  \"type\": \"TEXT\",\n  \"body\": {\n    \"text\": \"Ciao {name}! Benvenuto.\",\n    \"fallbackSms\": {\n      \"sender\": \"AZIENDA\",\n      \"text\": \"Ciao {name}! Benvenuto.\"\n    }\n  }\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Not Found",
                      "code": 404,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"status\": \"fail\",\n  \"data\": \"Template '55' not found\"\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    }
                  ],
                  "event": [],
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  }
                },
                {
                  "id": "237be0a6-77cc-50fb-a3f8-c15258e60d9e",
                  "name": "Delete template",
                  "request": {
                    "name": "Delete template",
                    "description": {
                      "content": "Deletes an RCS template.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "rcs",
                        "templates",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "6394",
                          "key": "id",
                          "description": "(Required) RCS template ID"
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "auth": null
                  },
                  "response": [
                    {
                      "id": "6411414c-4382-5634-a472-c576a5e76c62",
                      "name": "Template deleted",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "6394",
                              "key": "id",
                              "description": "(Required) RCS template ID"
                            }
                          ]
                        },
                        "method": "DELETE",
                        "body": {}
                      },
                      "status": "No Content",
                      "code": 204,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "text/plain"
                        }
                      ],
                      "body": "",
                      "cookie": [],
                      "_postman_previewlanguage": "text"
                    },
                    {
                      "id": "865bc235-4a3d-54f2-a5e4-32779e5db22c",
                      "name": "Template not found in your account",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "templates",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "6394",
                              "key": "id",
                              "description": "(Required) RCS 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 '55' not found\"\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    }
                  ],
                  "event": [],
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  }
                }
              ]
            },
            {
              "id": "2cdbcb24-58ff-5c1a-af81-9972e2ee08d3",
              "name": "Campaigns",
              "item": [
                {
                  "id": "f710032d-083d-553e-aa83-780c9629d6ba",
                  "name": "Create an RCS campaign",
                  "request": {
                    "name": "Create an RCS campaign",
                    "description": {
                      "content": "Creates a bulk RCS campaign, as a draft or already marked ready to send. Nothing is sent until you confirm it.\n\n- **Channel**: set `sendingMode` to `RCS`, with the agent (`rcsAgentId`) and the template (`rcsTemplateId`, `rcsTemplateType`). `RCS_SMS` tries RCS 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 template is checked against your account**: `rcsTemplateId` must be an enabled RCS template, and with `RCS_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| `RCS` | `rcsAgentId` and `rcsTemplateId`. |\n| `RCS_SMS` | The RCS fields, plus `smsSender` and `smsBody`: RCS is tried first, then SMS. |\n| `RCS_WHATSAPP_SMS`, `WHATSAPP_RCS_SMS` | The fields of all three channels, tried in the order of the name. The WhatsApp ones are on [Create a WhatsApp campaign](/api-channel-whatsapp/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 RCS. See it for [SMS](/api-channel-sms/create-campaign) or [WhatsApp](/api-channel-whatsapp/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\": \"Summer Collection 2027\",\n  \"sendingMode\": \"RCS\",\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinationType\": 1,\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\n  \"readyToSend\": false\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "4dfc2255-8351-59a9-a987-0b2696f944b0",
                      "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\": \"Summer Collection 2027\",\n  \"sendingMode\": \"RCS\",\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinationType\": 1,\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\n  \"readyToSend\": false\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Created",
                      "code": 201,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"id\": 1003,\n  \"name\": \"Summer Collection 2027\",\n  \"status\": \"DRAFT\",\n  \"sendingMode\": \"RCS\",\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\n  \"readyToSend\": false\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "131d1dc6-bd97-5b0d-a20f-4b44103478d5",
                      "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\": \"Summer Collection 2027\",\n  \"sendingMode\": \"RCS\",\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinationType\": 1,\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\n  \"readyToSend\": false\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "ea1933c9-fa14-5750-af6b-79c2cf7eeeb7",
                      "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\": \"Summer Collection 2027\",\n  \"sendingMode\": \"RCS\",\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinationType\": 1,\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\n  \"readyToSend\": false\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "e3306c03-56cd-5d19-a97a-e892b80de0c6",
                      "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\": \"Summer Collection 2027\",\n  \"sendingMode\": \"RCS\",\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinationType\": 1,\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\n  \"readyToSend\": false\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Forbidden",
                      "code": 403,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "66d62355-8245-50ee-ad04-eda82c3739fa",
                      "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\": \"Summer Collection 2027\",\n  \"sendingMode\": \"RCS\",\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinationType\": 1,\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\n  \"readyToSend\": false\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": "4f51836d-cd1c-5344-a994-79b54bba38ca",
                  "name": "Update an RCS campaign",
                  "request": {
                    "name": "Update an RCS 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- **The template is checked against your account**: `rcsTemplateId` must be an enabled RCS template, and with `RCS_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 RCS. See it for [SMS](/api-channel-sms/update-campaign) or [WhatsApp](/api-channel-whatsapp/update-campaign).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "6177",
                          "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\": \"RCS\",\n  \"destinationType\": 1,\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\n  \"readyToSend\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "22cf2356-154e-5f27-af62-d171b9afc188",
                      "name": "Campaign updated, returned as stored.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "6177",
                              "key": "id",
                              "description": "(Required) ID of the campaign."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"sendingMode\": \"RCS\",\n  \"destinationType\": 1,\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\n  \"readyToSend\": true\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"id\": 1001,\n  \"userId\": 2002,\n  \"companyId\": 4930,\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    9224,\n    3330\n  ],\n  \"rcsAgentId\": \"string\",\n  \"rcsTemplateBody\": {\n    \"key_0\": 5586.481092032045\n  },\n  \"rcsTemplateId\": 2301,\n  \"rcsTemplateType\": \"string\",\n  \"totalDestinations\": 6457,\n  \"totalPrice\": 5263,\n  \"walletKind\": \"CREDITS\",\n  \"smsSender\": \"string\",\n  \"smsBody\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"totalSuccess\": 9194,\n  \"totalFailed\": 6365,\n  \"totalSent\": 4505,\n  \"totalRead\": 5529,\n  \"totalFallback\": 30,\n  \"rcsSent\": 4604,\n  \"rcsPending\": 1062,\n  \"rcsSuccess\": 6929,\n  \"rcsFailed\": 6554,\n  \"rcsRead\": 1313,\n  \"smsSent\": 8277,\n  \"smsPending\": 8529,\n  \"smsSuccess\": 5336,\n  \"smsFailed\": 5992,\n  \"smsFallback\": 9870,\n  \"destinationType\": 1730,\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"isUpdatable\": true,\n  \"maxUpdateTime\": \"string\",\n  \"readyToSend\": true,\n  \"numOfDistinctContact\": 4008\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "5d598f92-34d3-51a6-a5f1-0709794771fa",
                      "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": "6177",
                              "key": "id",
                              "description": "(Required) ID of the campaign."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"sendingMode\": \"RCS\",\n  \"destinationType\": 1,\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\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": "c0260178-e17c-5199-a399-1a4ec6ef3a1f",
                      "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": "6177",
                              "key": "id",
                              "description": "(Required) ID of the campaign."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"sendingMode\": \"RCS\",\n  \"destinationType\": 1,\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\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": "57373331-5b6c-5757-aedb-bc499615fa98",
                      "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": "6177",
                              "key": "id",
                              "description": "(Required) ID of the campaign."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"sendingMode\": \"RCS\",\n  \"destinationType\": 1,\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\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": "2a6ed42e-a333-53e3-a6e7-e98d0aae656d",
                      "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": "6177",
                              "key": "id",
                              "description": "(Required) ID of the campaign."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"sendingMode\": \"RCS\",\n  \"destinationType\": 1,\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\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": "1e532b23-1e8b-5ea0-a9de-70dfa8c41acb",
                  "name": "Get the total price of an RCS campaign",
                  "request": {
                    "name": "Get the total price of an RCS 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\n\n`GET /campaigns/{id}/price` is one endpoint for SMS, RCS and WhatsApp: this page describes it for RCS. See it for [SMS](/api-channel-sms/get-total-price) or [WhatsApp](/api-channel-whatsapp/get-total-price).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id",
                        "price"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "6177",
                          "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": "0cdbae22-908c-54fb-af1a-6515743a640e",
                      "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": "6177",
                              "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\": 2002,\n  \"companyId\": 4930,\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    9224,\n    3330\n  ],\n  \"rcsAgentId\": \"string\",\n  \"rcsTemplateBody\": {\n    \"key_0\": 5586.481092032045\n  },\n  \"rcsTemplateId\": 2301,\n  \"rcsTemplateType\": \"string\",\n  \"totalDestinations\": 6457,\n  \"totalPrice\": 5263,\n  \"walletKind\": \"CREDITS\",\n  \"smsSender\": \"string\",\n  \"smsBody\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"totalSuccess\": 9194,\n  \"totalFailed\": 6365,\n  \"totalSent\": 4505,\n  \"totalRead\": 5529,\n  \"totalFallback\": 30,\n  \"rcsSent\": 4604,\n  \"rcsPending\": 1062,\n  \"rcsSuccess\": 6929,\n  \"rcsFailed\": 6554,\n  \"rcsRead\": 1313,\n  \"smsSent\": 8277,\n  \"smsPending\": 8529,\n  \"smsSuccess\": 5336,\n  \"smsFailed\": 5992,\n  \"smsFallback\": 9870,\n  \"destinationType\": 1730,\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"isUpdatable\": true,\n  \"maxUpdateTime\": \"string\",\n  \"readyToSend\": true,\n  \"numOfDistinctContact\": 4008\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "ed44d5b5-d463-5722-ac33-daff461fa004",
                      "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": "6177",
                              "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": "4517ac2e-ba70-5a3a-abb9-42ca27ce37bc",
                      "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": "6177",
                              "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": "43db8020-2fb9-52c1-a0c4-e4ced0a1fa9c",
                      "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": "6177",
                              "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": "571f950d-58c8-54e0-aa78-a1f2e6bde4e5",
                  "name": "Confirm / schedule an RCS campaign",
                  "request": {
                    "name": "Confirm / schedule an RCS 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`, `rcsAgentId` and `rcsTemplateId` (plus `smsSender` and `smsBody` with `RCS_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\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 RCS. See it for [SMS](/api-channel-sms/confirm-campaign) or [WhatsApp](/api-channel-whatsapp/confirm-campaign).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id",
                        "confirm"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "6177",
                          "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": "c108f768-1e36-5eb2-a74a-f57054d46f94",
                      "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": "6177",
                              "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": "b3573f32-6c52-5bbd-a956-dd5de02facb5",
                      "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": "6177",
                              "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": "6d7f7f45-0cc8-5b52-a9f2-2a791ed6d983",
                      "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": "6177",
                              "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": "c2501601-46dd-5657-a033-bb9c6c07d256",
                      "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": "6177",
                              "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": "bb559d3c-31cb-5a8d-afd1-e0e7a3837d3f",
                  "name": "Get an RCS campaign",
                  "request": {
                    "name": "Get an RCS 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 RCS template in `rcsTemplateBody`, and `smsBody` for an SMS fallback), the recipients (`contactListIds`, `destinations`) and the `scheduledDate`, if any.\n- **Results**: `totalDestinations`, `totalSuccess`, `totalFailed` and the RCS 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 RCS. See it for [SMS](/api-channel-sms/get-campaign-by-id) or [WhatsApp](/api-channel-whatsapp/get-campaign-by-id).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "6177",
                          "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": "a513f542-cc18-5fc9-aeab-7ba451ecab83",
                      "name": "The campaign.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "6177",
                              "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\": 1003,\n  \"name\": \"Summer Collection 2027\",\n  \"status\": \"ENDED\",\n  \"sendingMode\": \"RCS\",\n  \"rcsAgentId\": \"ag-2_ci5xnlho_agent\",\n  \"rcsTemplateId\": 1804,\n  \"rcsTemplateType\": \"CARD\",\n  \"destinations\": [\n    \"+393331234567\",\n    \"+393471234567\"\n  ],\n  \"totalDestinations\": 2,\n  \"totalSuccess\": 2,\n  \"totalFailed\": 0,\n  \"readyToSend\": false\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "b7101181-8a21-5ad7-a0ca-7d6107cc7a5b",
                      "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": "6177",
                              "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": "0be894d2-f619-5b49-ae19-004058845cd2",
                      "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": "6177",
                              "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": "d1ceb115-a1c4-5313-a439-7fd9d1d872c9",
                  "name": "List RCS campaigns",
                  "request": {
                    "name": "List RCS 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- **RCS campaigns only**: send `sendingMode=RCS`, or `sendingMode=RCS,RCS_SMS` to include those with an SMS fallback. Without `sendingMode` the list holds the campaigns of every channel. Each mode is matched exactly, so `RCS` does not include `RCS_SMS`.\n- **Agent**: `channel=RCS` and `channelId` go together, and keep the campaigns of one RCS agent: `channelId` is the agent ID.\n- **Search**: `search` is a case-insensitive partial match on the campaign name, on the RCS template content and, on `RCS_SMS` campaigns, on the SMS text. The description is never 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 RCS. See it for [SMS](/api-channel-sms/get-campaigns) or [WhatsApp](/api-channel-whatsapp/get-campaigns).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "disabled": false,
                          "key": "channel",
                          "value": "string",
                          "description": "`RCS` (case-insensitive), only together with `channelId`: it says that `channelId` is an RCS agent ID. To filter by sending mode use `sendingMode`."
                        },
                        {
                          "disabled": false,
                          "key": "channelId",
                          "value": "string",
                          "description": "RCS agent 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": "false",
                          "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": "579",
                          "description": "Page size, at most 1000 (default 10; 0 also means the default)."
                        },
                        {
                          "disabled": false,
                          "key": "page",
                          "value": "8423",
                          "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, on the RCS template content and, on `RCS_SMS` campaigns, on the SMS text. The description is not searched."
                        },
                        {
                          "disabled": false,
                          "key": "sendingMode",
                          "value": "string",
                          "description": "`RCS`, `RCS_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": "65d84703-2580-58bb-ae64-53d2a8614762",
                      "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": "579"
                            },
                            {
                              "key": "page",
                              "value": "8423"
                            },
                            {
                              "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": "691238b0-59c0-5eb5-a3a5-8581b774211f",
                      "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": "579"
                            },
                            {
                              "key": "page",
                              "value": "8423"
                            },
                            {
                              "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": "c2559fc9-b0dd-5073-a606-ebb066b46653",
                      "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": "579"
                            },
                            {
                              "key": "page",
                              "value": "8423"
                            },
                            {
                              "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": "b0b030f2-4a18-59ce-a45d-c8b9994f36ed",
                  "name": "Get RCS campaign statistics",
                  "request": {
                    "name": "Get RCS 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=RCS` or `sendingMode=RCS_SMS` the rows count the `RCS_SMS` campaigns only, and the RCS messages sent through the API. Campaigns sent on RCS only 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 RCS. See it for [SMS](/api-channel-sms/get-stats) or [WhatsApp](/api-channel-whatsapp/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": "579",
                          "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": "8423",
                          "description": "Page number, 0-based. Without `page` and `limit` every row is returned in one page."
                        },
                        {
                          "disabled": false,
                          "key": "sendingMode",
                          "value": "string",
                          "description": "`RCS` or `RCS_SMS` (case-insensitive): both cover `RCS_SMS` campaigns 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": "02b61061-c684-57b7-a602-3ef5ca067717",
                      "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": "579"
                            },
                            {
                              "key": "page",
                              "value": "8423"
                            },
                            {
                              "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\": 1749,\n      \"totalDestinations\": 784,\n      \"totalSent\": 2429,\n      \"totalSuccess\": 6983,\n      \"totalRead\": 2890,\n      \"totalFailed\": 6812,\n      \"totalFallback\": 4629,\n      \"rcsSent\": 1552,\n      \"rcsPending\": 9666,\n      \"rcsSuccess\": 7052,\n      \"rcsFailed\": 2772,\n      \"rcsRead\": 9832,\n      \"smsSent\": 6448,\n      \"smsPending\": 265,\n      \"smsSuccess\": 1416,\n      \"smsFailed\": 315,\n      \"smsFallback\": 5880,\n      \"totalSms\": 1428,\n      \"totalRcs\": 6346,\n      \"totalPending\": 8842,\n      \"totalDelivered\": 1455,\n      \"totalError\": 5040,\n      \"totalCreditError\": 6751\n    },\n    {\n      \"timeBucket\": \"2026-09-01 00:00:00\",\n      \"sendingMode\": \"SMS\",\n      \"isHttpStat\": false,\n      \"numMessageCampaigns\": 5,\n      \"destinationType\": 9025,\n      \"totalDestinations\": 9252,\n      \"totalSent\": 4855,\n      \"totalSuccess\": 1987,\n      \"totalRead\": 8938,\n      \"totalFailed\": 8195,\n      \"totalFallback\": 9054,\n      \"rcsSent\": 7442,\n      \"rcsPending\": 4217,\n      \"rcsSuccess\": 299,\n      \"rcsFailed\": 7302,\n      \"rcsRead\": 6504,\n      \"smsSent\": 1274,\n      \"smsPending\": 9834,\n      \"smsSuccess\": 2101,\n      \"smsFailed\": 3802,\n      \"smsFallback\": 2891,\n      \"totalSms\": 585,\n      \"totalRcs\": 7888,\n      \"totalPending\": 8191,\n      \"totalDelivered\": 4081,\n      \"totalError\": 173,\n      \"totalCreditError\": 2313\n    }\n  ],\n  \"totalCount\": 52,\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalPages\": 6\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "6abaa829-7bf9-5800-a11d-4a8f3e1a920c",
                      "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": "579"
                            },
                            {
                              "key": "page",
                              "value": "8423"
                            },
                            {
                              "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": "c03cc08f-e491-5e14-a687-f7905ce40820",
                      "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": "579"
                            },
                            {
                              "key": "page",
                              "value": "8423"
                            },
                            {
                              "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": "cde22ae6-dd3f-5838-a489-b9658a1dca66",
                  "name": "Generate the description of an RCS campaign",
                  "request": {
                    "name": "Generate the description of an RCS 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 RCS 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 RCS. See it for [SMS](/api-channel-sms/calculate-goal) or [WhatsApp](/api-channel-whatsapp/calculate-goal).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id",
                        "calculateGoal"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "6177",
                          "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": "6d6bf761-8973-521f-ad5c-b0f3ef738678",
                      "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": "6177",
                              "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\": 2002,\n  \"companyId\": 4930,\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    9224,\n    3330\n  ],\n  \"rcsAgentId\": \"string\",\n  \"rcsTemplateBody\": {\n    \"key_0\": 5586.481092032045\n  },\n  \"rcsTemplateId\": 2301,\n  \"rcsTemplateType\": \"string\",\n  \"totalDestinations\": 6457,\n  \"totalPrice\": 5263,\n  \"walletKind\": \"CREDITS\",\n  \"smsSender\": \"string\",\n  \"smsBody\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {}\n  },\n  \"totalSuccess\": 9194,\n  \"totalFailed\": 6365,\n  \"totalSent\": 4505,\n  \"totalRead\": 5529,\n  \"totalFallback\": 30,\n  \"rcsSent\": 4604,\n  \"rcsPending\": 1062,\n  \"rcsSuccess\": 6929,\n  \"rcsFailed\": 6554,\n  \"rcsRead\": 1313,\n  \"smsSent\": 8277,\n  \"smsPending\": 8529,\n  \"smsSuccess\": 5336,\n  \"smsFailed\": 5992,\n  \"smsFallback\": 9870,\n  \"destinationType\": 1730,\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"isUpdatable\": true,\n  \"maxUpdateTime\": \"string\",\n  \"readyToSend\": true,\n  \"numOfDistinctContact\": 4008\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "25460bee-620c-5814-a79e-930437907898",
                      "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": "6177",
                              "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": "de8f8411-2ac6-5a1b-a574-7cf65cb45efb",
                      "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": "6177",
                              "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": "1d583d09-e771-5bcb-a773-db8effde81a3",
                  "name": "Delete an RCS campaign",
                  "request": {
                    "name": "Delete an RCS 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 RCS. See it for [SMS](/api-channel-sms/delete-campaign) or [WhatsApp](/api-channel-whatsapp/delete-campaign).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "6177",
                          "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": "afd90947-0704-5a96-a19d-70bca60fd0e1",
                      "name": "Campaign deleted. No response body.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "6177",
                              "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": "afd26751-6747-531e-aa3c-aff6f016f55d",
                      "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": "6177",
                              "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": "37c9fbb8-bf04-549d-a9af-d9e658cc9f52",
                      "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": "6177",
                              "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": "431bed0e-7d59-519d-aedc-96b2ed85e543",
                      "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": "6177",
                              "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": "c629e747-fe92-5db1-af88-66781bd51ac9",
              "name": "Single RCS sends",
              "item": [
                {
                  "id": "4daf8c3b-7584-59c0-adc3-fd55b8bb42d6",
                  "name": "Send RCS message",
                  "request": {
                    "name": "Send RCS message",
                    "description": {
                      "content": "Sends an RCS message. The content is one of the following, **mutually exclusive**: one of the two is required.\n\n- **Inline body** (`body`): type TEXT, CARD or CAROUSEL.\n- **Template** (`templateId`).\n\nIf the message cannot be delivered via RCS, the system can fall back to WhatsApp and/or SMS. The fallbacks belong to the RCS content:\n\n- **With an inline body**: set `fallbackSms` (RCS → SMS) and optionally `fallbackWhatsApp` (RCS → WhatsApp → SMS) inside `body.body`.\n- **With `templateId`**: the SMS fallback saved in the template applies. A template does not keep a WhatsApp fallback.\n- **`fallbackWhatsApp` needs `fallbackSms`**: if the first is present, the second is mandatory.\n- **Mixed-channel accounts only**: the WhatsApp fallback applies only if your account supports mixed-channel sending; otherwise it is ignored.\n- **`maxSmsParts` is ignored**, if sent: the fallback SMS is split into as many parts as its text needs.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "rcs",
                        "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  \"agentId\": 10,\n  \"body\": {\n    \"type\": \"TEXT\",\n    \"body\": {\n      \"text\": \"Ciao! Il tuo ordine è stato confermato.\"\n    }\n  },\n  \"enableNotification\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "8c942b88-ed7a-5126-a49f-bf0e53b6f586",
                      "name": "Request accepted. Check `results.rcs.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 `whatsapp` and/or `sms`: those messages are prepared now and sent only if the previous channel fails. In that case `results.rcs.accepted` is 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",
                            "rcs",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393401234567\",\n  \"agentId\": 10,\n  \"body\": {\n    \"type\": \"TEXT\",\n    \"body\": {\n      \"text\": \"Ciao! Il tuo ordine è stato confermato.\"\n    }\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    \"rcs\": {\n      \"accepted\": true\n    }\n  }\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "7c537c6a-8bd2-5066-a24e-34bb57df6f57",
                      "name": "Invalid request. Fields that fail validation are listed in `data`, an object that maps the path of each invalid field (such as `sendRcsMessage.request.destination`) to its messages; a body that cannot be read gives `data: \"Invalid request body\"`. An agent, template or WhatsApp number that your account cannot use gives `message` and `code` instead.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393401234567\",\n  \"agentId\": 10,\n  \"body\": {\n    \"type\": \"TEXT\",\n    \"body\": {\n      \"text\": \"Ciao! Il tuo ordine è stato confermato.\"\n    }\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    \"sendRcsMessage.request.destination\": [\n      \"'destination' can't be blank\"\n    ]\n  }\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "89bd62b7-b8c9-5eac-a9de-0d64c7a0bf5a",
                      "name": "Missing or invalid credentials. The body is empty.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393401234567\",\n  \"agentId\": 10,\n  \"body\": {\n    \"type\": \"TEXT\",\n    \"body\": {\n      \"text\": \"Ciao! Il tuo ordine è stato confermato.\"\n    }\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": "6c3a83c1-8178-579b-a691-5330425e4f84",
                      "name": "The platform cannot find your account: the message is not stored. Contact support",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393401234567\",\n  \"agentId\": 10,\n  \"body\": {\n    \"type\": \"TEXT\",\n    \"body\": {\n      \"text\": \"Ciao! Il tuo ordine è stato confermato.\"\n    }\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": "b51cd0dc-9cf8-5b4a-a780-6140b9613808",
                      "name": "Unexpected error while handling the message",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393401234567\",\n  \"agentId\": 10,\n  \"body\": {\n    \"type\": \"TEXT\",\n    \"body\": {\n      \"text\": \"Ciao! Il tuo ordine è stato confermato.\"\n    }\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": "aec2ff8d-0eb4-515c-a13c-555d76346dda",
                      "name": "The calling IP address is outside the IP ranges configured for your account",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "message-server",
                            "rcs",
                            "send"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"destination\": \"+393401234567\",\n  \"agentId\": 10,\n  \"body\": {\n    \"type\": \"TEXT\",\n    \"body\": {\n      \"text\": \"Ciao! Il tuo ordine è stato confermato.\"\n    }\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": "02740494-c9d5-5748-a2b9-288d02cc0a6a",
                  "name": "Get RCS message status",
                  "request": {
                    "name": "Get RCS message status",
                    "description": {
                      "content": "Returns the current delivery status of one RCS message, looked up by its `messageId`.\n\n- **Which ID to use**: the `messageId` returned by the RCS send endpoint when you sent the message. Store it at send time.\n- **Reading is not a status**: when the recipient reads the message, `deliveryStatus` stays `DELIVERED` and `readDate` is filled in. For a message sent with notifications enabled, the delivery webhook also sends a `READ` event.\n- **No in-flight status**: a message still waiting for its first receipt reads `UNKNOWN`.\n- **SMS fallback**: RCS needs carrier support and an RCS-capable device with RCS enabled. If delivery matters, check the status after a reasonable timeout and send an SMS when it is `ERROR` or `EXPIRED`.\n- **Same data as the generic endpoint**: `GET /messages/status/{customerMessageId}` with `channel=RCS` 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>RCS delivery statuses</summary>\n\n| `deliveryStatus` | Meaning |\n|---|---|\n| `DELIVERED` | The RCS platform confirmed that the message reached the recipient's device. |\n| `ERROR` | The message could not be delivered. Common causes: the carrier rejected it, the agent is not properly registered, or the destination number is invalid. |\n| `DISABLED` | The recipient has RCS switched off. |\n| `UNSUPPORTED` | The recipient's device or number does not support RCS. |\n| `EXPIRED` | Not delivered within its time-to-live window and discarded by the carrier, for example because the device stayed offline for a long time. |\n| `UNKNOWN` | No status information: the carrier returned no delivery receipt, or the message is still being processed. |\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",
                        "rcs",
                        "messages",
                        ":messageId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "string",
                          "key": "messageId",
                          "description": "(Required) The `messageId` returned by the RCS 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": "7d8d17ad-14f9-5b44-a9ba-c2fa49bee010",
                      "name": "The delivery status of the message.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "rcs",
                            "messages",
                            ":messageId"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "string",
                              "key": "messageId",
                              "description": "(Required) The `messageId` returned by the RCS 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-rcs-001\",\n  \"channel\": \"RCS\",\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": "304a3482-01d1-5116-a257-8f67595cfbf7",
                      "name": "The API key is missing, invalid, or lacks the `RCS` operation.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "rcs",
                            "messages",
                            ":messageId"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "string",
                              "key": "messageId",
                              "description": "(Required) The `messageId` returned by the RCS 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": "b2a8d3f4-aba4-5cea-a740-6f23ce14a586",
                      "name": "No RCS message with this `messageId` in your account, or the message has not been dispatched yet.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "rcs",
                            "messages",
                            ":messageId"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "string",
                              "key": "messageId",
                              "description": "(Required) The `messageId` returned by the RCS 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": "336f9a10-aea5-59ff-aa63-2dfb1bc93755",
                  "name": "Get the delivery status of an RCS message",
                  "request": {
                    "name": "Get the delivery status of an RCS 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=RCS`. With any other channel an RCS 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| `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 RCS. See it for [SMS](/api-channel-sms/get-single-status) or [WhatsApp](/api-channel-whatsapp/get-single-status).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "messages",
                        "status",
                        ":customerMessageId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "disabled": false,
                          "key": "channel",
                          "value": "RCS",
                          "description": "(Required) `RCS` (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": "b4a4ec39-448e-5def-afa7-24de4a4a0b0c",
                      "name": "The delivery status of the message.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "messages",
                            "status",
                            ":customerMessageId"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "channel",
                              "value": "RCS"
                            }
                          ],
                          "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-rcs-001\",\n  \"channel\": \"RCS\",\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": "25267a30-5d91-54d0-a360-d8db122b31a0",
                      "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": "RCS"
                            }
                          ],
                          "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": "e570394f-5ac1-5be9-a37f-4a11a6264415",
                      "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": "RCS"
                            }
                          ],
                          "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": "8e72be6c-c666-5e0c-a0b9-67eac0c65194",
                      "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": "RCS"
                            }
                          ],
                          "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": "a67d8115-2412-5355-a013-c9abc1c1743f",
                      "name": "Unexpected server error. Retry after a short delay.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "messages",
                            "status",
                            ":customerMessageId"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "channel",
                              "value": "RCS"
                            }
                          ],
                          "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": "9fbe5a83-b548-5a19-a426-ac4be4402d5e",
                  "name": "Get the delivery status of several RCS messages",
                  "request": {
                    "name": "Get the delivery status of several RCS 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=RCS`. All the IDs must be of RCS 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 RCS. See it for [SMS](/api-channel-sms/get-batch-status) or [WhatsApp](/api-channel-whatsapp/get-batch-status).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "messages",
                        "status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "disabled": false,
                          "key": "channel",
                          "value": "RCS",
                          "description": "(Required) `RCS` (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": "cc4a0d2e-ab6f-5742-a10b-cb54a7bd8c46",
                      "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": "RCS"
                            },
                            {
                              "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\": \"RCS\",\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\": \"RCS\",\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": "85c0520f-bbb7-595f-ad0f-9d5c0b3d300f",
                      "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": "RCS"
                            },
                            {
                              "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": "487f36ea-6c60-56a4-a00d-d71c55fa383d",
                      "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": "RCS"
                            },
                            {
                              "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": "8809adcf-2010-5913-a296-ed6a375f2231",
                      "name": "Unexpected server error. Retry after a short delay.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "messages",
                            "status"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "channel",
                              "value": "RCS"
                            },
                            {
                              "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": "6e044748-7111-5ba4-ae9d-7c974baab1c6",
                  "name": "List the RCS send history",
                  "request": {
                    "name": "List the RCS send history",
                    "description": {
                      "content": "Returns the messages sent through the API on RCS in a date range, one page at a time.\n\n- **Required**: `channel=RCS` 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 RCS. See it for [SMS](/api-channel-sms/get-history) or [WhatsApp](/api-channel-whatsapp/get-history).",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "messages",
                        "history"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "disabled": false,
                          "key": "channel",
                          "value": "RCS",
                          "description": "(Required) `RCS` (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": "UNKNOWN",
                          "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": "0fa82f6a-8fa6-5b3f-ad29-fa90ba102fcc",
                      "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": "RCS"
                            },
                            {
                              "key": "from",
                              "value": "2025-01-15T00:00:00Z"
                            },
                            {
                              "key": "limit",
                              "value": "20"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "status",
                              "value": "UNKNOWN"
                            },
                            {
                              "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-rcs-001\",\n    \"channel\": \"RCS\",\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": "5067682c-67df-59fb-a0f1-49b3ccb739e2",
                      "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": "RCS"
                            },
                            {
                              "key": "from",
                              "value": "2025-01-15T00:00:00Z"
                            },
                            {
                              "key": "limit",
                              "value": "20"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "status",
                              "value": "UNKNOWN"
                            },
                            {
                              "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": "174e2fea-1a2b-53e4-a313-97a63deacb46",
                      "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": "RCS"
                            },
                            {
                              "key": "from",
                              "value": "2025-01-15T00:00:00Z"
                            },
                            {
                              "key": "limit",
                              "value": "20"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "status",
                              "value": "UNKNOWN"
                            },
                            {
                              "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": "609775d0-9065-5e89-ac7c-887c7f25f239",
                      "name": "Unexpected server error. Retry after a short delay.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "messages",
                            "history"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "channel",
                              "value": "RCS"
                            },
                            {
                              "key": "from",
                              "value": "2025-01-15T00:00:00Z"
                            },
                            {
                              "key": "limit",
                              "value": "20"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "status",
                              "value": "UNKNOWN"
                            },
                            {
                              "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
                  }
                }
              ]
            }
          ]
        },
        {
          "id": "42022eab-c216-5620-a1f2-435a374ce4f6",
          "name": "WhatsApp",
          "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
                  }
                }
              ]
            }
          ]
        },
        {
          "id": "6904baca-e936-554f-a6fd-5f57bfdee773",
          "name": "Email",
          "item": [
            {
              "id": "0a22aa59-2531-50c6-a1cf-b0e0131a66a7",
              "name": "Send email",
              "request": {
                "name": "Send email",
                "description": {
                  "content": "Sends an email to one recipient.\n\n- **Marketing and transactional emails**: set `type`. A marketing email needs the recipient's marketing consent and an unsubscribe link.\n- **Placeholders**: insert `{name}` in the subject or the body and fill the `placeholders` map.\n- **Tracking**: opens and clicks, at the level set in `tracking` and allowed by the recipient's consent.\n- **Scheduling**: set `scheduledDate` to send later.\n- **Dry run**: set `simulation: true` to validate the request without sending.\n- **Consents**: the request reads the recipient's consents on your contacts and records new ones there, creating the contact when needed, also in a dry run. See `consents`.\n\n> **A `202` does not mean the email was accepted.** A request that passes validation is answered `202` also when the email is rejected: check `results.email.accepted` and, if it is `false`, `results.email.reasons`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "message-server",
                    "email",
                    "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  \"type\": \"TRANSACTIONAL\",\n  \"from\": \"ordini@example.com\",\n  \"to\": \"mario.rossi@example.org\",\n  \"subject\": \"Il tuo ordine #12345 è stato spedito\",\n  \"body\": {\n    \"html\": \"<p>Ciao Mario, il tuo ordine <strong>#12345</strong> è stato spedito.</p><p><a href=\\\"https://www.example.com/ordini/12345\\\">Segui la spedizione</a></p>\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "f1df835d-7bc9-5fb8-a688-e4ba8f8637e3",
                  "name": "Request accepted. Check `results.email.accepted` to see whether the email was accepted.\n\n- **`accepted: true`** means the email was accepted for sending, not that it was delivered: email has no delivery notifications yet.\n- **`reasons`** is present only when the email is rejected.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "email",
                        "send"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"TRANSACTIONAL\",\n  \"from\": \"ordini@example.com\",\n  \"to\": \"mario.rossi@example.org\",\n  \"subject\": \"Il tuo ordine #12345 è stato spedito\",\n  \"body\": {\n    \"html\": \"<p>Ciao Mario, il tuo ordine <strong>#12345</strong> è stato spedito.</p><p><a href=\\\"https://www.example.com/ordini/12345\\\">Segui la spedizione</a></p>\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Accepted",
                  "code": 202,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"messageId\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n  \"type\": \"TRANSACTIONAL\",\n  \"simulation\": false,\n  \"results\": {\n    \"email\": {\n      \"accepted\": true,\n      \"tracking\": \"PERSONAL\"\n    }\n  }\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "5dfb9437-9edf-500d-a1c5-c9ee908c8388",
                  "name": "Invalid request. Fields that fail validation are listed in `data`, an object that maps the path of each invalid field (such as `sendEmail.request.to`) to its messages (a too long `campaignId` is reported as `sendEmail.request.groupId`); a body that cannot be read, for example a `scheduledDate` in another format or an unknown `type`, gives `data: \"Invalid request body\"`. An error found while handling the email gives `message` and `code` instead: `24` for a `from` or `replyTo` that is not a valid address, or a body with both kinds of unsubscribe marker; `34` for a `body.html` longer than 1,048,576 characters, or with more than 50 distinct links to track; `35` when `consents.marketing` is `false` on a marketing email, which records the opt-out on your contacts.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "email",
                        "send"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"TRANSACTIONAL\",\n  \"from\": \"ordini@example.com\",\n  \"to\": \"mario.rossi@example.org\",\n  \"subject\": \"Il tuo ordine #12345 è stato spedito\",\n  \"body\": {\n    \"html\": \"<p>Ciao Mario, il tuo ordine <strong>#12345</strong> è stato spedito.</p><p><a href=\\\"https://www.example.com/ordini/12345\\\">Segui la spedizione</a></p>\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"status\": \"fail\",\n  \"data\": {\n    \"sendEmail.request.body.html\": [\n      \"'body.html' can't be blank\"\n    ],\n    \"sendEmail.request.to\": [\n      \"'to' can't be blank\"\n    ]\n  }\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "485ef044-e323-5276-aa3b-055203d019b1",
                  "name": "Missing or invalid credentials. The body is empty.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "email",
                        "send"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"TRANSACTIONAL\",\n  \"from\": \"ordini@example.com\",\n  \"to\": \"mario.rossi@example.org\",\n  \"subject\": \"Il tuo ordine #12345 è stato spedito\",\n  \"body\": {\n    \"html\": \"<p>Ciao Mario, il tuo ordine <strong>#12345</strong> è stato spedito.</p><p><a href=\\\"https://www.example.com/ordini/12345\\\">Segui la spedizione</a></p>\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "text/plain"
                    }
                  ],
                  "body": "",
                  "cookie": [],
                  "_postman_previewlanguage": "text"
                },
                {
                  "id": "95df053a-1b54-5eda-aa03-a49ddc80a7c1",
                  "name": "Your account cannot send emails: `code` 36 when it is not enabled for email sending (a new account is not: contact support to enable it), `code` 102 when the platform cannot find it",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "email",
                        "send"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"TRANSACTIONAL\",\n  \"from\": \"ordini@example.com\",\n  \"to\": \"mario.rossi@example.org\",\n  \"subject\": \"Il tuo ordine #12345 è stato spedito\",\n  \"body\": {\n    \"html\": \"<p>Ciao Mario, il tuo ordine <strong>#12345</strong> è stato spedito.</p><p><a href=\\\"https://www.example.com/ordini/12345\\\">Segui la spedizione</a></p>\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"status\": \"fail\",\n  \"message\": \"Email sending not allowed\",\n  \"code\": 36\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "2184d978-c456-537e-a147-6a175fc6b3d3",
                  "name": "Unexpected error while handling the email",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "email",
                        "send"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"TRANSACTIONAL\",\n  \"from\": \"ordini@example.com\",\n  \"to\": \"mario.rossi@example.org\",\n  \"subject\": \"Il tuo ordine #12345 è stato spedito\",\n  \"body\": {\n    \"html\": \"<p>Ciao Mario, il tuo ordine <strong>#12345</strong> è stato spedito.</p><p><a href=\\\"https://www.example.com/ordini/12345\\\">Segui la spedizione</a></p>\"\n  }\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": "e7796653-3a61-534b-ad4b-3b89ab504595",
                  "name": "The calling IP address is outside the IP ranges configured for your account",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "message-server",
                        "email",
                        "send"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"TRANSACTIONAL\",\n  \"from\": \"ordini@example.com\",\n  \"to\": \"mario.rossi@example.org\",\n  \"subject\": \"Il tuo ordine #12345 è stato spedito\",\n  \"body\": {\n    \"html\": \"<p>Ciao Mario, il tuo ordine <strong>#12345</strong> è stato spedito.</p><p><a href=\\\"https://www.example.com/ordini/12345\\\">Segui la spedizione</a></p>\"\n  }\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": "64a29d1b-e413-570a-a0be-5b94119d3a70",
              "name": "Campaigns",
              "item": [
                {
                  "id": "2d0ac7a8-8bd3-5506-a7fa-61e43d8c778e",
                  "name": "List the email senders",
                  "request": {
                    "name": "List the email senders",
                    "description": {
                      "content": "Lists the senders your account can send email campaigns from.\n\n- **One entry per sender**: a verified domain appears once per From Name, a single verified address once.\n- **Use a `VERIFIED` sender**: pass its `type`, `id` and, for a domain, `fromNameId` as `emailSenderType`, `emailSenderId` and `emailSenderFromNameId` of the campaign.\n- **Adding senders**: senders are added and verified in the Qlara platform, under **Email Marketing › Settings › Addresses**, not through the API.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        "email",
                        "senders"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "e7ee7682-27f4-5f8c-aa4d-73a41abe592a",
                      "name": "The senders of your account, in any verification status.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            "senders"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "GET",
                        "body": {}
                      },
                      "status": "OK",
                      "code": 200,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "[\n  {\n    \"type\": \"DOMAIN\",\n    \"id\": 12,\n    \"fromNameId\": 31,\n    \"from\": \"news@example.com\",\n    \"displayName\": \"Example News\",\n    \"isDefault\": true,\n    \"status\": \"VERIFIED\"\n  },\n  {\n    \"type\": \"DOMAIN\",\n    \"id\": 12,\n    \"fromNameId\": 31,\n    \"from\": \"news@example.com\",\n    \"displayName\": \"Example News\",\n    \"isDefault\": true,\n    \"status\": \"VERIFIED\"\n  }\n]",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "e27ca8bd-6227-5512-a112-9fa9812992b7",
                      "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor `EMAIL`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            "senders"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "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": "244bd5cd-5803-5e6d-a30a-760653bf4ec6",
                  "name": "Create an email campaign",
                  "request": {
                    "name": "Create an email campaign",
                    "description": {
                      "content": "Creates an email campaign as a draft (status `CREATED`). Nothing is sent until you confirm it with `PUT /campaigns/email/{id}/confirm`.\n\n- **Sender**: a `VERIFIED` sender of your account, from `GET /campaigns/email/senders`. For a domain without `emailSenderFromNameId`, its default From Name is used.\n- **Recipients**: `destinationType` 0 sends to the contacts of your `contactListIds`, 1 to the addresses in `destinations`.\n- **Content**: a `subject` and exactly one of `bodyHtml` and `templateId`. Placeholders such as `{firstName}` are replaced with each contact's fields.\n- **Schedule**: an optional `scheduledDate`; without it the campaign is sent as soon as it is confirmed and its checks pass.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        "email"
                      ],
                      "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\": \"November newsletter\",\n  \"emailSenderId\": 12,\n  \"emailSenderType\": \"DOMAIN\",\n  \"emailSenderFromNameId\": 31,\n  \"destinationType\": 0,\n  \"contactListIds\": [\n    101\n  ],\n  \"subject\": \"What's new in November\",\n  \"bodyHtml\": \"<html><body><p>Hi {firstName}, here is our news.</p><a id=\\\"unsubscribe\\\" href=\\\"#\\\">Unsubscribe</a></body></html>\",\n  \"scheduledDate\": \"2027-04-01 09:00:00.000+0200\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "928be3cc-3cdb-5ec9-ad8a-047735427dea",
                      "name": "The created campaign, in status `CREATED`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"name\": \"November newsletter\",\n  \"emailSenderId\": 12,\n  \"emailSenderType\": \"DOMAIN\",\n  \"destinationType\": 0,\n  \"subject\": \"What's new in November\",\n  \"description\": \"string\",\n  \"emailSenderFromNameId\": 31,\n  \"contactListIds\": [\n    101\n  ],\n  \"destinations\": [\n    \"mario.rossi@example.com\"\n  ],\n  \"replyTo\": \"support@example.com\",\n  \"templateId\": 4977,\n  \"templateLocale\": \"it\",\n  \"bodyHtml\": \"string\",\n  \"bodyText\": \"string\",\n  \"placeholderFields\": {\n    \"promoCode\": \"NOV25\"\n  },\n  \"attachments\": [\n    {\n      \"mediaKey\": \"r\"\n    },\n    {\n      \"mediaKey\": \"9\"\n    }\n  ],\n  \"scheduledDate\": \"2027-04-01 09:00:00.000+0200\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Created",
                      "code": 201,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"id\": 3120,\n  \"companyId\": 6398,\n  \"userId\": 3460,\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"emailSenderId\": 3603,\n  \"emailSenderType\": \"string\",\n  \"emailSenderFromNameId\": 4434,\n  \"fromAddress\": \"string\",\n  \"friendlyFrom\": \"string\",\n  \"destinationType\": 4482,\n  \"contactListIds\": [\n    8615,\n    3960\n  ],\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"replyTo\": \"string\",\n  \"subject\": \"string\",\n  \"templateId\": 6114,\n  \"bodyHtml\": \"string\",\n  \"bodyText\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {},\n    \"key_1\": {}\n  },\n  \"attachments\": [\n    {\n      \"key_0\": {},\n      \"key_1\": {},\n      \"key_2\": {}\n    },\n    {\n      \"key_0\": {},\n      \"key_1\": {}\n    }\n  ],\n  \"status\": \"CREATED\",\n  \"contentAnalysis\": [\n    {\n      \"key_0\": {},\n      \"key_1\": {}\n    },\n    {\n      \"key_0\": {},\n      \"key_1\": {},\n      \"key_2\": {}\n    }\n  ],\n  \"totalDestinations\": 6930,\n  \"totalPrice\": 8646,\n  \"totalSent\": 4012,\n  \"totalSuccess\": 7315,\n  \"totalFailed\": 6240,\n  \"totalRead\": 2782,\n  \"totalReadUnique\": 2243,\n  \"totalReadAnonymous\": 2429,\n  \"totalClick\": 5438,\n  \"totalClickUnique\": 9063,\n  \"scheduledDate\": \"string\",\n  \"startDate\": \"string\",\n  \"endDate\": \"string\",\n  \"creationDate\": \"string\",\n  \"lastUpdateDate\": \"string\"\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "b223316d-cf6d-5c5b-a416-a7c29d577ce5",
                      "name": "The body is not valid: for example both or neither of `bodyHtml` and `templateId`, or a `destinationType` without its recipients.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"name\": \"November newsletter\",\n  \"emailSenderId\": 12,\n  \"emailSenderType\": \"DOMAIN\",\n  \"destinationType\": 0,\n  \"subject\": \"What's new in November\",\n  \"description\": \"string\",\n  \"emailSenderFromNameId\": 31,\n  \"contactListIds\": [\n    101\n  ],\n  \"destinations\": [\n    \"mario.rossi@example.com\"\n  ],\n  \"replyTo\": \"support@example.com\",\n  \"templateId\": 4977,\n  \"templateLocale\": \"it\",\n  \"bodyHtml\": \"string\",\n  \"bodyText\": \"string\",\n  \"placeholderFields\": {\n    \"promoCode\": \"NOV25\"\n  },\n  \"attachments\": [\n    {\n      \"mediaKey\": \"r\"\n    },\n    {\n      \"mediaKey\": \"9\"\n    }\n  ],\n  \"scheduledDate\": \"2027-04-01 09:00:00.000+0200\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "23464f71-ac16-52a1-ae92-b3a349d14528",
                      "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor `EMAIL`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"name\": \"November newsletter\",\n  \"emailSenderId\": 12,\n  \"emailSenderType\": \"DOMAIN\",\n  \"destinationType\": 0,\n  \"subject\": \"What's new in November\",\n  \"description\": \"string\",\n  \"emailSenderFromNameId\": 31,\n  \"contactListIds\": [\n    101\n  ],\n  \"destinations\": [\n    \"mario.rossi@example.com\"\n  ],\n  \"replyTo\": \"support@example.com\",\n  \"templateId\": 4977,\n  \"templateLocale\": \"it\",\n  \"bodyHtml\": \"string\",\n  \"bodyText\": \"string\",\n  \"placeholderFields\": {\n    \"promoCode\": \"NOV25\"\n  },\n  \"attachments\": [\n    {\n      \"mediaKey\": \"r\"\n    },\n    {\n      \"mediaKey\": \"9\"\n    }\n  ],\n  \"scheduledDate\": \"2027-04-01 09:00:00.000+0200\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "079fca5f-7b7f-5a54-ae2f-04c7de1e2cbb",
                      "name": "The sender is not a `VERIFIED` sender of your account, or a contact list, template or attachment is not found in your account.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": []
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "POST",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"name\": \"November newsletter\",\n  \"emailSenderId\": 12,\n  \"emailSenderType\": \"DOMAIN\",\n  \"destinationType\": 0,\n  \"subject\": \"What's new in November\",\n  \"description\": \"string\",\n  \"emailSenderFromNameId\": 31,\n  \"contactListIds\": [\n    101\n  ],\n  \"destinations\": [\n    \"mario.rossi@example.com\"\n  ],\n  \"replyTo\": \"support@example.com\",\n  \"templateId\": 4977,\n  \"templateLocale\": \"it\",\n  \"bodyHtml\": \"string\",\n  \"bodyText\": \"string\",\n  \"placeholderFields\": {\n    \"promoCode\": \"NOV25\"\n  },\n  \"attachments\": [\n    {\n      \"mediaKey\": \"r\"\n    },\n    {\n      \"mediaKey\": \"9\"\n    }\n  ],\n  \"scheduledDate\": \"2027-04-01 09:00:00.000+0200\"\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": "b487cdcf-15d8-52f5-a730-ca5ad1886921",
                  "name": "Update an email campaign",
                  "request": {
                    "name": "Update an email campaign",
                    "description": {
                      "content": "Changes the fields you send; the others keep their value.\n\n- **When**: while the campaign is a draft (`CREATED`), after its content checks failed (`REJECTED`, `QUARANTINE`), or once confirmed (`PRE_BILLED`) while its `scheduledDate` is still outside the platform's edit window.\n- **Back to draft**: every update sets the status to `CREATED`. A confirmed campaign gets its reserved credit back and must be confirmed again.\n- **Sender and lists** are checked as on creation.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        "email",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) Email campaign ID."
                        }
                      ]
                    },
                    "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  \"subject\": \"What's new in November (updated)\",\n  \"scheduledDate\": \"2027-04-02 09:00:00.000+0200\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "10833a4d-a152-5eb1-a4dc-fac4c79fb015",
                      "name": "The updated campaign, back in status `CREATED`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"subject\": \"What's new in November (updated)\",\n  \"scheduledDate\": \"2027-04-02 09:00:00.000+0200\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"id\": 3120,\n  \"companyId\": 6398,\n  \"userId\": 3460,\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"emailSenderId\": 3603,\n  \"emailSenderType\": \"string\",\n  \"emailSenderFromNameId\": 4434,\n  \"fromAddress\": \"string\",\n  \"friendlyFrom\": \"string\",\n  \"destinationType\": 4482,\n  \"contactListIds\": [\n    8615,\n    3960\n  ],\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"replyTo\": \"string\",\n  \"subject\": \"string\",\n  \"templateId\": 6114,\n  \"bodyHtml\": \"string\",\n  \"bodyText\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {},\n    \"key_1\": {}\n  },\n  \"attachments\": [\n    {\n      \"key_0\": {},\n      \"key_1\": {},\n      \"key_2\": {}\n    },\n    {\n      \"key_0\": {},\n      \"key_1\": {}\n    }\n  ],\n  \"status\": \"CREATED\",\n  \"contentAnalysis\": [\n    {\n      \"key_0\": {},\n      \"key_1\": {}\n    },\n    {\n      \"key_0\": {},\n      \"key_1\": {},\n      \"key_2\": {}\n    }\n  ],\n  \"totalDestinations\": 6930,\n  \"totalPrice\": 8646,\n  \"totalSent\": 4012,\n  \"totalSuccess\": 7315,\n  \"totalFailed\": 6240,\n  \"totalRead\": 2782,\n  \"totalReadUnique\": 2243,\n  \"totalReadAnonymous\": 2429,\n  \"totalClick\": 5438,\n  \"totalClickUnique\": 9063,\n  \"scheduledDate\": \"string\",\n  \"startDate\": \"string\",\n  \"endDate\": \"string\",\n  \"creationDate\": \"string\",\n  \"lastUpdateDate\": \"string\"\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "93506e9e-e135-513f-a048-df4607fc099c",
                      "name": "The body is not valid, the campaign's status can't be changed, or its `scheduledDate` is inside the edit window.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"subject\": \"What's new in November (updated)\",\n  \"scheduledDate\": \"2027-04-02 09:00:00.000+0200\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "b88bb580-cdb3-522a-ac8a-ed0c1d4f17e9",
                      "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor `EMAIL`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"subject\": \"What's new in November (updated)\",\n  \"scheduledDate\": \"2027-04-02 09:00:00.000+0200\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "aa92f96c-921c-517d-ac92-eb7e67fe157c",
                      "name": "The campaign, the sender, a contact list, the template or an attachment is not found in your account.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"subject\": \"What's new in November (updated)\",\n  \"scheduledDate\": \"2027-04-02 09:00:00.000+0200\"\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": "efc1f8e3-d848-505f-a1ab-680ef5177170",
                  "name": "Get the price of an email campaign",
                  "request": {
                    "name": "Get the price of an email campaign",
                    "description": {
                      "content": "Counts the recipients the campaign has now and prices them. Nothing is reserved: confirming prices the campaign again.\n\n- **`effectiveDestinations`** are the recipients that will receive the email and are charged; `totalPrice` is their price.\n- **`exclusions`** counts the recipients left out: no address, invalid address, no marketing consent, previous hard bounce.\n- **`hasEnoughCredit`** tells whether your wallet covers the price.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        "email",
                        ":id",
                        "price"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) Email campaign ID."
                        }
                      ]
                    },
                    "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": "621cca36-90e4-5759-a4d6-e345172319de",
                      "name": "The price preview.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id",
                            "price"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "GET",
                        "body": {}
                      },
                      "status": "OK",
                      "code": 200,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"totalDestinations\": 7442,\n  \"effectiveDestinations\": 119,\n  \"totalPrice\": 7324,\n  \"availableCredit\": 8950,\n  \"hasEnoughCredit\": true,\n  \"walletKind\": \"string\",\n  \"exclusions\": {\n    \"missingEmail\": 8017,\n    \"invalidEmailFormat\": 9653,\n    \"noMarketingConsent\": 8677,\n    \"hardBounce\": 4279,\n    \"spamRisk\": 2867\n  }\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "8939b07f-73bd-51cf-acfc-a352d4b0d2c6",
                      "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor `EMAIL`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id",
                            "price"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "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": "2f14fa3b-a47f-5956-a9b1-fcd1b28e052e",
                      "name": "No email campaign with this ID in your account, or one of its contact lists no longer exists.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id",
                            "price"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "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": "6d81064e-45ad-598d-a360-d06e1d96ee5a",
                  "name": "Confirm an email campaign",
                  "request": {
                    "name": "Confirm an email campaign",
                    "description": {
                      "content": "Confirms a draft campaign (status `CREATED`): the recipients are counted, the price is reserved on your wallet and the content checks start (status `VALIDATING`).\n\n- **Checks passed**: the campaign moves to `PRE_BILLED` and is sent at its `scheduledDate`, or at once without one. A new sender may first wait for an operator review (`HUMAN_REVIEW`).\n- **Checks failed**: the campaign moves to `REJECTED` or `QUARANTINE`, the credit is released, and you can fix it and confirm it again.\n- **Unsubscribe link**: every email carries one. Pass the `id` of your own link as `unsubscribeLinkId`, otherwise a standard link is added at the end of the email.\n- **Follow the status** with `GET /campaigns/email/{id}`.\n\n> **Preview the price first** with `GET /campaigns/email/{id}/price`: confirming without enough credit answers `402`.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        "email",
                        ":id",
                        "confirm"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) Email campaign ID."
                        }
                      ]
                    },
                    "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  \"unsubscribeLinkId\": \"unsubscribe\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": [
                    {
                      "id": "7dbffbd3-0a0a-5955-a914-0d91b43d4b29",
                      "name": "Campaign confirmed: the price is reserved and the content checks have started. The body is `{\"status\": \"success\", \"data\": null}`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id",
                            "confirm"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"unsubscribeLinkId\": \"unsubscribe\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Accepted",
                      "code": 202,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "35a1ddee-64e3-5d3b-a112-ebefdb79e9dd",
                      "name": "The campaign is not a draft (status `CREATED`).",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id",
                            "confirm"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"unsubscribeLinkId\": \"unsubscribe\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "4f95bd03-6d85-5187-abd9-d096a879197e",
                      "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor `EMAIL`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id",
                            "confirm"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"unsubscribeLinkId\": \"unsubscribe\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "541c8250-5b47-5682-aadb-d0aff352837c",
                      "name": "Your wallet does not cover the price of the campaign.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id",
                            "confirm"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"unsubscribeLinkId\": \"unsubscribe\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        }
                      },
                      "status": "Payment Required",
                      "code": 402,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "e63bd535-5de7-5298-a207-7b86495d2031",
                      "name": "No email campaign with this ID in your account.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id",
                            "confirm"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "PUT",
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"unsubscribeLinkId\": \"unsubscribe\"\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": "21f94ec2-4b20-5700-a63e-402834eb16bf",
                  "name": "Get an email campaign",
                  "request": {
                    "name": "Get an email campaign",
                    "description": {
                      "content": "Returns an email campaign of your account, with its status, content, recipients, price and sending counters.\n\n- **`status`** tells where the campaign is in its lifecycle, from `CREATED` (draft) to `ENDED`.\n- **`contentAnalysis`** holds the results of the content checks, including whether the body has an unsubscribe link.\n- **Counters** (`totalSent`, `totalSuccess`, `totalReadUnique`, `totalClickUnique`, …) grow while the campaign is sent.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        "email",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) Email campaign ID."
                        }
                      ]
                    },
                    "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": "e0d285d9-11b7-54f5-a1d7-481abb438557",
                      "name": "The email campaign.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "GET",
                        "body": {}
                      },
                      "status": "OK",
                      "code": 200,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"id\": 3120,\n  \"companyId\": 6398,\n  \"userId\": 3460,\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"emailSenderId\": 3603,\n  \"emailSenderType\": \"string\",\n  \"emailSenderFromNameId\": 4434,\n  \"fromAddress\": \"string\",\n  \"friendlyFrom\": \"string\",\n  \"destinationType\": 4482,\n  \"contactListIds\": [\n    8615,\n    3960\n  ],\n  \"destinations\": [\n    \"string\",\n    \"string\"\n  ],\n  \"replyTo\": \"string\",\n  \"subject\": \"string\",\n  \"templateId\": 6114,\n  \"bodyHtml\": \"string\",\n  \"bodyText\": \"string\",\n  \"placeholderFields\": {\n    \"key_0\": {},\n    \"key_1\": {}\n  },\n  \"attachments\": [\n    {\n      \"key_0\": {},\n      \"key_1\": {},\n      \"key_2\": {}\n    },\n    {\n      \"key_0\": {},\n      \"key_1\": {}\n    }\n  ],\n  \"status\": \"CREATED\",\n  \"contentAnalysis\": [\n    {\n      \"key_0\": {},\n      \"key_1\": {}\n    },\n    {\n      \"key_0\": {},\n      \"key_1\": {},\n      \"key_2\": {}\n    }\n  ],\n  \"totalDestinations\": 6930,\n  \"totalPrice\": 8646,\n  \"totalSent\": 4012,\n  \"totalSuccess\": 7315,\n  \"totalFailed\": 6240,\n  \"totalRead\": 2782,\n  \"totalReadUnique\": 2243,\n  \"totalReadAnonymous\": 2429,\n  \"totalClick\": 5438,\n  \"totalClickUnique\": 9063,\n  \"scheduledDate\": \"string\",\n  \"startDate\": \"string\",\n  \"endDate\": \"string\",\n  \"creationDate\": \"string\",\n  \"lastUpdateDate\": \"string\"\n}",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "28c9bd57-2657-55c9-ac0c-653548c80f2b",
                      "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor `EMAIL`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "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": "c466ec73-f197-5623-a020-ed4c1290f320",
                      "name": "No email campaign with this ID in your account.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "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": "fea69eb5-5657-5059-a97d-0add022a070c",
                  "name": "List email campaigns",
                  "request": {
                    "name": "List email campaigns",
                    "description": {
                      "content": "Lists the email campaigns of your account, one page at a time, newest first by default.\n\n- **Filters**: `status` keeps the given statuses; `search` looks for text in the name, description or subject and then ignores `status`.\n- **Order**: `sortBy` and `sortOrder`, by default `creationDate` descending.\n- **Pages**: `page` starts at 0, `limit` goes from 1 to 100.\n- **Deleted campaigns** are left out. With `search` they are removed after the page is read: a page can then hold fewer campaigns than `limit`, while `totalCount` and `totalPages` still count them.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        "email"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "disabled": false,
                          "key": "limit",
                          "value": "10",
                          "description": "Campaigns per page, from 1 to 100, default 10."
                        },
                        {
                          "disabled": false,
                          "key": "page",
                          "value": "0",
                          "description": "Zero-based page number, default 0."
                        },
                        {
                          "disabled": false,
                          "key": "search",
                          "value": "string",
                          "description": "Text to look for, ignoring case, in the name, description or subject. When set, `status` is ignored."
                        },
                        {
                          "disabled": false,
                          "key": "sortBy",
                          "value": "creationDate",
                          "description": "Field to sort by: `creationDate` (default), `id`, `name`, `subject`, `status`, `scheduledDate`, `startDate`, `endDate`, `lastUpdateDate`, `effectiveDate` or a counter."
                        },
                        {
                          "disabled": false,
                          "key": "sortOrder",
                          "value": "desc",
                          "description": "`asc` or `desc` (default)."
                        },
                        {
                          "disabled": false,
                          "key": "status",
                          "value": "string",
                          "description": "Statuses to keep, comma-separated, e.g. `CREATED,PRE_BILLED`."
                        }
                      ],
                      "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": "eb08d7b1-8f3c-5bff-ae94-aa617eb5fece",
                      "name": "One page of email campaigns.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "limit",
                              "value": "10"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "search",
                              "value": "string"
                            },
                            {
                              "key": "sortBy",
                              "value": "creationDate"
                            },
                            {
                              "key": "sortOrder",
                              "value": "desc"
                            },
                            {
                              "key": "status",
                              "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": "48056373-e2d2-57fc-aabe-868ab8cac46a",
                      "name": "A `status`, `sortBy`, `sortOrder`, `page` or `limit` that is not valid.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "limit",
                              "value": "10"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "search",
                              "value": "string"
                            },
                            {
                              "key": "sortBy",
                              "value": "creationDate"
                            },
                            {
                              "key": "sortOrder",
                              "value": "desc"
                            },
                            {
                              "key": "status",
                              "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": "8c89f292-d29d-5f8f-aaf5-c0fa76828d7e",
                      "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor `EMAIL`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [
                            {
                              "key": "limit",
                              "value": "10"
                            },
                            {
                              "key": "page",
                              "value": "0"
                            },
                            {
                              "key": "search",
                              "value": "string"
                            },
                            {
                              "key": "sortBy",
                              "value": "creationDate"
                            },
                            {
                              "key": "sortOrder",
                              "value": "desc"
                            },
                            {
                              "key": "status",
                              "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": "5bccb290-ee43-55de-a5bd-a50ca67d242b",
                  "name": "Delete an email campaign",
                  "request": {
                    "name": "Delete an email campaign",
                    "description": {
                      "content": "Deletes an email campaign that has not started. This cannot be undone.\n\n- **Not yet confirmed**, or with its checks running or failed: it can always be deleted.\n- **Confirmed** (`PRE_BILLED` or `HUMAN_REVIEW`): only while its `scheduledDate` is still outside the platform's edit window. Deleting it releases the reserved credit.\n- **From `READY` onwards** the campaign is being prepared or sent and can no longer be deleted.",
                      "type": "text/plain"
                    },
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "campaigns",
                        "email",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) Email campaign ID."
                        }
                      ]
                    },
                    "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": "b994677a-fa23-5fc9-a55b-4c68eeaf3aa0",
                      "name": "Campaign deleted. The body is `{\"status\": \"success\", \"data\": null}`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "method": "DELETE",
                        "body": {}
                      },
                      "status": "OK",
                      "code": 200,
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "\"\"",
                      "cookie": [],
                      "_postman_previewlanguage": "json"
                    },
                    {
                      "id": "5afd4bc7-eaf1-5ad1-a4f8-f029325ad3e4",
                      "name": "The campaign is `READY` or later, or its `scheduledDate` is inside the edit window.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "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": "a4537d00-c0ea-5a02-ae93-ad940216f217",
                      "name": "The API key is missing or invalid, or holds neither `CAMPAIGNS` nor `EMAIL`.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "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": "09ec8f39-c3bc-5bb1-a8aa-4baed53c41db",
                      "name": "No email campaign with this ID in your account.",
                      "originalRequest": {
                        "url": {
                          "path": [
                            "api",
                            "partner-gateway",
                            "campaigns",
                            "email",
                            ":id"
                          ],
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "query": [],
                          "variable": [
                            {
                              "disabled": false,
                              "type": "any",
                              "value": "5145",
                              "key": "id",
                              "description": "(Required) Email campaign ID."
                            }
                          ]
                        },
                        "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": "cd6c5d2f-59f7-5186-a5dc-760f44f619d0",
          "name": "Contacts",
          "item": [
            {
              "id": "cadb4826-bda7-5810-a91b-eb0ed8fead76",
              "name": "Create a new contact",
              "request": {
                "name": "Create a new contact",
                "description": {
                  "content": "Creates a contact in your account and returns it with its generated ID.\n\n- **Minimum content**: the body must set at least one field other than `gender`. Give a phone number (E.164, such as `+393331234567`) or an email address if the contact must be reachable.\n- **Accepted fields**: those of the request schema, including `customField1`, `customField2`, `customField3`, `tags` and `consents`. Any other property is ignored.\n- **Invalid phone numbers and emails do not fail the call**: the contact is created (`201`), the invalid values stay in `phoneNumbers` and `emailAddresses`, and `errors` lists each of them.\n- **Main values**: `mainEmail` is the first valid address of `emailAddresses`, or the first one if none is valid. An invalid number never becomes `mobilePhoneNumber`, so `isValidMobilePhoneNumber` is false when no valid mobile number is given.\n- **Consents**: `consents` sets one status per channel. The format is on the `consents` field.\n- **Next steps**: add the contact to contact lists with `POST /contacts/list/contacts` to make it a campaign recipient. For bulk imports, use `POST /contacts/upload` or `POST /contacts/upload/vcard`.\n\n> **Consents are shared by the contacts with the same main email** (or the same mobile number, for a contact without an email). If your account already has an older one, its consents prevail, even when it has none, and replace the ones sent here shortly after the `201`. To change the consents of a person already in your account, update the existing contact with `PUT /contacts/{id}`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts"
                  ],
                  "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  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+39 02 1234567\",\n    \"+39 333 1234567\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, Milano\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "205e844f-8716-5d6a-a88a-723ed29c6aa7",
                  "name": "Contact created. `errors` lists its invalid phone numbers and email addresses, if any.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Created",
                  "code": 201,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"contacts\": [\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 8587,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": false,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        9887,\n        9127\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    },\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 2709,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": false,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        9338,\n        3147\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    }\n  ],\n  \"errors\": [\n    \"string\",\n    \"string\"\n  ]\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "97fdfcf0-65c8-5ffd-a0c7-a431df965cb7",
                  "name": "The body is missing, sets no field other than `gender`, cannot be read (for example a `birthday` in another format), or carries `consents` that cannot be stored: an unknown key, a status other than `OPTIN` or `OPTOUT`, a date in another format or without its status.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "8a8cb4be-0d46-53a1-ae70-14227b8d3723",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "c4388090-1436-525f-ad5e-1c400696da03",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "1f65bde9-bc7c-57bf-a70d-020ebe9f89ac",
              "name": "Find contacts",
              "request": {
                "name": "Find contacts",
                "description": {
                  "content": "Searches the contacts of your account, with filters, sorting and pagination.\n\n- **Which contacts are searched**: all of them, unless you send one of `listIds`, `notListIds` or `sortPriorityListId`. At most one of the three can be used per call.\n- **Filters add up**: `search`, `gender`, `isValid`, `communicationSupported`, `isTest`, `phoneNumber`, `email` and the consent filters are combined with AND.\n- **Consent filters**: `emailStatus`, `emailTrackingStatus`, `smsStatus`, `waStatus` and `rcsStatus` take comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded). A contact matches if its consent is any of them: `emailStatus=OPTIN,NONE` leaves out the email opt-outs.\n- **Exact lookups**: `phoneNumber` matches the contact's `mobilePhoneNumber` or any of its `phoneNumbers`, in E.164 format with the `+` URL-encoded as `%2B`. `email` matches `mainEmail` or any of the `emailAddresses`, ignoring case.\n- **Pagination and sorting**: `page` is 0-based, `limit` goes from 1 to 1000 (default 10), `sortBy` defaults to `fullName` and `sortOrder` is `asc` or `desc`.\n- **Not supported**: filtering by `id`, `lastContactType` or `lastCampaignType` is refused with `400`. To read one contact, use `GET /contacts/{id}`.\n\n> **With `listIds`, a contact that is in several of the lists is returned once for each of them** and counted as many times in `totalCount`. De-duplicate the results by `id`, or query one list at a time.\n\n<details>\n<summary>How listIds, notListIds and sortPriorityListId choose the contacts</summary>\n\n| Parameter | Contacts returned |\n|---|---|\n| None of them | All the contacts of your account. |\n| `listIds` | The contacts that belong to at least one of those lists. |\n| `notListIds` | The contacts that belong to none of those lists: useful to find the contacts not yet in a target list. |\n| `sortPriorityListId` | All your contacts, with the ones that belong to that list first. |\n\n</details>\n\nFor the contacts of one list, `GET /contacts/list/{listId}/contacts` is simpler.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "communicationSupported",
                      "value": "string",
                      "description": "Keeps the contacts that can be reached on this channel, for example `SMS`, `RCS` or `WHATSAPP`."
                    },
                    {
                      "disabled": false,
                      "key": "email",
                      "value": "string",
                      "description": "Exact email address, ignoring case. Matches the contact's `mainEmail` or any of its `emailAddresses`."
                    },
                    {
                      "disabled": false,
                      "key": "emailStatus",
                      "value": "string",
                      "description": "Email consent (`consents.email_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
                    },
                    {
                      "disabled": false,
                      "key": "emailTrackingStatus",
                      "value": "string",
                      "description": "Email tracking consent (`consents.email_tracking_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
                    },
                    {
                      "disabled": false,
                      "key": "gender",
                      "value": "string",
                      "description": "Filter by gender."
                    },
                    {
                      "disabled": false,
                      "key": "isTest",
                      "value": "true",
                      "description": "`true` returns only test contacts, `false` only the other contacts."
                    },
                    {
                      "disabled": false,
                      "key": "isValid",
                      "value": "true",
                      "description": "`true` matches the contacts valid on their mobile number or their email, `false` those valid on neither."
                    },
                    {
                      "disabled": false,
                      "key": "limit",
                      "value": "809",
                      "description": "Results per page, from 1 to 1000. Defaults to 10."
                    },
                    {
                      "disabled": false,
                      "key": "listIds",
                      "value": "string",
                      "description": "Comma-separated contact list IDs: only the contacts that belong to at least one of them are returned, once for each of those lists they belong to. Cannot be combined with `notListIds` or `sortPriorityListId`."
                    },
                    {
                      "disabled": false,
                      "key": "notListIds",
                      "value": "string",
                      "description": "Comma-separated contact list IDs: the contacts that belong to any of them are left out. Cannot be combined with `listIds` or `sortPriorityListId`."
                    },
                    {
                      "disabled": false,
                      "key": "page",
                      "value": "314",
                      "description": "Page number, 0-based. Defaults to 0."
                    },
                    {
                      "disabled": false,
                      "key": "phoneNumber",
                      "value": "string",
                      "description": "Exact phone number in E.164 format, such as `+393331234567` (URL-encode the `+` as `%2B`). Matches the contact's `mobilePhoneNumber` or any of its `phoneNumbers`."
                    },
                    {
                      "disabled": false,
                      "key": "rcsStatus",
                      "value": "string",
                      "description": "RCS consent (`consents.rcs_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
                    },
                    {
                      "disabled": false,
                      "key": "search",
                      "value": "string",
                      "description": "Case-insensitive substring match on `fullName`, `firstName`, `lastName`, `mainEmail` and `mobilePhoneNumber`."
                    },
                    {
                      "disabled": false,
                      "key": "smsStatus",
                      "value": "string",
                      "description": "SMS consent (`consents.sms_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
                    },
                    {
                      "disabled": false,
                      "key": "sortBy",
                      "value": "string",
                      "description": "Field to sort by. Defaults to `fullName`."
                    },
                    {
                      "disabled": false,
                      "key": "sortOrder",
                      "value": "asc",
                      "description": "Sort order: `asc` or `desc` (case-insensitive). Defaults to `asc`. Any other value is refused with `400`."
                    },
                    {
                      "disabled": false,
                      "key": "sortPriorityListId",
                      "value": "5145",
                      "description": "Puts first the contacts that belong to this list. Cannot be combined with `listIds` or `notListIds`."
                    },
                    {
                      "disabled": false,
                      "key": "waStatus",
                      "value": "string",
                      "description": "WhatsApp consent (`consents.wa_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
                    }
                  ],
                  "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": "d36bd348-ac19-5e0b-a2ff-7f1c436bf261",
                  "name": "One page of the contacts that match the filters.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "communicationSupported",
                          "value": "string"
                        },
                        {
                          "key": "email",
                          "value": "string"
                        },
                        {
                          "key": "emailStatus",
                          "value": "string"
                        },
                        {
                          "key": "emailTrackingStatus",
                          "value": "string"
                        },
                        {
                          "key": "gender",
                          "value": "string"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "isValid",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "listIds",
                          "value": "string"
                        },
                        {
                          "key": "notListIds",
                          "value": "string"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "phoneNumber",
                          "value": "string"
                        },
                        {
                          "key": "rcsStatus",
                          "value": "string"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "smsStatus",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "value": "asc"
                        },
                        {
                          "key": "sortPriorityListId",
                          "value": "5145"
                        },
                        {
                          "key": "waStatus",
                          "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      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 884,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": true,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        4100,\n        8016\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    },\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 8298,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": true,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        6711,\n        8997\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    }\n  ],\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalCount\": 42,\n  \"totalPages\": 5\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "49e1d432-eb07-58b9-af7b-4a0366a4d2d5",
                  "name": "A parameter is invalid: more than one of `listIds`, `notListIds` and `sortPriorityListId`, a list ID that is not a positive integer, a `sortOrder` other than `asc` or `desc`, a `page` below 0, a `limit` outside 1-1000, a consent filter value other than `OPTIN`, `OPTOUT` or `NONE`, or an unsupported filter. The response body names the parameter.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "communicationSupported",
                          "value": "string"
                        },
                        {
                          "key": "email",
                          "value": "string"
                        },
                        {
                          "key": "emailStatus",
                          "value": "string"
                        },
                        {
                          "key": "emailTrackingStatus",
                          "value": "string"
                        },
                        {
                          "key": "gender",
                          "value": "string"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "isValid",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "listIds",
                          "value": "string"
                        },
                        {
                          "key": "notListIds",
                          "value": "string"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "phoneNumber",
                          "value": "string"
                        },
                        {
                          "key": "rcsStatus",
                          "value": "string"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "smsStatus",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "value": "asc"
                        },
                        {
                          "key": "sortPriorityListId",
                          "value": "5145"
                        },
                        {
                          "key": "waStatus",
                          "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": "5c9b9a4c-a9a8-5913-ad36-ae0cc2431d5e",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "communicationSupported",
                          "value": "string"
                        },
                        {
                          "key": "email",
                          "value": "string"
                        },
                        {
                          "key": "emailStatus",
                          "value": "string"
                        },
                        {
                          "key": "emailTrackingStatus",
                          "value": "string"
                        },
                        {
                          "key": "gender",
                          "value": "string"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "isValid",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "listIds",
                          "value": "string"
                        },
                        {
                          "key": "notListIds",
                          "value": "string"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "phoneNumber",
                          "value": "string"
                        },
                        {
                          "key": "rcsStatus",
                          "value": "string"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "smsStatus",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "value": "asc"
                        },
                        {
                          "key": "sortPriorityListId",
                          "value": "5145"
                        },
                        {
                          "key": "waStatus",
                          "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": "62014705-6f69-559d-a045-a68d98de0476",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "communicationSupported",
                          "value": "string"
                        },
                        {
                          "key": "email",
                          "value": "string"
                        },
                        {
                          "key": "emailStatus",
                          "value": "string"
                        },
                        {
                          "key": "emailTrackingStatus",
                          "value": "string"
                        },
                        {
                          "key": "gender",
                          "value": "string"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "isValid",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "listIds",
                          "value": "string"
                        },
                        {
                          "key": "notListIds",
                          "value": "string"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "phoneNumber",
                          "value": "string"
                        },
                        {
                          "key": "rcsStatus",
                          "value": "string"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "smsStatus",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "value": "asc"
                        },
                        {
                          "key": "sortPriorityListId",
                          "value": "5145"
                        },
                        {
                          "key": "waStatus",
                          "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": "197bacd2-29fc-540a-ac0f-a681f31e27b3",
              "name": "Get contact by ID",
              "request": {
                "name": "Get contact by ID",
                "description": {
                  "content": "Returns one contact of your account by its ID, test contacts included.\n\n- **In the response**: the standard fields (name, phone numbers, email addresses, gender, validity, supported channels, `customField1` to `customField3`, `tags`), the consent of each channel (`consents`) and the IDs of the contact lists the contact belongs to (`listIds`).\n- **Not returned**: the dynamic fields, that is the additional fields defined for your account in the platform.\n- **Typical use**: read a contact before updating it with `PUT /contacts/{id}`, or check it after creating it.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "id",
                      "description": "(Required) ID of the contact to retrieve."
                    }
                  ]
                },
                "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": "f7fa4f95-fb41-5629-abec-ea0ebac78cf3",
                  "name": "The contact.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact to retrieve."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 12345,\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"string\",\n  \"gender\": \"string\",\n  \"nickname\": \"string\",\n  \"phoneNumbers\": [\n    \"+39333123456\"\n  ],\n  \"emailAddresses\": [\n    \"mario@example.com\"\n  ],\n  \"mainEmail\": \"mario@example.com\",\n  \"addresses\": [\n    \"string\",\n    \"string\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"string\",\n  \"organization\": \"string\",\n  \"website\": \"string\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"string\",\n  \"companyId\": 4618,\n  \"companyName\": \"string\",\n  \"companyMail\": \"string\",\n  \"companyPhone\": \"string\",\n  \"companyFax\": \"string\",\n  \"completeCompanyAddress\": \"string\",\n  \"fiscalCode\": \"string\",\n  \"sector\": \"string\",\n  \"referenceContact\": \"string\",\n  \"isValidMobilePhoneNumber\": true,\n  \"isValidEmail\": true,\n  \"mobilePhoneNumber\": \"+39333123456\",\n  \"city\": \"Milano\",\n  \"source\": \"string\",\n  \"leadType\": \"string\",\n  \"stage\": \"string\",\n  \"channel\": \"string\",\n  \"owner\": \"string\",\n  \"tags\": [\n    \"string\",\n    \"string\"\n  ],\n  \"numCampaignSent\": 6984,\n  \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n  \"lastContactType\": \"string\",\n  \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n  \"lastCampaignType\": \"string\",\n  \"communicationSupported\": [\n    \"string\",\n    \"string\"\n  ],\n  \"customField1\": \"string\",\n  \"customField2\": \"string\",\n  \"customField3\": \"string\",\n  \"isTest\": false,\n  \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n  \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n  \"listIds\": [\n    1981,\n    187\n  ],\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"email_tracking_status\": \"OPTIN\"\n  }\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "b285c20e-b396-50c6-a796-d9021bb68ba5",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact to retrieve."
                        }
                      ]
                    },
                    "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": "382aed5a-92a8-514c-a8e6-3fc914f21fa1",
                  "name": "No contact with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact to retrieve."
                        }
                      ]
                    },
                    "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": "54e28170-987b-50cb-a1bd-24411279ec92",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact to retrieve."
                        }
                      ]
                    },
                    "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": "e364a80d-2693-5b8b-a2a2-345b951ca5cd",
              "name": "Update a contact",
              "request": {
                "name": "Update a contact",
                "description": {
                  "content": "Updates a contact of your account. Only the fields you send change, with the exceptions below.\n\n- **Partial update**: a field you leave out keeps its stored value. Properties outside the request schema are ignored.\n- **Names are recomputed together**: to change a name, send `fullName`, `firstName`, `middleName` and `lastName` together. The rules are on the `fullName` field.\n- **Consents**: only the channels you send change, and the `consents` returned by `GET /contacts/{id}` can be sent back as they are. The rules are on the `consents` field.\n- **Invalid phone numbers and emails do not fail the call**: the contact is updated (`200`) and `errors` lists every invalid value of the contact, including those stored before this request.\n- **A new phone number** can change the contact's validity and the channels that reach it: it might not support RCS, for example.\n- **List memberships are not changed**: manage them with the `/contacts/list/contacts` endpoints.\n\n> **Every update erases the contact's dynamic fields**, the additional fields defined for your account in the platform, which this API neither returns nor accepts.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "id",
                      "description": "(Required) ID of the contact to update."
                    }
                  ]
                },
                "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  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+39 02 1234567\",\n    \"+39 333 1234567\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, Milano\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "fe06a128-272e-5a42-a133-d6910402fcfb",
                  "name": "Contact updated. `errors` lists the invalid phone numbers and email addresses of the contact, if any.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact to update."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"sms_status\": \"OPTOUT\",\n    \"sms_status_date\": \"2026-10-09T08:15:30Z\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"contacts\": [\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 8587,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": false,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        9887,\n        9127\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    },\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 2709,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": false,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        9338,\n        3147\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    }\n  ],\n  \"errors\": [\n    \"string\",\n    \"string\"\n  ]\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "ac181cc2-9e0c-5d80-ad05-34f9f30dd9c6",
                  "name": "The body is missing, cannot be read (for example a `birthday` in another format), or carries `consents` that cannot be stored: an unknown key, a status other than `OPTIN` or `OPTOUT`, a date in another format or without its status.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact to update."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"sms_status\": \"OPTOUT\",\n    \"sms_status_date\": \"2026-10-09T08:15:30Z\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "92dc0e4b-e6b9-5cac-a2ad-2562b5c441ae",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact to update."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"sms_status\": \"OPTOUT\",\n    \"sms_status_date\": \"2026-10-09T08:15:30Z\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "22bcf1a2-188e-5671-a4f6-b2789c2ca969",
                  "name": "No contact with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact to update."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"sms_status\": \"OPTOUT\",\n    \"sms_status_date\": \"2026-10-09T08:15:30Z\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "09f2beb1-aa93-594b-ace7-7c9427f7f9c7",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact to update."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"sms_status\": \"OPTOUT\",\n    \"sms_status_date\": \"2026-10-09T08:15:30Z\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "9530422e-ee87-550a-a39e-526b0b0c3867",
              "name": "Upload and parse a contact list file",
              "request": {
                "name": "Upload and parse a contact list file",
                "description": {
                  "content": "Imports the rows of a CSV, text or Excel file as contacts of your account.\n\n- **How to send it**: as `multipart/form-data`, with the file in `file` and its original name in `fileName`. The format is detected from the extension of `fileName`.\n- **Formats**: `.csv` and `.txt` files delimited by commas, semicolons, pipes or tabs (detected automatically), and Excel `.xls` and `.xlsx` files. For VCard files, use `POST /contacts/upload/vcard`.\n- **Columns** are mapped automatically from the header names the platform recognises, such as `firstName`, `lastName`, `phoneNumber` and `email`. Send `removeHead=true` when the first row holds column headers, so that it is not imported as a contact.\n- **Create or update**: new contacts are created, and a contact already in your account, matched by mobile phone number or by email address (compared after normalisation), is updated. If the phone number and the email match two different contacts, the one matched by email is updated.\n- **List**: with `listId`, every contact imported is added to that contact list.\n- **Consents**: the file cannot carry consents. The optional `consents` form field gives the same consents to every imported contact; the rules are on the field.\n\n> **Large files are imported in the background.** For 50,000 rows or more (a lower threshold applies in test environments) the call answers `200` at once with `numContact`, `addedContact`, `updatedContact` and `numError` set to `-1` and `listId` and `listName` null. The final counts arrive only in the import-completed email sent to the user the API key belongs to. Do not upload the file again when you get `-1`: that would run the import a second time.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "upload"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "listId",
                      "value": "5145",
                      "description": "ID of the contact list the imported contacts are added to."
                    },
                    {
                      "disabled": false,
                      "key": "removeHead",
                      "value": "true",
                      "description": "If `true`, the first row of the file (the header) is not imported."
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "multipart/form-data"
                  },
                  {
                    "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": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "description": "The file to import."
                    },
                    {
                      "key": "fileName",
                      "value": "string",
                      "type": "text",
                      "description": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it."
                    },
                    {
                      "key": "consents",
                      "value": "string",
                      "type": "text",
                      "description": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact."
                    }
                  ]
                }
              },
              "response": [
                {
                  "id": "5bebaef5-1723-537d-a8cb-7d360bf8a1f7",
                  "name": "File imported: the counts of added, updated and failed contacts, all `-1` when the import continues in the background.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "upload"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "listId",
                          "value": "5145"
                        },
                        {
                          "key": "removeHead",
                          "value": "true"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "The file to import.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it.",
                            "type": "text/plain"
                          },
                          "key": "fileName",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                            "type": "text/plain"
                          },
                          "key": "consents",
                          "value": "string",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"numContact\": 100,\n  \"addedContact\": 80,\n  \"updatedContact\": 15,\n  \"listId\": 726,\n  \"listName\": \"string\",\n  \"numError\": 5\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "373c7f4b-c8c6-5edb-af1a-c76f882b68de",
                  "name": "`file` or `fileName` is missing, the file is empty, the extension of `fileName` is not `csv`, `txt`, `xls` or `xlsx`, or `consents` is not a JSON object or carries consents that cannot be stored.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "upload"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "listId",
                          "value": "5145"
                        },
                        {
                          "key": "removeHead",
                          "value": "true"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "The file to import.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it.",
                            "type": "text/plain"
                          },
                          "key": "fileName",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                            "type": "text/plain"
                          },
                          "key": "consents",
                          "value": "string",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "77dbc196-0ac8-54b4-a260-59d11dac3494",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "upload"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "listId",
                          "value": "5145"
                        },
                        {
                          "key": "removeHead",
                          "value": "true"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "The file to import.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it.",
                            "type": "text/plain"
                          },
                          "key": "fileName",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                            "type": "text/plain"
                          },
                          "key": "consents",
                          "value": "string",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "7b283d0c-3a55-5733-a119-aec6475c0350",
                  "name": "`listId` is not a contact list of your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "upload"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "listId",
                          "value": "5145"
                        },
                        {
                          "key": "removeHead",
                          "value": "true"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "The file to import.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it.",
                            "type": "text/plain"
                          },
                          "key": "fileName",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                            "type": "text/plain"
                          },
                          "key": "consents",
                          "value": "string",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "e3d01916-8116-5f69-add0-844e4a8c292e",
                  "name": "Unexpected server error during the import, including a file whose content cannot be parsed.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "upload"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "listId",
                          "value": "5145"
                        },
                        {
                          "key": "removeHead",
                          "value": "true"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "The file to import.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it.",
                            "type": "text/plain"
                          },
                          "key": "fileName",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                            "type": "text/plain"
                          },
                          "key": "consents",
                          "value": "string",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "a3271916-0932-5402-a260-878e4843deb8",
              "name": "Upload and parse a VCard file",
              "request": {
                "name": "Upload and parse a VCard file",
                "description": {
                  "content": "Imports the entries of a VCard (`.vcf`) file as contacts of your account: for example an export from a phone address book, Outlook, Google Contacts or a CRM.\n\n- **How to send it**: as `multipart/form-data`, with the file in `file` and its original name, ending in `.vcf`, in `fileName`.\n- **Content**: one or more vCard entries, each mapped to a contact from the standard vCard fields (`FN`, `TEL`, `EMAIL` and so on). A file with no vCard entry imports nothing.\n- **Create or update**: new contacts are created, and a contact already in your account, matched by mobile phone number or by email address (compared after normalisation), is updated. If the phone number and the email match two different contacts, the one matched by email is updated.\n- **List**: with `listId`, every contact imported is added to that contact list.\n- **Consents**: the VCard cannot carry consents. The optional `consents` form field gives the same consents to every imported contact; the rules are on the field.\n\n> **Large files are imported in the background.** For 50,000 entries or more (a lower threshold applies in test environments) the call answers `200` at once with `numContact`, `addedContact`, `updatedContact` and `numError` set to `-1` and `listId` and `listName` null. The final counts arrive only in the import-completed email sent to the user the API key belongs to. Do not upload the file again when you get `-1`: that would run the import a second time.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "upload",
                    "vcard"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "listId",
                      "value": "5145",
                      "description": "ID of the contact list the imported contacts are added to."
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "multipart/form-data"
                  },
                  {
                    "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": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "description": "The file to import."
                    },
                    {
                      "key": "fileName",
                      "value": "string",
                      "type": "text",
                      "description": "Original name of the file. It must end with `.vcf`."
                    },
                    {
                      "key": "consents",
                      "value": "string",
                      "type": "text",
                      "description": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact."
                    }
                  ]
                }
              },
              "response": [
                {
                  "id": "2e4a174e-6b16-597d-aaac-751789c5e2da",
                  "name": "VCard file imported: the counts of added, updated and failed contacts, all `-1` when the import continues in the background.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "upload",
                        "vcard"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "listId",
                          "value": "5145"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "The file to import.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Original name of the file. It must end with `.vcf`.",
                            "type": "text/plain"
                          },
                          "key": "fileName",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                            "type": "text/plain"
                          },
                          "key": "consents",
                          "value": "string",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"numContact\": 100,\n  \"addedContact\": 80,\n  \"updatedContact\": 15,\n  \"listId\": 726,\n  \"listName\": \"string\",\n  \"numError\": 5\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "2e7e8977-ad93-5aca-abba-11d6e301cb80",
                  "name": "`file` or `fileName` is missing, the file is empty, `fileName` does not end in `.vcf`, or `consents` is not a JSON object or carries consents that cannot be stored.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "upload",
                        "vcard"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "listId",
                          "value": "5145"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "The file to import.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Original name of the file. It must end with `.vcf`.",
                            "type": "text/plain"
                          },
                          "key": "fileName",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                            "type": "text/plain"
                          },
                          "key": "consents",
                          "value": "string",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "77fa4566-1fba-522c-adb7-9bbc2310955e",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "upload",
                        "vcard"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "listId",
                          "value": "5145"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "The file to import.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Original name of the file. It must end with `.vcf`.",
                            "type": "text/plain"
                          },
                          "key": "fileName",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                            "type": "text/plain"
                          },
                          "key": "consents",
                          "value": "string",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "6a105bf4-b5af-5411-a97f-719d4dc804a3",
                  "name": "`listId` is not a contact list of your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "upload",
                        "vcard"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "listId",
                          "value": "5145"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "The file to import.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Original name of the file. It must end with `.vcf`.",
                            "type": "text/plain"
                          },
                          "key": "fileName",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                            "type": "text/plain"
                          },
                          "key": "consents",
                          "value": "string",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "fe58cc0a-3a8c-5fe3-ac6e-0f09a71f7c81",
                  "name": "Unexpected server error during the import.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "upload",
                        "vcard"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "listId",
                          "value": "5145"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "The file to import.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Original name of the file. It must end with `.vcf`.",
                            "type": "text/plain"
                          },
                          "key": "fileName",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                            "type": "text/plain"
                          },
                          "key": "consents",
                          "value": "string",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "1b1774cc-0b2f-5998-ae7b-9d75b586b372",
              "name": "Delete contacts",
              "request": {
                "name": "Delete contacts",
                "description": {
                  "content": "Deletes contacts of your account, permanently. One of `ids` and `notIds` is required.\n\n- **Delete specific contacts**: send `ids`, a comma-separated list of contact IDs. When `ids` is present, `notIds` is ignored.\n- **Delete all except some**: send `notIds`, the IDs of the contacts to keep. Every other non-test contact of your account is deleted.\n- **At most 200 IDs** in the list used: to delete more contacts, split them over several calls.\n- **Skipped without an error**: test contacts (`isTest` true) are never deleted, in either mode, and IDs that do not exist in your account are ignored.\n- **What goes with a contact**: its contact list memberships, so it is no longer a recipient of future campaigns. The delivery history of past campaigns is kept.\n- **The response is always `true`**: it does not tell how many contacts were deleted, and it is `true` even when none was.\n\n> **`notIds` can empty your address book in one call.** It deletes every contact you do not list, so check the list before you send it.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "ids",
                      "value": "string",
                      "description": "Comma-separated contact IDs to delete, at most 200. When present, `notIds` is ignored. One of `ids` and `notIds` is required."
                    },
                    {
                      "disabled": false,
                      "key": "notIds",
                      "value": "string",
                      "description": "Comma-separated contact IDs to keep, at most 200: every other non-test contact is deleted. Used only when `ids` is absent."
                    }
                  ],
                  "variable": []
                },
                "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": "47a35602-1db0-5fb7-ae70-6fb105ffcd7e",
                  "name": "`true`. The number of contacts deleted is not returned.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "ids",
                          "value": "string"
                        },
                        {
                          "key": "notIds",
                          "value": "string"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "c4fcd445-7833-5a61-aab9-9dce09dfcaaf",
                  "name": "Neither `ids` nor `notIds` is sent, or the list used is empty, has more than 200 IDs or contains a value that is not a positive integer. Nothing is deleted.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "ids",
                          "value": "string"
                        },
                        {
                          "key": "notIds",
                          "value": "string"
                        }
                      ],
                      "variable": []
                    },
                    "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": "f735a769-2159-5098-ac7c-538e22733de9",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "ids",
                          "value": "string"
                        },
                        {
                          "key": "notIds",
                          "value": "string"
                        }
                      ],
                      "variable": []
                    },
                    "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": "be6ce162-4221-581a-ae43-773314c0f569",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "ids",
                          "value": "string"
                        },
                        {
                          "key": "notIds",
                          "value": "string"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {}
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            }
          ]
        },
        {
          "id": "03f6c7d6-3cf8-53a9-a8c1-405da1c92e04",
          "name": "Contact lists",
          "item": [
            {
              "id": "8f0613a3-6663-5314-af10-d51a569b7701",
              "name": "Create a new contact list",
              "request": {
                "name": "Create a new contact list",
                "description": {
                  "content": "Creates an empty contact list in your account and returns it with its generated ID.\n\n- **Required**: a name for the list.\n- **Fill it**: add existing contacts with `POST /contacts/list/contacts`, or import a file with `POST /contacts/upload` or `POST /contacts/upload/vcard`, which can add the imported contacts to the list.\n- **Use it**: put its ID in the `contactListIds` of a campaign when you create or update it.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "list"
                  ],
                  "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\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "69aebeda-262f-5bee-a885-88895e801f44",
                  "name": "Contact list created, returned with its generated ID.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Created",
                  "code": 201,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 1,\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"string\",\n  \"companyId\": 4618,\n  \"numContact\": 150,\n  \"isTest\": false,\n  \"isDeleted\": true,\n  \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n  \"lastCampaignType\": \"string\",\n  \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n  \"updatedAt\": \"2026-09-01 10:17:53.200+0000\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "e28c469c-845d-538e-a6e0-b0f8b027ebdf",
                  "name": "The body is missing, lacks a required field or carries invalid data.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "aa959cdc-2221-5310-a489-b90bb907270b",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "c0129597-e00d-5644-ac95-d35ebd4db198",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "8e836ffd-0702-530b-ada5-58ad89641cf4",
              "name": "Find contact lists",
              "request": {
                "name": "Find contact lists",
                "description": {
                  "content": "Returns the contact lists of your account that match the filters, one page at a time.\n\n- **What a list is**: a named group of contacts used as the audience of campaigns. A contact can belong to several lists.\n- **Filters**: `search` (case-insensitive partial match on the name), `id` (specific lists, as comma-separated IDs) and `contactIds` (the lists that contain those contacts, useful to see which lists a contact is in).\n- **Test lists**: `isTest=true` returns only the test lists, used to send test campaigns, and `isTest=false` leaves them out.\n- **Deleted lists** are left out unless you send `includeDeleted=true`.\n- **Pagination and sorting**: `page` is 0-based, `limit` defaults to 10 (maximum 1000), `sortBy` defaults to `name` and `sortOrder` is `asc` or `desc`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "contactIds",
                      "value": "string",
                      "description": "Comma-separated list of contact IDs to filter by."
                    },
                    {
                      "disabled": false,
                      "key": "id",
                      "value": "string",
                      "description": "Comma-separated list of contact list IDs to filter by."
                    },
                    {
                      "disabled": false,
                      "key": "includeDeleted",
                      "value": "true",
                      "description": "Include deleted contact lists."
                    },
                    {
                      "disabled": false,
                      "key": "isTest",
                      "value": "true",
                      "description": "Filter by test flag."
                    },
                    {
                      "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."
                    },
                    {
                      "disabled": false,
                      "key": "search",
                      "value": "string",
                      "description": "Search string to filter contact lists by name."
                    },
                    {
                      "disabled": false,
                      "key": "sortBy",
                      "value": "string",
                      "description": "Field to sort by. Defaults to `name`."
                    },
                    {
                      "disabled": false,
                      "key": "sortOrder",
                      "value": "string",
                      "description": "Sort order: `asc` or `desc`. Defaults to `asc`."
                    }
                  ],
                  "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": "76155608-3cde-58b4-abba-6200948543d5",
                  "name": "One page of the contact lists that match the filters.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "contactIds",
                          "value": "string"
                        },
                        {
                          "key": "id",
                          "value": "string"
                        },
                        {
                          "key": "includeDeleted",
                          "value": "true"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "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      \"id\": 1,\n      \"name\": \"Newsletter VIP\",\n      \"description\": \"string\",\n      \"companyId\": 4618,\n      \"numContact\": 150,\n      \"isTest\": false,\n      \"isDeleted\": false,\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\"\n    },\n    {\n      \"id\": 1,\n      \"name\": \"Newsletter VIP\",\n      \"description\": \"string\",\n      \"companyId\": 4618,\n      \"numContact\": 150,\n      \"isTest\": false,\n      \"isDeleted\": true,\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\"\n    }\n  ],\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalCount\": 42,\n  \"totalPages\": 5\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "647a7c1e-aefc-5192-a831-533ce97aecaf",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "contactIds",
                          "value": "string"
                        },
                        {
                          "key": "id",
                          "value": "string"
                        },
                        {
                          "key": "includeDeleted",
                          "value": "true"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "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": "f3d25e6b-d751-5e21-a4a3-9c42a887812c",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "contactIds",
                          "value": "string"
                        },
                        {
                          "key": "id",
                          "value": "string"
                        },
                        {
                          "key": "includeDeleted",
                          "value": "true"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "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": "53e97440-a54c-54ac-ad00-8bee5b436a6c",
              "name": "Get contact list by ID",
              "request": {
                "name": "Get contact list by ID",
                "description": {
                  "content": "Returns one contact list: name, description, creation date, number of contacts and whether it is a test list.\n\n- **Before a campaign**: use it to check a list before you put it in the `contactListIds` of `POST /campaigns` or `PUT /campaigns/{id}`.\n- **Members**: the contacts of the list are returned by `GET /contacts/list/{listId}/contacts`.\n- **Deleted lists** answer `404`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "list",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "id",
                      "description": "(Required) ID of the contact list to retrieve."
                    }
                  ]
                },
                "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": "afe4e3da-08e0-554f-a89b-ef28d85bf265",
                  "name": "The contact list.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact list to retrieve."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 1,\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"string\",\n  \"companyId\": 4618,\n  \"numContact\": 150,\n  \"isTest\": false,\n  \"isDeleted\": true,\n  \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n  \"lastCampaignType\": \"string\",\n  \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n  \"updatedAt\": \"2026-09-01 10:17:53.200+0000\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "b1a74ac4-0f4e-591e-add9-f3029e9ef913",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact list to retrieve."
                        }
                      ]
                    },
                    "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": "26d2c3b5-cbbf-5476-a185-e06f25daf797",
                  "name": "No contact list with this ID in your account, or the list has been deleted.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact list to retrieve."
                        }
                      ]
                    },
                    "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": "b673368f-db9b-5298-ad1e-d0431cbed899",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact list to retrieve."
                        }
                      ]
                    },
                    "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": "af7330ef-e8df-5e09-ac7b-f5a313df141c",
              "name": "Update a contact list",
              "request": {
                "name": "Update a contact list",
                "description": {
                  "content": "Updates the name and the description of a contact list. It does not add or remove contacts.\n\n- **Partial update**: a value you leave out, or send blank, keeps the current one.\n- **Members**: add them with `POST /contacts/list/contacts` and remove them with `DELETE /contacts/list/contacts`.\n- **Campaigns** that use the list see the new name and description automatically.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "list",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "id",
                      "description": "(Required) ID of the contact list to update."
                    }
                  ]
                },
                "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  \"name\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "982698b1-734f-5918-a876-7a358bb286a1",
                  "name": "Contact list updated, returned with its new values.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact list to update."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 1,\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"string\",\n  \"companyId\": 4618,\n  \"numContact\": 150,\n  \"isTest\": false,\n  \"isDeleted\": true,\n  \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n  \"lastCampaignType\": \"string\",\n  \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n  \"updatedAt\": \"2026-09-01 10:17:53.200+0000\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "ac45796b-99d5-55b1-ad5a-eb49806e62e6",
                  "name": "The body is missing or carries invalid data.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact list to update."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "c07978bd-f475-5716-ad40-b98dd9036fb7",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact list to update."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "03e8b2e0-5fe0-524e-a416-fe6c2eacf875",
                  "name": "No contact list with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact list to update."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "163eae70-d1c6-57ac-a8f4-dffcad19beef",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the contact list to update."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Newsletter VIP\",\n  \"description\": \"Contact list for VIP newsletter subscribers\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "8ab8e2e0-9f4a-5b44-ab5c-207c1edb9874",
              "name": "Add contacts to contact lists",
              "request": {
                "name": "Add contacts to contact lists",
                "description": {
                  "content": "Adds contacts to contact lists in bulk: several contacts to several lists in one call.\n\n- **Always required**: `listIds`, the lists to add the contacts to.\n- **Specific contacts**: send `contactIds`, with `allContacts` false.\n- **Everyone**: send `allContacts` true. All the contacts of your account are added to the lists, except those in `excludeIdsAllContacts`.\n- **No duplicates**: a contact that is already in a list keeps its membership.\n- **The response holds contact IDs, not membership IDs**: one entry for each new membership, so a contact added to two lists appears twice. Contacts that were already in a list are left out, and the array is empty when `allContacts` is true.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "list",
                    "contacts"
                  ],
                  "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  \"listIds\": [\n    7052\n  ],\n  \"contactIds\": [\n    8988,\n    9421\n  ],\n  \"allContacts\": true,\n  \"excludeIdsAllContacts\": [\n    1754,\n    2061\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "c75cd776-6b9c-5dbd-a9b1-23e512ef2011",
                  "name": "IDs of the contacts newly added, one entry for each new membership.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    6968\n  ],\n  \"contactIds\": [\n    3251,\n    702\n  ],\n  \"allContacts\": true,\n  \"excludeIdsAllContacts\": [\n    8656,\n    8936\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Created",
                  "code": 201,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  3530,\n  125\n]",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "9f07902e-94f0-56ab-a6b4-31f84d611fbd",
                  "name": "The body is missing or invalid, `listIds` is empty, or `allContacts` is false and `contactIds` is not provided.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    6968\n  ],\n  \"contactIds\": [\n    3251,\n    702\n  ],\n  \"allContacts\": true,\n  \"excludeIdsAllContacts\": [\n    8656,\n    8936\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "17ca7172-3927-5864-a9f1-ac31ea03bb37",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    6968\n  ],\n  \"contactIds\": [\n    3251,\n    702\n  ],\n  \"allContacts\": true,\n  \"excludeIdsAllContacts\": [\n    8656,\n    8936\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "dfe989ec-1fb9-5f2e-a189-87a5c5b68ae2",
                  "name": "One of the `listIds` is not a contact list of your account or, when `allContacts` is false, one of the `contactIds` is not a contact of your account or is a test contact. Nothing is added.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    6968\n  ],\n  \"contactIds\": [\n    3251,\n    702\n  ],\n  \"allContacts\": true,\n  \"excludeIdsAllContacts\": [\n    8656,\n    8936\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "04e89f96-e6d0-598a-a972-fb62ea8d31cf",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    6968\n  ],\n  \"contactIds\": [\n    3251,\n    702\n  ],\n  \"allContacts\": true,\n  \"excludeIdsAllContacts\": [\n    8656,\n    8936\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "c74adcae-94bf-5592-ae59-1273963d62e6",
              "name": "Find contacts in a contact list",
              "request": {
                "name": "Find contacts in a contact list",
                "description": {
                  "content": "Returns the contacts of one contact list, with the same filters, sorting and pagination as `GET /contacts`.\n\n- **Same as** `GET /contacts` with `listIds` set to this list, once the list is found in your account. Test lists are found like any other list.\n- **Filters add up**: `search`, `gender`, `isValid`, `communicationSupported`, `isTest`, `phoneNumber`, `email` and the consent filters are combined with AND.\n- **Consent filters**: `emailStatus`, `emailTrackingStatus`, `smsStatus`, `waStatus` and `rcsStatus` take comma-separated values among `OPTIN`, `OPTOUT` and `NONE`. With `smsStatus=OPTIN`, for example, you get the members of the list who opted in to SMS.\n- **Pagination and sorting**: `page` is 0-based, `limit` goes from 1 to 1000 (default 10), `sortBy` defaults to `fullName` and `sortOrder` is `asc` or `desc`.\n- **Not supported**: filtering by `lastContactType` or `lastCampaignType` is refused with `400`.\n\nUse it to preview the audience of a list before a campaign, or to check which contacts a file upload imported.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "list",
                    ":listId",
                    "contacts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "communicationSupported",
                      "value": "string",
                      "description": "Keeps the contacts that can be reached on this channel, for example `SMS`, `RCS` or `WHATSAPP`."
                    },
                    {
                      "disabled": false,
                      "key": "email",
                      "value": "string",
                      "description": "Exact email address, ignoring case. Matches the contact's `mainEmail` or any of its `emailAddresses`."
                    },
                    {
                      "disabled": false,
                      "key": "emailStatus",
                      "value": "string",
                      "description": "Email consent (`consents.email_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
                    },
                    {
                      "disabled": false,
                      "key": "emailTrackingStatus",
                      "value": "string",
                      "description": "Email tracking consent (`consents.email_tracking_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
                    },
                    {
                      "disabled": false,
                      "key": "gender",
                      "value": "string",
                      "description": "Filter by gender."
                    },
                    {
                      "disabled": false,
                      "key": "isTest",
                      "value": "true",
                      "description": "`true` returns only test contacts, `false` only the other contacts."
                    },
                    {
                      "disabled": false,
                      "key": "isValid",
                      "value": "true",
                      "description": "`true` matches the contacts valid on their mobile number or their email, `false` those valid on neither."
                    },
                    {
                      "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."
                    },
                    {
                      "disabled": false,
                      "key": "phoneNumber",
                      "value": "string",
                      "description": "Exact phone number in E.164 format, such as `+393331234567` (URL-encode the `+` as `%2B`). Matches the contact's `mobilePhoneNumber` or any of its `phoneNumbers`."
                    },
                    {
                      "disabled": false,
                      "key": "rcsStatus",
                      "value": "string",
                      "description": "RCS consent (`consents.rcs_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
                    },
                    {
                      "disabled": false,
                      "key": "search",
                      "value": "string",
                      "description": "Case-insensitive substring match on `fullName`, `firstName`, `lastName`, `mainEmail` and `mobilePhoneNumber`."
                    },
                    {
                      "disabled": false,
                      "key": "smsStatus",
                      "value": "string",
                      "description": "SMS consent (`consents.sms_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
                    },
                    {
                      "disabled": false,
                      "key": "sortBy",
                      "value": "string",
                      "description": "Field to sort by. Defaults to `fullName`."
                    },
                    {
                      "disabled": false,
                      "key": "sortOrder",
                      "value": "asc",
                      "description": "Sort order: `asc` or `desc` (case-insensitive). Defaults to `asc`. Any other value is refused with `400`."
                    },
                    {
                      "disabled": false,
                      "key": "waStatus",
                      "value": "string",
                      "description": "WhatsApp consent (`consents.wa_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "listId",
                      "description": "(Required) ID of the contact list to retrieve contacts from."
                    }
                  ]
                },
                "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": "a8e40079-bd69-5719-a501-f0ec3066c218",
                  "name": "One page of the contacts of the list that match the filters.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":listId",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "communicationSupported",
                          "value": "string"
                        },
                        {
                          "key": "email",
                          "value": "string"
                        },
                        {
                          "key": "emailStatus",
                          "value": "string"
                        },
                        {
                          "key": "emailTrackingStatus",
                          "value": "string"
                        },
                        {
                          "key": "gender",
                          "value": "string"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "isValid",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "phoneNumber",
                          "value": "string"
                        },
                        {
                          "key": "rcsStatus",
                          "value": "string"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "smsStatus",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "value": "asc"
                        },
                        {
                          "key": "waStatus",
                          "value": "string"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "listId",
                          "description": "(Required) ID of the contact list to retrieve contacts from."
                        }
                      ]
                    },
                    "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\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 884,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": true,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        4100,\n        8016\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    },\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 8298,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": true,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        6711,\n        8997\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    }\n  ],\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalCount\": 42,\n  \"totalPages\": 5\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "d717fdea-66f9-5449-a000-d34e94bbe979",
                  "name": "A parameter is invalid: a `sortOrder` other than `asc` or `desc`, a `page` below 0, a `limit` outside 1-1000, a consent filter value other than `OPTIN`, `OPTOUT` or `NONE`, or an unsupported filter. The response body names the parameter.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":listId",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "communicationSupported",
                          "value": "string"
                        },
                        {
                          "key": "email",
                          "value": "string"
                        },
                        {
                          "key": "emailStatus",
                          "value": "string"
                        },
                        {
                          "key": "emailTrackingStatus",
                          "value": "string"
                        },
                        {
                          "key": "gender",
                          "value": "string"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "isValid",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "phoneNumber",
                          "value": "string"
                        },
                        {
                          "key": "rcsStatus",
                          "value": "string"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "smsStatus",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "value": "asc"
                        },
                        {
                          "key": "waStatus",
                          "value": "string"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "listId",
                          "description": "(Required) ID of the contact list to retrieve contacts from."
                        }
                      ]
                    },
                    "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": "42efaa1c-d87a-5391-a1ff-5199839835b1",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":listId",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "communicationSupported",
                          "value": "string"
                        },
                        {
                          "key": "email",
                          "value": "string"
                        },
                        {
                          "key": "emailStatus",
                          "value": "string"
                        },
                        {
                          "key": "emailTrackingStatus",
                          "value": "string"
                        },
                        {
                          "key": "gender",
                          "value": "string"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "isValid",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "phoneNumber",
                          "value": "string"
                        },
                        {
                          "key": "rcsStatus",
                          "value": "string"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "smsStatus",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "value": "asc"
                        },
                        {
                          "key": "waStatus",
                          "value": "string"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "listId",
                          "description": "(Required) ID of the contact list to retrieve contacts from."
                        }
                      ]
                    },
                    "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": "08d7eeaf-a945-5137-ad52-e58581cbde6b",
                  "name": "No contact list with this ID in your account. Deleted lists answer `404` too.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":listId",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "communicationSupported",
                          "value": "string"
                        },
                        {
                          "key": "email",
                          "value": "string"
                        },
                        {
                          "key": "emailStatus",
                          "value": "string"
                        },
                        {
                          "key": "emailTrackingStatus",
                          "value": "string"
                        },
                        {
                          "key": "gender",
                          "value": "string"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "isValid",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "phoneNumber",
                          "value": "string"
                        },
                        {
                          "key": "rcsStatus",
                          "value": "string"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "smsStatus",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "value": "asc"
                        },
                        {
                          "key": "waStatus",
                          "value": "string"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "listId",
                          "description": "(Required) ID of the contact list to retrieve contacts from."
                        }
                      ]
                    },
                    "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": "29d3a9ae-9f84-5ce0-aacd-a1f71e76dcbd",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        ":listId",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "communicationSupported",
                          "value": "string"
                        },
                        {
                          "key": "email",
                          "value": "string"
                        },
                        {
                          "key": "emailStatus",
                          "value": "string"
                        },
                        {
                          "key": "emailTrackingStatus",
                          "value": "string"
                        },
                        {
                          "key": "gender",
                          "value": "string"
                        },
                        {
                          "key": "isTest",
                          "value": "true"
                        },
                        {
                          "key": "isValid",
                          "value": "true"
                        },
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "phoneNumber",
                          "value": "string"
                        },
                        {
                          "key": "rcsStatus",
                          "value": "string"
                        },
                        {
                          "key": "search",
                          "value": "string"
                        },
                        {
                          "key": "smsStatus",
                          "value": "string"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "value": "asc"
                        },
                        {
                          "key": "waStatus",
                          "value": "string"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "listId",
                          "description": "(Required) ID of the contact list to retrieve contacts from."
                        }
                      ]
                    },
                    "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": "e2454e34-cdc5-50f8-ae34-c3d6796a6897",
              "name": "Delete contacts from contact lists",
              "request": {
                "name": "Delete contacts from contact lists",
                "description": {
                  "content": "Removes contacts from contact lists in bulk. Only the memberships are deleted: the contacts and the lists stay.\n\n- **Always required**: `listIds`, the lists to remove the contacts from.\n- **Specific contacts**: send `contactIds`. When it is not empty, only those contacts are removed, and `allContacts` and `excludeIdsAllContacts` are ignored.\n- **Everyone**: send `allContacts` true with an empty `contactIds`. All the contacts are removed from the lists, except those in `excludeIdsAllContacts`.\n- **Each contact must be a member of each list**: to clean several lists, send for each list only the contacts that belong to it.\n- **Effect on campaigns**: a removed contact is no longer a recipient of the campaigns that target the list, unless it belongs to another list of the same campaign.\n\n> **A contact that is not in one of the lists stops the call half way.** It answers `404`, but the pairs are processed list by list and contact by contact: those before the failing one are already removed and stay removed, their list-removal automations may already have run, and repeating the same call fails again on them.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "list",
                    "contacts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "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"
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"listIds\": [\n    795\n  ],\n  \"contactIds\": [\n    5271,\n    6072\n  ],\n  \"allContacts\": true,\n  \"excludeIdsAllContacts\": [\n    5828,\n    2398\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "85e3cdfd-288d-53e4-aed1-b1a6ab6c8c95",
                  "name": "Memberships removed.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    7167\n  ],\n  \"contactIds\": [\n    63,\n    2962\n  ],\n  \"allContacts\": false,\n  \"excludeIdsAllContacts\": [\n    1758,\n    8237\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "64491e33-70f4-5e1d-acf6-a78937c19088",
                  "name": "The body is missing, `listIds` is empty, or `allContacts` is false and `contactIds` is not provided.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    7167\n  ],\n  \"contactIds\": [\n    63,\n    2962\n  ],\n  \"allContacts\": false,\n  \"excludeIdsAllContacts\": [\n    1758,\n    8237\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "58dafca8-c85e-5492-ab59-4a4c8085eac5",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    7167\n  ],\n  \"contactIds\": [\n    63,\n    2962\n  ],\n  \"allContacts\": false,\n  \"excludeIdsAllContacts\": [\n    1758,\n    8237\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "ce77f5b1-c464-58c7-a53d-a9199d76ed1f",
                  "name": "One of the `listIds` is not a contact list of your account, or one of the `contactIds` is not a contact of your account or is a test contact: nothing is removed. It is also the answer when a contact is not a member of one of the lists: the pairs processed before it are already removed.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    7167\n  ],\n  \"contactIds\": [\n    63,\n    2962\n  ],\n  \"allContacts\": false,\n  \"excludeIdsAllContacts\": [\n    1758,\n    8237\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "6b5e2717-1910-5bdc-a771-86f39da35348",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    7167\n  ],\n  \"contactIds\": [\n    63,\n    2962\n  ],\n  \"allContacts\": false,\n  \"excludeIdsAllContacts\": [\n    1758,\n    8237\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "c6a9c160-39f5-597b-a9b3-905dc16c7848",
              "name": "Delete association by ID",
              "request": {
                "name": "Delete association by ID",
                "description": {
                  "content": "Deletes one association between a contact and a contact list, by the numeric ID of the association. The contact and the list are not deleted.\n\n> **No endpoint of this API returns the association ID.** It is an internal identifier of the link between one contact and one list, and `POST /contacts/list/contacts` returns contact IDs, not association IDs. To remove contacts from lists, use `DELETE /contacts/list/contacts` with `listIds` and `contactIds`, which also removes several contacts at once.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "list",
                    "contacts",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "id",
                      "description": "(Required) ID of the association to delete."
                    }
                  ]
                },
                "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": "42c9c8f3-cd2d-5cd0-a2b2-0ee32ab49d29",
                  "name": "Association deleted.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the association to delete."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "c35a227f-9d46-5ea7-aea9-db4ccc1d7688",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the association to delete."
                        }
                      ]
                    },
                    "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": "74d86b82-01ae-5a59-af03-c181cdac52ca",
                  "name": "No association with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the association to delete."
                        }
                      ]
                    },
                    "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"
                },
                {
                  "id": "35562b5b-03eb-5fc8-a2ad-a68d3e1cb0e6",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list",
                        "contacts",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the association to delete."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {}
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "0a996fd7-36e2-558a-a79a-7e9fb2683520",
              "name": "Delete contact lists",
              "request": {
                "name": "Delete contact lists",
                "description": {
                  "content": "Deletes one or more contact lists. This cannot be undone.\n\n- **`ids`**: comma-separated contact list IDs, at most 200 per call. To delete more lists, split them over several calls.\n- **Lists are marked as deleted, not removed**: `GET /contacts/list/{id}` and `GET /contacts/list/{listId}/contacts` answer `404` for them, and `GET /contacts/list` returns them only with `includeDeleted=true`, with `isDeleted` true.\n- **Memberships are kept**: the `listIds` of a contact can still contain the ID of a deleted list, and `GET /contacts` with `listIds` set to that ID still returns its former members. To leave no membership behind, remove the contacts from the list with `DELETE /contacts/list/contacts` before you delete it.\n- **Contacts are not deleted**: they stay in your account and in their other lists.\n\n> **Check your campaigns first.** If a deleted list is assigned to a draft or scheduled campaign, remove it from the `contactListIds` of the campaign before confirming, otherwise the campaign may fail validation.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "contacts",
                    "list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "ids",
                      "value": "string",
                      "description": "(Required) Comma-separated contact list IDs to delete, at most 200."
                    }
                  ],
                  "variable": []
                },
                "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": "6512a001-fb17-5f6d-a22e-f1b8ae05c385",
                  "name": "Contact lists deleted.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "ids",
                          "value": "string"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "69ed1890-b9f1-535a-a4b0-e0c3233dec83",
                  "name": "`ids` is missing, has more than 200 IDs or contains a value that is not a positive integer.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "ids",
                          "value": "string"
                        }
                      ],
                      "variable": []
                    },
                    "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": "e921b51d-1277-576f-a84c-63508a96d6a7",
                  "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "ids",
                          "value": "string"
                        }
                      ],
                      "variable": []
                    },
                    "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": "3e5b465c-1f6e-5940-a4e3-e38730dcb671",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "contacts",
                        "list"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "ids",
                          "value": "string"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {}
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            }
          ]
        },
        {
          "id": "b24d6b32-8278-50a0-aff6-fc5a82299f2a",
          "name": "Exports",
          "item": [
            {
              "id": "8ee0eb12-aba8-553e-a5bd-79f8abe6565a",
              "name": "Export contacts",
              "request": {
                "name": "Export contacts",
                "description": {
                  "content": "Queues an export of the contacts of your account, as a CSV file (the default) or an Excel file.\n\n- **What to export**: `listIds` for the contacts of one or more contact lists, `contactIds` for specific contacts, or neither for every contact of your account (send an empty object, `{}`).\n- **Exclusions**: with `listIds`, or with neither, `excludeContactIds` leaves those contacts out.\n- **Format**: `exportFormat` is `CSV` or `EXCEL`.\n- **The answer is `202` with an empty body**, so without an export ID: the job is queued, not completed.\n- **Get the file**: poll `GET /exports` every 5-10 seconds. The export is listed only once its file is ready, already with `isAvailableForDownload` true. Then call `GET /exports/{exportId}` with its `id` for the download URL. An export whose generation fails is never listed.\n\n> **A regenerated export is not always the same export.** `POST /exports/{exportId}` does not apply `excludeContactIds` again, and an export of specific `contactIds` comes back as an export of all your contacts. To repeat such an export exactly, call this endpoint again.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "exports",
                    "contacts"
                  ],
                  "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  \"listIds\": [\n    5206,\n    2016\n  ],\n  \"contactIds\": [\n    178,\n    3110\n  ],\n  \"excludeContactIds\": [\n    8164,\n    7145\n  ],\n  \"exportFormat\": \"CSV\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "befbc3e7-423e-541e-a00a-b9b9e65aff8d",
                  "name": "Export queued. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    4279,\n    6531\n  ],\n  \"contactIds\": [\n    2949,\n    8243\n  ],\n  \"excludeContactIds\": [\n    2730,\n    658\n  ],\n  \"exportFormat\": \"CSV\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Accepted",
                  "code": 202,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "609b8a22-184e-53b1-a416-1b553a6a7888",
                  "name": "The body is missing or invalid: `listIds` together with `contactIds`, `contactIds` together with `excludeContactIds`, or an unknown `exportFormat`.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    4279,\n    6531\n  ],\n  \"contactIds\": [\n    2949,\n    8243\n  ],\n  \"excludeContactIds\": [\n    2730,\n    658\n  ],\n  \"exportFormat\": \"CSV\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "a51df8a6-f18c-5410-a696-8a73142ad6e3",
                  "name": "The API key is missing, invalid, or lacks the `EXPORTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    4279,\n    6531\n  ],\n  \"contactIds\": [\n    2949,\n    8243\n  ],\n  \"excludeContactIds\": [\n    2730,\n    658\n  ],\n  \"exportFormat\": \"CSV\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "b635259b-9752-5e55-acc5-ef41cd91b1e3",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        "contacts"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"listIds\": [\n    4279,\n    6531\n  ],\n  \"contactIds\": [\n    2949,\n    8243\n  ],\n  \"excludeContactIds\": [\n    2730,\n    658\n  ],\n  \"exportFormat\": \"CSV\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "625a1ab5-2d21-5b61-ac1a-09a7f448aef9",
              "name": "Export delivery reports",
              "request": {
                "name": "Export delivery reports",
                "description": {
                  "content": "Queues an export of delivery reports, that is the send and delivery status of each message, as a CSV file (the default) or an Excel file.\n\n- **What to export**: either `campaignId`, for the reports of one campaign, or `startDateTime` and `endDateTime` together, for every report of that period.\n- **`sendType`** narrows the messages to those sent from the web platform (`WEB`), through the API (`API`) or both (`WEB_API`, the same as leaving it out of a date-range export). A `campaignId` can be combined only with `WEB` or with no `sendType`.\n- **Optional filters**: `sender`, `recipient` and `subAccountId`. They do not apply to every message: the table below says which.\n- **Masked destinations**: in the file, the last three characters of every destination are replaced by `***`.\n- **The answer is `202` with an empty body**, so without an export ID: the job is queued, not completed.\n- **Get the file**: poll `GET /exports` every 5-10 seconds. The export is listed only once its file is ready, already with `isAvailableForDownload` true. Then call `GET /exports/{exportId}` with its `id` for the download URL. An export whose generation fails is never listed.\n\n<details>\n<summary>Which messages each optional filter applies to</summary>\n\n| Filter | Applies to |\n|---|---|\n| `recipient` | Every message. |\n| `sender` | On the messages of a campaign or of the web platform, the SMS sender: their RCS and WhatsApp messages are left in. On the messages sent through the API, the SMS sender, the RCS agent or the WhatsApp number. |\n| `subAccountId` | Only the messages sent through the API. |\n\n</details>\n\nAfter the export expires you can regenerate it with `POST /exports/{exportId}`: the new export keeps all of its filters and is listed under a new ID.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "exports",
                    "delivery-reports"
                  ],
                  "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  \"startDateTime\": \"2022-03-10T12:15:50-04:00\",\n  \"endDateTime\": \"2022-03-10T12:15:50-04:00\",\n  \"sender\": \"string\",\n  \"recipient\": \"string\",\n  \"campaignId\": 8367,\n  \"sendType\": \"WEB\",\n  \"subAccountId\": \"string\",\n  \"exportFormat\": \"CSV\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "b2c94069-762c-55c1-a2aa-e230c3e247f8",
                  "name": "Export queued. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        "delivery-reports"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"startDateTime\": \"2022-03-10T12:15:50-04:00\",\n  \"endDateTime\": \"2022-03-10T12:15:50-04:00\",\n  \"sender\": \"string\",\n  \"recipient\": \"string\",\n  \"campaignId\": 8367,\n  \"sendType\": \"WEB\",\n  \"subAccountId\": \"string\",\n  \"exportFormat\": \"CSV\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Accepted",
                  "code": 202,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "b20fbf05-45c8-54bd-a671-0d3ccf6732d7",
                  "name": "The body is missing or invalid: neither `campaignId` nor both `startDateTime` and `endDateTime`, only one of the two dates, `campaignId` together with the date range or with `sendType` `API` or `WEB_API`, or a malformed value such as a date in another format or an unknown `sendType`. The response body names the reason.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        "delivery-reports"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"startDateTime\": \"2022-03-10T12:15:50-04:00\",\n  \"endDateTime\": \"2022-03-10T12:15:50-04:00\",\n  \"sender\": \"string\",\n  \"recipient\": \"string\",\n  \"campaignId\": 8367,\n  \"sendType\": \"WEB\",\n  \"subAccountId\": \"string\",\n  \"exportFormat\": \"CSV\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "fa2ff08f-014f-5d48-a682-5f06a4dda431",
                  "name": "The API key is missing, invalid, or lacks the `EXPORTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        "delivery-reports"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"startDateTime\": \"2022-03-10T12:15:50-04:00\",\n  \"endDateTime\": \"2022-03-10T12:15:50-04:00\",\n  \"sender\": \"string\",\n  \"recipient\": \"string\",\n  \"campaignId\": 8367,\n  \"sendType\": \"WEB\",\n  \"subAccountId\": \"string\",\n  \"exportFormat\": \"CSV\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "582c94a0-ff9a-5355-a905-2edaf50115f7",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        "delivery-reports"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"startDateTime\": \"2022-03-10T12:15:50-04:00\",\n  \"endDateTime\": \"2022-03-10T12:15:50-04:00\",\n  \"sender\": \"string\",\n  \"recipient\": \"string\",\n  \"campaignId\": 8367,\n  \"sendType\": \"WEB\",\n  \"subAccountId\": \"string\",\n  \"exportFormat\": \"CSV\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "4ebc743d-f40e-5426-afd6-8c69ee2ece31",
              "name": "Export send history as CSV",
              "request": {
                "name": "Export send history as CSV",
                "description": {
                  "content": "Queues a CSV export of the messages sent through the API in a date range, with every channel in one file.\n\n- **API sends only**: the messages sent from campaigns or from the web console are not included.\n- **Body**: `startDateTime` and `endDateTime` as ISO-8601 date-times with an offset, such as `2025-01-01T00:00:00+01:00`. `sender` and `recipient` are optional filters.\n- **The answer is `202`**: the job is queued, not completed. It can take from a few seconds to several minutes, depending on the volume of the date range.\n- **Get the file**: poll `GET /exports`. The export is listed there once its file is ready; an export that is still running, or that failed, is not listed.\n- **Large ranges are slow**: months of data can take long. If you need a subset, narrow the range or page through `GET /messages/history`.\n\n> **On RCS and WhatsApp the status columns do not follow `deliveryStatus`.** They only say whether a delivery date was recorded: `3`, `Delivered`, when one was, otherwise `1`, `Sent`. A failed message reads `Sent`, and an RCS message that the status API reports as `UNSUPPORTED` or `EXPIRED`, or a WhatsApp one reported as `UNKNOWN`, can read `Delivered`.\n\n<details>\n<summary>Columns of the CSV file</summary>\n\nIn this order:\n\n1. **Row number**.\n2. **DateTime**: the send date.\n3. **Originator**: the SMS sender or the WhatsApp phone number, empty for RCS.\n4. **Destination**: with its last three characters replaced by `***`, on every channel.\n5. **Delivery status**: the numeric code that `Delivery result` spells out.\n6. **IP address**.\n7. **ID SubAccount**: the API user that sent the message.\n8. **SMS cost**: the unit price, on every channel.\n9. **Customer ID**: the `messageId` given at send time, or the identifier generated when none was given.\n10. **Sent type**: `SMS-API`, `RCS-API` or `WHATSAPP-API`.\n11. **Part number**.\n12. **Total parts**.\n13. **Delivery result**: `Sent`, `Rejected`, `Delivered`, `Expired`, `Deleted` or `Undeliverable`.\n\nAn SMS too long for a single part has one row per part. The file has no delivery-date column and does not contain the message text.\n\n</details>",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "messages",
                    "history",
                    "export"
                  ],
                  "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  \"startDateTime\": \"2025-01-01T00:00:00+01:00\",\n  \"endDateTime\": \"2025-01-31T23:59:59+01:00\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "06616ad9-1f37-5cc8-af5a-c843e4fc3267",
                  "name": "Export queued. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "messages",
                        "history",
                        "export"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"startDateTime\": \"2025-01-01T00:00:00+01:00\",\n  \"endDateTime\": \"2025-01-31T23:59:59+01:00\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Accepted",
                  "code": 202,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "b23e9ee1-b586-51e6-a1cf-c32af036476e",
                  "name": "The body is missing or malformed, `startDateTime` or `endDateTime` is missing, or `startDateTime` is later than `endDateTime`. Nothing is queued.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "messages",
                        "history",
                        "export"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"startDateTime\": \"2025-01-01T00:00:00+01:00\",\n  \"endDateTime\": \"2025-01-31T23:59:59+01:00\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "3c70375d-c382-5c08-a7e7-b1ec0e45722e",
                  "name": "The API key is missing, invalid, or lacks the `MESSAGES` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "messages",
                        "history",
                        "export"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"startDateTime\": \"2025-01-01T00:00:00+01:00\",\n  \"endDateTime\": \"2025-01-31T23:59:59+01:00\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "bb68f9df-be0c-57ba-aecb-97fca6ac7351",
                  "name": "Unexpected server error. Retry after a short delay.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "messages",
                        "history",
                        "export"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"startDateTime\": \"2025-01-01T00:00:00+01:00\",\n  \"endDateTime\": \"2025-01-31T23:59:59+01:00\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "44ecc688-01e5-53c8-a22e-5d8025588020",
              "name": "List exports",
              "request": {
                "name": "List exports",
                "description": {
                  "content": "Returns the exports of your account, one page at a time, newest first. It is the polling endpoint of the export workflow.\n\n- **Which exports**: those requested through this API, with any key of your account. Exports requested from the web dashboard are not listed.\n- **Listed only when ready**: an export appears once its file has been generated, already with `isAvailableForDownload` true. A queued or running export is not listed.\n- **Failures are silent**: an export whose generation fails is never listed and reports no error. If no new entry shows up within a reasonable time, request the export again.\n- **Each entry** carries its `type` (`CONTACTS` or `DELIVERY_REPORT`), the parameters of the export in `detail`, `createdAt` and `expiresAt`. `isAvailableForDownload` turns false only once `expiresAt` has passed.\n- **Expired exports** can be regenerated with `POST /exports/{exportId}`: the new export is listed under a new ID once its file is ready, while the expired entry stays in the list.\n- **Pagination**: `page` is 0-based (default 0) and `limit` goes from 1 to 1000 (default 10).\n\n<details>\n<summary>The export workflow, step by step</summary>\n\n1. Request the export with `POST /exports/contacts` or `POST /exports/delivery-reports`. The answer is `202` with an empty body, so without an export ID.\n2. Call this endpoint every 5-10 seconds until a new entry appears, and recognise your export by its `createdAt` and `detail`.\n3. Call `GET /exports/{exportId}` with the `id` of that entry to get the time-limited download URL.\n\n</details>",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "exports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "limit",
                      "value": "10",
                      "description": "Results per page, from 1 to 1000. Defaults to 10."
                    },
                    {
                      "disabled": false,
                      "key": "page",
                      "value": "0",
                      "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": "ac72ce06-b896-581c-ad05-02c170428305",
                  "name": "One page of exports, newest first.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports"
                      ],
                      "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\": 42,\n      \"type\": \"DELIVERY_REPORT\",\n      \"detail\": {\n        \"key_0\": 322\n      },\n      \"createdAt\": \"2022-03-10T12:15:50-04:00\",\n      \"expiresAt\": \"2022-03-10T12:15:50-04:00\",\n      \"isAvailableForDownload\": true\n    },\n    {\n      \"id\": 42,\n      \"type\": \"DELIVERY_REPORT\",\n      \"detail\": {\n        \"key_0\": false,\n        \"key_1\": 5508.296564221382\n      },\n      \"createdAt\": \"2022-03-10T12:15:50-04:00\",\n      \"expiresAt\": \"2022-03-10T12:15:50-04:00\",\n      \"isAvailableForDownload\": true\n    }\n  ],\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalCount\": 42,\n  \"totalPages\": 5\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "92d48b91-eec9-54d2-a3ee-059d5854a1ce",
                  "name": "`page` is negative, `limit` is below 1 or above 1000, or `page` multiplied by `limit` is above 2147483647.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "10"
                        },
                        {
                          "key": "page",
                          "value": "0"
                        }
                      ],
                      "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": "3794841f-c289-5323-a882-de55307b35c4",
                  "name": "The API key is missing, invalid, or lacks the `EXPORTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "10"
                        },
                        {
                          "key": "page",
                          "value": "0"
                        }
                      ],
                      "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": "a7429091-c73b-5ace-a330-89c915ce6d26",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "10"
                        },
                        {
                          "key": "page",
                          "value": "0"
                        }
                      ],
                      "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": "46d5d86a-c17e-5e01-ac3e-227e580e5608",
              "name": "Get export download URL",
              "request": {
                "name": "Get export download URL",
                "description": {
                  "content": "Returns a pre-signed download URL for the file of an export listed by `GET /exports`.\n\n- **When to call it**: with the `id` of an entry whose `isAvailableForDownload` is true.\n- **The URL is time-limited**: while the export has not expired, call this endpoint again for a fresh URL.\n- **Once the export has expired** (`expiresAt` has passed and `isAvailableForDownload` is false) its file can no longer be downloaded. Regenerate it with `POST /exports/{exportId}`, poll `GET /exports` until the new export is listed under a new ID, and call this endpoint with that ID.\n\n> **An expired export answers `500`** (`Remote server error.`), not `400`. That response cannot be told apart from a real fault, so decide from `isAvailableForDownload` and `expiresAt` in `GET /exports`, not from the status code.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "exports",
                    ":exportId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "exportId",
                      "description": "(Required) Export identifier."
                    }
                  ]
                },
                "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": "22e82a50-137f-5584-af27-116f298c766e",
                  "name": "The download URL.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        ":exportId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "exportId",
                          "description": "(Required) Export identifier."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"url\": \"https://storage.example.com/exports/42.csv?token=abc123&expires=1700000000\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "56cc6b49-365b-5db6-a512-15f476c68b07",
                  "name": "The API key is missing, invalid, or lacks the `EXPORTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        ":exportId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "exportId",
                          "description": "(Required) Export identifier."
                        }
                      ]
                    },
                    "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": "c9ac7a88-b207-5308-a5a3-8bff02e535a6",
                  "name": "No export with this ID in your account, or the export was requested from the web dashboard.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        ":exportId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "exportId",
                          "description": "(Required) Export identifier."
                        }
                      ]
                    },
                    "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": "ed1df8aa-e492-5537-a8b6-74bc5f135081",
                  "name": "The export has expired, or unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        ":exportId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "exportId",
                          "description": "(Required) Export identifier."
                        }
                      ]
                    },
                    "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": "1f80897c-1510-58b5-aec3-6479869cc3a1",
              "name": "Regenerate expired export",
              "request": {
                "name": "Regenerate expired export",
                "description": {
                  "content": "Queues a new export built from the parameters of an expired one. Use it when an export listed by `GET /exports` has `isAvailableForDownload` false and you still need the data.\n\n- **The answer is `202` with an empty body.** The new export is generated in the background, from the data as it is at that moment.\n- **New ID**: the new export is listed by `GET /exports` once its file is ready. Poll until it appears, recognise it by its `createdAt` and `detail`, and call `GET /exports/{exportId}` with the new `id`.\n- **The expired export keeps its ID and stays expired**, and every further call queues one more export.\n- **Delivery reports** are regenerated with all of their filters.\n- **Contacts are not**: `excludeContactIds` is not applied again, and an export of specific `contactIds` is regenerated as an export of all the contacts of your account (its `detail.type` is `ALL_CONTACTS`). To repeat such an export exactly, request it again with `POST /exports/contacts`.\n\n> **An export that has not expired yet answers `500`** (`Remote server error.`), not `400`. That response cannot be told apart from a real fault, so check `isAvailableForDownload` and `expiresAt` in `GET /exports` before you call this endpoint.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "exports",
                    ":exportId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "exportId",
                      "description": "(Required) Export identifier."
                    }
                  ]
                },
                "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": "8a21e1ee-78c4-5128-ae44-a889d48f18e6",
                  "name": "Regeneration queued. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        ":exportId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "exportId",
                          "description": "(Required) Export identifier."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {}
                  },
                  "status": "Accepted",
                  "code": 202,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "533827f4-bae8-554b-a0a3-95cfc87d6a29",
                  "name": "The API key is missing, invalid, or lacks the `EXPORTS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        ":exportId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "exportId",
                          "description": "(Required) Export identifier."
                        }
                      ]
                    },
                    "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": "2ee6f9d1-6661-5edb-ad1f-5ceb0b58d1dc",
                  "name": "No export with this ID in your account, or the export was requested from the web dashboard.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        ":exportId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "exportId",
                          "description": "(Required) Export identifier."
                        }
                      ]
                    },
                    "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"
                },
                {
                  "id": "4997019e-55d8-55e0-a217-3f39a789ab2d",
                  "name": "The export has not expired yet, or unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "exports",
                        ":exportId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "exportId",
                          "description": "(Required) Export identifier."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {}
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            }
          ]
        },
        {
          "id": "7e9e1e92-edb8-50e0-a7f4-7f48bab24cc1",
          "name": "Inbox",
          "item": [
            {
              "id": "3488b5fc-9be4-5e76-a761-fc7e00590651",
              "name": "List inbox conversations",
              "request": {
                "name": "List inbox conversations",
                "description": {
                  "content": "Returns the two-way conversations of one inbox section: `ACTIVE` (the main inbox, the default), `ARCHIVED` or `TRASHED`.\n\n- **What a conversation is**: every message exchanged with one contact on one channel (WhatsApp, RCS and so on), grouped in one thread. It is created automatically when a contact sends an inbound message.\n- **Sections**: without `section` only the `ACTIVE` conversations are returned. List the archived ones with `section=ARCHIVED` and the trashed ones with `section=TRASHED`.\n- **Filters**: `dateFrom` keeps the conversations whose last message is at or after an instant, `channelIds` restricts to one or more channels, and `unreadOnly=true` returns only the conversations with unread messages.\n- **Sorting**: `orderBy` takes a field name with a `-` prefix for descending or `+` for ascending, such as `-lastMessageDate` for newest first.\n- **Unread counter**: each conversation carries one. It is cleared by `PATCH /inbox/conversations/{chatId}/read`, and also by `GET /inbox/conversations/{chatId}/messages` called without `idFrom` and `idTo`.\n- **Tidying up**: move a conversation out of the default list with `PATCH /inbox/conversations/{chatId}/archive` and bring it back with `PATCH /inbox/conversations/{chatId}/unarchive`.\n\n<details>\n<summary>How conversations change on their own</summary>\n\n- **After 7 days with no new message** the conversation is closed: its `status` becomes `CLOSED` and it stays in `ACTIVE`.\n- **After 30 days closed** it is moved to `ARCHIVED`. An untouched conversation therefore leaves the default list about 37 days after its last message.\n- **A new inbound message** brings an archived or trashed conversation back to `ACTIVE`, with `status` `OPEN`.\n\n</details>",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "inbox",
                    "conversations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "channelIds",
                      "value": "INSTAGRAM-1308,WHATSAPP-42",
                      "description": "Comma-separated channel filter. Each value is `CHANNEL-channelId`, where `CHANNEL` is the `socialMedia` of the conversation (`WHATSAPP`, `RCS`, `INSTAGRAM`, `FACEBOOK` or `CHATBOT`, case-insensitive) and `channelId` is its `channelId` field."
                    },
                    {
                      "disabled": false,
                      "key": "dateFrom",
                      "value": "2025-01-15T00:00:00Z",
                      "description": "Only the conversations whose last message is at or after this instant (inclusive). Accepted formats: `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 `00:00:00Z` of that day."
                    },
                    {
                      "disabled": false,
                      "key": "orderBy",
                      "value": "string",
                      "description": "Sort field with an optional `+` or `-` prefix, such as `-lastMessageDate` or `+contactName`."
                    },
                    {
                      "disabled": false,
                      "key": "section",
                      "value": "ACTIVE",
                      "description": "Inbox section to list: `ACTIVE` (the main inbox, used when the parameter is omitted), `ARCHIVED` or `TRASHED`. Case-insensitive. Any other value is refused with `400`."
                    },
                    {
                      "disabled": false,
                      "key": "unreadOnly",
                      "value": "false",
                      "description": "If `true`, returns only the conversations with unread messages."
                    }
                  ],
                  "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": "ba780a17-d999-50fb-adb3-624d6f8e006f",
                  "name": "The conversations of the section.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "channelIds",
                          "value": "INSTAGRAM-1308,WHATSAPP-42"
                        },
                        {
                          "key": "dateFrom",
                          "value": "2025-01-15T00:00:00Z"
                        },
                        {
                          "key": "orderBy",
                          "value": "string"
                        },
                        {
                          "key": "section",
                          "value": "ACTIVE"
                        },
                        {
                          "key": "unreadOnly",
                          "value": "true"
                        }
                      ],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 500,\n    \"companyId\": 7362,\n    \"hasUnreadMessages\": true,\n    \"lastCheckedAt\": \"2025-03-10 14:30:00.000+0100\",\n    \"userName\": \"string\",\n    \"phoneNumber\": \"+39333123456\",\n    \"externalUserId\": \"1309399970616060\",\n    \"profilePicture\": \"string\",\n    \"unreadCount\": 4546,\n    \"lastMessageText\": \"Thanks for your help!\",\n    \"lastMessageDate\": \"2025-03-10 14:30:00.000+0100\",\n    \"socialMedia\": \"whatsapp\",\n    \"channelId\": 1308,\n    \"companyProfileName\": \"string\",\n    \"companyProfilePicture\": \"string\",\n    \"companyProfileId\": \"string\",\n    \"companyPhoneNumber\": \"string\",\n    \"companyPhoneNumberType\": \"string\",\n    \"whatsappWindowExpire\": \"2025-03-10 14:30:00.000+0100\",\n    \"assignedUserId\": 378,\n    \"status\": \"OPEN\",\n    \"visibility\": \"ACTIVE\"\n  },\n  {\n    \"id\": 500,\n    \"companyId\": 5875,\n    \"hasUnreadMessages\": true,\n    \"lastCheckedAt\": \"2025-03-10 14:30:00.000+0100\",\n    \"userName\": \"string\",\n    \"phoneNumber\": \"+39333123456\",\n    \"externalUserId\": \"1309399970616060\",\n    \"profilePicture\": \"string\",\n    \"unreadCount\": 6910,\n    \"lastMessageText\": \"Thanks for your help!\",\n    \"lastMessageDate\": \"2025-03-10 14:30:00.000+0100\",\n    \"socialMedia\": \"whatsapp\",\n    \"channelId\": 1308,\n    \"companyProfileName\": \"string\",\n    \"companyProfilePicture\": \"string\",\n    \"companyProfileId\": \"string\",\n    \"companyPhoneNumber\": \"string\",\n    \"companyPhoneNumberType\": \"string\",\n    \"whatsappWindowExpire\": \"2025-03-10 14:30:00.000+0100\",\n    \"assignedUserId\": 7277,\n    \"status\": \"OPEN\",\n    \"visibility\": \"ACTIVE\"\n  }\n]",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "c7a85b78-dc61-5120-ad81-c6a38f0e3a74",
                  "name": "`section` is not `ACTIVE`, `ARCHIVED` or `TRASHED`, or `dateFrom` is in none of the accepted formats. The response body names the parameter and the accepted values.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "channelIds",
                          "value": "INSTAGRAM-1308,WHATSAPP-42"
                        },
                        {
                          "key": "dateFrom",
                          "value": "2025-01-15T00:00:00Z"
                        },
                        {
                          "key": "orderBy",
                          "value": "string"
                        },
                        {
                          "key": "section",
                          "value": "ACTIVE"
                        },
                        {
                          "key": "unreadOnly",
                          "value": "true"
                        }
                      ],
                      "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": "2c06d039-57b1-5999-afd1-edac8ed50aac",
                  "name": "The API key is missing, invalid, or lacks the `INBOX` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "channelIds",
                          "value": "INSTAGRAM-1308,WHATSAPP-42"
                        },
                        {
                          "key": "dateFrom",
                          "value": "2025-01-15T00:00:00Z"
                        },
                        {
                          "key": "orderBy",
                          "value": "string"
                        },
                        {
                          "key": "section",
                          "value": "ACTIVE"
                        },
                        {
                          "key": "unreadOnly",
                          "value": "true"
                        }
                      ],
                      "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": "db788d78-02ff-5c11-a432-b9a63cce9290",
              "name": "Get messages of a conversation",
              "request": {
                "name": "Get messages of a conversation",
                "description": {
                  "content": "Returns one page of the messages of a conversation: the most recent ones in the requested ID range, at most 20 per call, ordered oldest first.\n\n- **Each message** carries its direction (inbound or outbound), timestamp, content and delivery status.\n- **Range**: `idFrom` and `idTo` bound the range by message ID, both inclusive. The newest messages of the range are returned, selected by creation time, so take the smallest ID of a page from all its messages, not from the first one.\n- **Older messages**: call again with `idTo` set to the smallest ID received minus 1, until a page comes back with fewer than 20 messages.\n- **Catching up**: call with `idFrom` set to the ID of the last message you hold plus 1. When 20 messages come back there may be more in between: keep `idFrom` and page backwards with `idTo` until a page has fewer than 20 messages.\n\n> **A call without `idFrom` and `idTo` also marks the conversation as read.** Its unread counter goes to 0 and the channel is told that every unread inbound message was read, so the contact can see a read receipt. The messages of that same response can still show `isRead` false. To read the latest page without that effect, pass `idFrom=1`: it returns the same page and leaves the unread counter alone.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "inbox",
                    "conversations",
                    ":chatId",
                    "messages"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "idFrom",
                      "value": "5145",
                      "description": "Lower bound of the message ID range, inclusive. The newest messages of the range are returned, at most 20. A call with `idFrom` or `idTo` does not mark the conversation as read."
                    },
                    {
                      "disabled": false,
                      "key": "idTo",
                      "value": "5145",
                      "description": "Upper bound of the message ID range, inclusive. Set it to the smallest ID received minus 1 to load older messages."
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "chatId",
                      "description": "(Required) ID of the conversation."
                    }
                  ]
                },
                "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": "c12276ef-f1cf-5fc4-aaa7-d23d47bbdc90",
                  "name": "One page of messages, oldest first.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "messages"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "idFrom",
                          "value": "5145"
                        },
                        {
                          "key": "idTo",
                          "value": "5145"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"profile\": {\n    \"userName\": \"string\",\n    \"profilePicture\": \"string\",\n    \"additionalInfo\": \"string\",\n    \"contactId\": 18273,\n    \"externalUserId\": \"1309399970616060\"\n  },\n  \"messages\": [\n    {\n      \"id\": 6413,\n      \"text\": \"Hello, how can I help?\",\n      \"template\": {},\n      \"isUnsupported\": true,\n      \"isRead\": true,\n      \"replyMessage\": {\n        \"id\": 2656,\n        \"text\": \"string\",\n        \"template\": {},\n        \"isInbound\": true,\n        \"username\": \"string\",\n        \"url\": \"string\"\n      },\n      \"reaction\": \"string\",\n      \"createdAt\": \"2022-03-10T12:15:50-04:00\",\n      \"attachments\": [\n        {\n          \"id\": 8693,\n          \"type\": \"string\",\n          \"mediaKey\": \"string\",\n          \"url\": \"string\",\n          \"createdAt\": \"2022-03-10T12:15:50-04:00\",\n          \"instagram\": {\n            \"thumbnailUrl\": \"string\",\n            \"permalink\": \"string\",\n            \"igPostMediaId\": \"string\",\n            \"reelVideoId\": \"string\",\n            \"storyId\": \"string\",\n            \"title\": \"string\"\n          }\n        },\n        {\n          \"id\": 9293,\n          \"type\": \"string\",\n          \"mediaKey\": \"string\",\n          \"url\": \"string\",\n          \"createdAt\": \"2022-03-10T12:15:50-04:00\",\n          \"instagram\": {\n            \"thumbnailUrl\": \"string\",\n            \"permalink\": \"string\",\n            \"igPostMediaId\": \"string\",\n            \"reelVideoId\": \"string\",\n            \"storyId\": \"string\",\n            \"title\": \"string\"\n          }\n        }\n      ],\n      \"isUserReply\": false,\n      \"status\": \"DELIVERED\",\n      \"isEdited\": true,\n      \"chatbotId\": 3718,\n      \"chatbotInfo\": {\n        \"name\": \"string\",\n        \"avatarUrl\": \"string\",\n        \"status\": \"ACTIVE\"\n      }\n    },\n    {\n      \"id\": 8062,\n      \"text\": \"Hello, how can I help?\",\n      \"template\": {},\n      \"isUnsupported\": true,\n      \"isRead\": true,\n      \"replyMessage\": {\n        \"id\": 8893,\n        \"text\": \"string\",\n        \"template\": {},\n        \"isInbound\": false,\n        \"username\": \"string\",\n        \"url\": \"string\"\n      },\n      \"reaction\": \"string\",\n      \"createdAt\": \"2022-03-10T12:15:50-04:00\",\n      \"attachments\": [\n        {\n          \"id\": 5608,\n          \"type\": \"string\",\n          \"mediaKey\": \"string\",\n          \"url\": \"string\",\n          \"createdAt\": \"2022-03-10T12:15:50-04:00\",\n          \"instagram\": {\n            \"thumbnailUrl\": \"string\",\n            \"permalink\": \"string\",\n            \"igPostMediaId\": \"string\",\n            \"reelVideoId\": \"string\",\n            \"storyId\": \"string\",\n            \"title\": \"string\"\n          }\n        },\n        {\n          \"id\": 3234,\n          \"type\": \"string\",\n          \"mediaKey\": \"string\",\n          \"url\": \"string\",\n          \"createdAt\": \"2022-03-10T12:15:50-04:00\",\n          \"instagram\": {\n            \"thumbnailUrl\": \"string\",\n            \"permalink\": \"string\",\n            \"igPostMediaId\": \"string\",\n            \"reelVideoId\": \"string\",\n            \"storyId\": \"string\",\n            \"title\": \"string\"\n          }\n        }\n      ],\n      \"isUserReply\": false,\n      \"status\": \"DELIVERED\",\n      \"isEdited\": false,\n      \"chatbotId\": 1233,\n      \"chatbotInfo\": {\n        \"name\": \"string\",\n        \"avatarUrl\": \"string\",\n        \"status\": \"ACTIVE\"\n      }\n    }\n  ]\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "62122395-2de6-5f5e-a872-0c0d8f2b8a02",
                  "name": "The API key is missing, invalid, or lacks the `INBOX` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "messages"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "idFrom",
                          "value": "5145"
                        },
                        {
                          "key": "idTo",
                          "value": "5145"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "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": "1203bbe0-aa30-514a-ae23-3624b47f276d",
                  "name": "No conversation with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "messages"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "idFrom",
                          "value": "5145"
                        },
                        {
                          "key": "idTo",
                          "value": "5145"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "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": "5e160eb8-8870-5159-a133-79cb2a003789",
              "name": "Send a reply to a conversation",
              "request": {
                "name": "Send a reply to a conversation",
                "description": {
                  "content": "Sends a reply in an existing conversation, on the channel the conversation runs on: you do not choose the channel.\n\n- **Body**: `chatId` and a non-blank `message`, at least one attachment, or both.\n- **Attachments**: every `attachments[].mediaId` must be a media item of your own library (see the Media endpoints).\n- **`202` means accepted and queued for delivery.** The reply is handed on for delivery before the response is sent, so a refusal at that point comes back at once as `400` or `502`. Track the delivery with the delivery-status webhook, if you have configured one.\n- **Reply window**: some channels accept replies only within a time window, such as the 24 hours of WhatsApp. A reply sent outside it may fail to be delivered.\n- **`replyTo`** is the message of the conversation you reply to. On a WhatsApp reply that carries text it must be a message of this conversation; a reply with attachments only ignores it.\n\n> **On WhatsApp a `502` can arrive after part of the reply was sent.** The text and each attachment go out as separate messages, text first, so a retry sends that part again. On Instagram, Facebook Messenger and chatbot conversations a `502` means nothing was sent, and the request can be retried.\n\n<details>\n<summary>Maximum text length on each channel</summary>\n\n| Channel | Characters |\n|---|---|\n| WhatsApp | 4096 |\n| RCS | 3072 |\n| Facebook Messenger | 2000 |\n| Instagram | 1000 |\n\n</details>",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "inbox",
                    "conversations",
                    "reply"
                  ],
                  "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  \"chatId\": 500,\n  \"message\": \"Thank you for contacting us!\",\n  \"replyTo\": 1412,\n  \"attachments\": [\n    {\n      \"mediaId\": 100\n    },\n    {\n      \"mediaId\": 100\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "2f939904-5e82-5868-a263-ed1165756773",
                  "name": "Reply accepted and queued for delivery. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        "reply"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"chatId\": 500,\n  \"message\": \"Thank you for contacting us!\",\n  \"replyTo\": 7861,\n  \"attachments\": [\n    {\n      \"mediaId\": 100\n    },\n    {\n      \"mediaId\": 100\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Accepted",
                  "code": 202,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "6e32fc8c-3f25-5854-ab1f-ffe47e69f5c8",
                  "name": "The body is malformed or misses a required field, the reply is empty, the text is longer than the channel accepts, an attachment has a type or size the channel does not accept, or RCS refuses the message. Apart from the checks on the body itself, the response does not say which cause applies.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        "reply"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"chatId\": 500,\n  \"message\": \"Thank you for contacting us!\",\n  \"replyTo\": 7861,\n  \"attachments\": [\n    {\n      \"mediaId\": 100\n    },\n    {\n      \"mediaId\": 100\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "386aba00-50e4-5fed-a38d-6b95ec9dc3fb",
                  "name": "The API key is missing, invalid, or lacks the `INBOX` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        "reply"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"chatId\": 500,\n  \"message\": \"Thank you for contacting us!\",\n  \"replyTo\": 7861,\n  \"attachments\": [\n    {\n      \"mediaId\": 100\n    },\n    {\n      \"mediaId\": 100\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "ffb526c4-c1e5-5ad6-ad03-65b59acc033c",
                  "name": "The conversation does not exist in your account, an attachment is not a media item of your library, or, on a WhatsApp reply that carries text, `replyTo` is not a message of this conversation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        "reply"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"chatId\": 500,\n  \"message\": \"Thank you for contacting us!\",\n  \"replyTo\": 7861,\n  \"attachments\": [\n    {\n      \"mediaId\": 100\n    },\n    {\n      \"mediaId\": 100\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "827ffa6b-8490-5cb1-a8b8-9571bb50108c",
                  "name": "An attachment could not be read from the media library, or the channel did not accept the reply. On WhatsApp part of the reply may already have been sent.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        "reply"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"chatId\": 500,\n  \"message\": \"Thank you for contacting us!\",\n  \"replyTo\": 7861,\n  \"attachments\": [\n    {\n      \"mediaId\": 100\n    },\n    {\n      \"mediaId\": 100\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "e9a2603b-78c8-5c7a-a246-19616c41d37b",
              "name": "Mark a conversation as read",
              "request": {
                "name": "Mark a conversation as read",
                "description": {
                  "content": "Marks every message of a conversation as read: the unread counter goes to 0 and the channel is told that every unread inbound message was read, so the contact can see a read receipt.\n\n- **Often not needed**: `GET /inbox/conversations/{chatId}/messages` called without `idFrom` and `idTo` already does the same. Call this after reading the messages with `idFrom` or `idTo`, or to mark a conversation as read without fetching it.\n- **Idempotent**: on a conversation that is already fully read it changes nothing and still answers `204`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "inbox",
                    "conversations",
                    ":chatId",
                    "read"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "chatId",
                      "description": "(Required) ID of the conversation."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PATCH",
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "key",
                      "value": "X-API-Key"
                    },
                    {
                      "key": "value",
                      "value": "{{apiKey}}"
                    },
                    {
                      "key": "in",
                      "value": "header"
                    }
                  ]
                }
              },
              "response": [
                {
                  "id": "063208c1-9383-5e28-a328-3883c1709c3f",
                  "name": "Conversation marked as read. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "read"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PATCH",
                    "body": {}
                  },
                  "status": "No Content",
                  "code": 204,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "3dd2b016-ed00-59d0-aaa5-e22045037c0a",
                  "name": "The API key is missing, invalid, or lacks the `INBOX` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "read"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PATCH",
                    "body": {}
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "a18aa17e-c628-5975-ae1c-f959f2eca357",
                  "name": "No conversation with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "read"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PATCH",
                    "body": {}
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "b7aa709a-0482-5f6d-aa5d-605fa6b5c00f",
              "name": "Archive a conversation",
              "request": {
                "name": "Archive a conversation",
                "description": {
                  "content": "Archives a conversation: it leaves the default list of `GET /inbox/conversations` and is listed with `section=ARCHIVED`.\n\n- **Nothing is deleted**: the messages and the whole history are kept.\n- **It comes back on its own**: a new inbound message from the contact moves the conversation back to the active inbox. To restore it yourself, call `PATCH /inbox/conversations/{chatId}/unarchive`.\n- **The current state is not checked**: archiving an already archived conversation answers `204`, and a trashed conversation is moved to the archive.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "inbox",
                    "conversations",
                    ":chatId",
                    "archive"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "chatId",
                      "description": "(Required) ID of the conversation."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PATCH",
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "key",
                      "value": "X-API-Key"
                    },
                    {
                      "key": "value",
                      "value": "{{apiKey}}"
                    },
                    {
                      "key": "in",
                      "value": "header"
                    }
                  ]
                }
              },
              "response": [
                {
                  "id": "8f4ff358-a247-5438-aa7c-57109894d5b4",
                  "name": "Conversation archived. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "archive"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PATCH",
                    "body": {}
                  },
                  "status": "No Content",
                  "code": 204,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "15270860-73f0-529b-a001-57d7b6a6f3d6",
                  "name": "The API key is missing, invalid, or lacks the `INBOX` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "archive"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PATCH",
                    "body": {}
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "206f20ce-e78b-546d-a166-077e37d7ad40",
                  "name": "No conversation with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "archive"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PATCH",
                    "body": {}
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "9e7edab6-92cb-58de-acf5-88cceb3c3ced",
              "name": "Unarchive a conversation",
              "request": {
                "name": "Unarchive a conversation",
                "description": {
                  "content": "Restores an archived conversation to the default list of `GET /inbox/conversations`, undoing `PATCH /inbox/conversations/{chatId}/archive`.\n\n- **Messages are untouched**: only the section of the conversation is set back to `ACTIVE`.\n- **The current state is not checked**: on a conversation that is already active it answers `204` and changes nothing, and it also brings back a conversation that was moved to the trash.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "inbox",
                    "conversations",
                    ":chatId",
                    "unarchive"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "chatId",
                      "description": "(Required) ID of the conversation."
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PATCH",
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "key",
                      "value": "X-API-Key"
                    },
                    {
                      "key": "value",
                      "value": "{{apiKey}}"
                    },
                    {
                      "key": "in",
                      "value": "header"
                    }
                  ]
                }
              },
              "response": [
                {
                  "id": "c5599112-fc00-53f3-a43a-5e8635fa1b1a",
                  "name": "Conversation restored to the active inbox. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "unarchive"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PATCH",
                    "body": {}
                  },
                  "status": "No Content",
                  "code": 204,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "4d4e96aa-87f9-5292-a284-269acd47c8a7",
                  "name": "The API key is missing, invalid, or lacks the `INBOX` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "unarchive"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PATCH",
                    "body": {}
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "a8eb2870-e098-54e5-a6fa-80724e1032f4",
                  "name": "No conversation with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "unarchive"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PATCH",
                    "body": {}
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            }
          ]
        },
        {
          "id": "3deca276-cbbb-509a-ae53-e6255ba595aa",
          "name": "Conversation assignment",
          "item": [
            {
              "id": "7bb21711-b386-5849-a6e6-d2e727471d31",
              "name": "Get a single conversation",
              "request": {
                "name": "Get a single conversation",
                "description": {
                  "content": "Returns one conversation with its current assignee, unread counter, last message preview and channel information.\n\nUse it to refresh one conversation without listing the whole inbox again, for example after assigning or unassigning it.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "inbox",
                    "conversations",
                    ":chatId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "98765",
                      "key": "chatId",
                      "description": "(Required) ID of the conversation."
                    }
                  ]
                },
                "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": "9110b88b-138d-5998-ab7a-e99e5b93106f",
                  "name": "The conversation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 500,\n  \"companyId\": 9353,\n  \"hasUnreadMessages\": true,\n  \"lastCheckedAt\": \"2025-03-10 14:30:00.000+0100\",\n  \"userName\": \"string\",\n  \"phoneNumber\": \"+39333123456\",\n  \"externalUserId\": \"1309399970616060\",\n  \"profilePicture\": \"string\",\n  \"unreadCount\": 323,\n  \"lastMessageText\": \"Thanks for your help!\",\n  \"lastMessageDate\": \"2025-03-10 14:30:00.000+0100\",\n  \"socialMedia\": \"whatsapp\",\n  \"channelId\": 1308,\n  \"companyProfileName\": \"string\",\n  \"companyProfilePicture\": \"string\",\n  \"companyProfileId\": \"string\",\n  \"companyPhoneNumber\": \"string\",\n  \"companyPhoneNumberType\": \"string\",\n  \"whatsappWindowExpire\": \"2025-03-10 14:30:00.000+0100\",\n  \"assignedUserId\": 3353,\n  \"status\": \"OPEN\",\n  \"visibility\": \"ACTIVE\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "5e1539de-194c-5b38-a3de-86e918e9f773",
                  "name": "The API key is missing, invalid, or lacks the `INBOX` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "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": "2c2f7e15-2c47-5c6f-aa77-9b2ebb510da0",
                  "name": "No conversation with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "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": "952b40b1-1d19-50ee-a58d-2567b5fb44fd",
              "name": "List users assignable to conversations",
              "request": {
                "name": "List users assignable to conversations",
                "description": {
                  "content": "Returns the team members of your company that a conversation can be assigned to.\n\n- **Each entry** carries the user ID that `POST /inbox/conversations/{chatId}/assignee` takes, the display name and, when there is one, an avatar URL.\n- **Typical use**: fill an assignee picker in your application before assigning a conversation.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "inbox",
                    "conversations",
                    "assignable-users"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "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": "3b82f3bd-aaed-5445-a0d3-c1a02c6b3148",
                  "name": "The assignable users.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        "assignable-users"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 4521,\n    \"fullName\": \"Anna Bianchi\",\n    \"profilePicture\": \"https://cdn.example.com/users/4521/avatar.png\"\n  },\n  {\n    \"id\": 4521,\n    \"fullName\": \"Anna Bianchi\",\n    \"profilePicture\": \"https://cdn.example.com/users/4521/avatar.png\"\n  }\n]",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "3d511716-dce5-508a-a5bc-eba8c903744a",
                  "name": "The API key is missing, invalid, or lacks the `INBOX` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        "assignable-users"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "4a287856-f285-5edb-a737-86ce784b9404",
                  "name": "The user-profile service is temporarily unavailable. Retry after a short delay.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        "assignable-users"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "b0c7c705-ec30-50d3-a55a-941d32c32941",
              "name": "Assign a conversation to a team member",
              "request": {
                "name": "Assign a conversation to a team member",
                "description": {
                  "content": "Assigns a conversation to a user of your company, who becomes its owner.\n\n- **One assignee at most**: the call replaces any existing assignment. To remove the assignee without replacing it, use `DELETE /inbox/conversations/{chatId}/assignee`.\n- **Same company only**: the user must belong to your company. `GET /inbox/conversations/assignable-users` lists the valid IDs.\n- **No notification is sent to the assignee.** Notifications about new inbound messages go to every user of your company, whether or not the conversation is assigned. The exception is a conversation handled by a chatbot, where they start only once it has an assignee.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "inbox",
                    "conversations",
                    ":chatId",
                    "assignee"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "98765",
                      "key": "chatId",
                      "description": "(Required) ID of the conversation."
                    }
                  ]
                },
                "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  \"userId\": 4521\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "43aee07a-fa4d-5fb9-a142-f1a830370ac4",
                  "name": "Conversation assigned. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "assignee"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"userId\": 4521\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "No Content",
                  "code": 204,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "e237e10f-0331-52d6-a1de-efa1c66bf7bb",
                  "name": "The body is missing or `userId` is null.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "assignee"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"userId\": 4521\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "c228fa99-d554-55b4-a20b-48e7a21fdddc",
                  "name": "The API key is missing, invalid, or lacks the `INBOX` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "assignee"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"userId\": 4521\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "7bc6caa6-4e8e-53bc-a552-b834902c64c3",
                  "name": "The conversation or the user does not exist in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "assignee"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"userId\": 4521\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "6d2281f8-a926-5299-a7a0-f7ee45eab535",
                  "name": "The user-profile service, used to check the user, is temporarily unavailable. Retry after a short delay.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "assignee"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"userId\": 4521\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "95c95c9f-555e-5deb-a952-f36b9c5edffc",
              "name": "Remove the assignee from a conversation",
              "request": {
                "name": "Remove the assignee from a conversation",
                "description": {
                  "content": "Removes the assignee of a conversation, leaving it unassigned.\n\n- **Only the assignment changes**: the conversation stays active and keeps appearing in the inbox.\n- **Idempotent**: on a conversation without an assignee it still answers `204`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "inbox",
                    "conversations",
                    ":chatId",
                    "assignee"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "98765",
                      "key": "chatId",
                      "description": "(Required) ID of the conversation."
                    }
                  ]
                },
                "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": "96f9a01f-d6dc-5a88-a911-57c842b48b75",
                  "name": "Assignee removed. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "assignee"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "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": "b6eae9e3-0038-544c-aa8c-6fa721e11d8b",
                  "name": "The API key is missing, invalid, or lacks the `INBOX` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "assignee"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "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": "5f674301-9086-5a82-af7a-1220665144c5",
                  "name": "No conversation with this ID in your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "inbox",
                        "conversations",
                        ":chatId",
                        "assignee"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "98765",
                          "key": "chatId",
                          "description": "(Required) ID of the conversation."
                        }
                      ]
                    },
                    "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": "3015c243-6222-56bc-a2ff-e3fa3c0d7311",
          "name": "Media",
          "item": [
            {
              "id": "52b16491-d12e-55b6-ac5a-3980a71fa8cd",
              "name": "Upload a media file",
              "request": {
                "name": "Upload a media file",
                "description": {
                  "content": "Uploads a file to your media library and returns the new media item.\n\n- **How to send it**: as `multipart/form-data`, with the binary file in the `file` part. You can add a `name`, a `description` and a `folderId`: without `folderId`, or with `-1`, the file goes in the root of the library.\n- **Any file type is accepted**: its `type` (`IMAGE`, `VIDEO`, `AUDIO`, `DOCUMENT` or `FILE`) is detected from the file content.\n- **Size limit**: the whole request, the file together with the other form fields, may be at most 10240 KiB (about 10 MB). A larger request is refused with `413`.\n- **Large images are scaled down**: an image wider than 2560 or taller than 1440 pixels is scaled to fit within 2560x1440, keeping its aspect ratio, and re-encoded as JPEG. It loses any transparency and animation, while its `name` and `mimeType` keep the original type. Smaller images and all other files are stored as uploaded.\n- **Channel limits are not checked here**: each channel applies its own format and size limits when you send the file.\n- **Storage**: the file counts against the media storage of your subscription plan.\n\nThe response is an array holding the new media item. Store its `id`: it is what you use to attach the file to an outbound message, such as an RCS rich card or a WhatsApp media message, or to the content of a campaign.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "media"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "multipart/form-data"
                  },
                  {
                    "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": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "description": "(Required) The file to upload."
                    },
                    {
                      "key": "name",
                      "value": "string",
                      "type": "text",
                      "description": "Name of the media item in the library."
                    },
                    {
                      "key": "description",
                      "value": "string",
                      "type": "text",
                      "description": "Description of the media item."
                    },
                    {
                      "key": "folderId",
                      "value": "7217",
                      "type": "text",
                      "description": "ID of the folder the file goes in. Leave it out, or send `-1`, for the root of the library."
                    }
                  ]
                }
              },
              "response": [
                {
                  "id": "71748ea3-ab22-5735-a4bc-d597a16b0332",
                  "name": "Media uploaded. The response is an array holding the new media item.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "(Required) The file to upload.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Name of the media item in the library.",
                            "type": "text/plain"
                          },
                          "key": "name",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Description of the media item.",
                            "type": "text/plain"
                          },
                          "key": "description",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "ID of the folder the file goes in. Leave it out, or send `-1`, for the root of the library.",
                            "type": "text/plain"
                          },
                          "key": "folderId",
                          "value": "7217",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Created",
                  "code": 201,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 100,\n    \"key\": \"string\",\n    \"thumbnailKey\": \"string\",\n    \"companyId\": 7481,\n    \"userId\": 1994,\n    \"name\": \"promo-banner\",\n    \"description\": \"string\",\n    \"filename\": \"banner.jpg\",\n    \"size\": 524288,\n    \"type\": \"IMAGE\",\n    \"mimeType\": \"image/jpeg\",\n    \"source\": 1153,\n    \"metadata\": {\n      \"key_0\": {},\n      \"key_1\": {},\n      \"key_2\": {},\n      \"key_3\": {}\n    },\n    \"folderId\": 4440,\n    \"userEmail\": \"string\",\n    \"userFirstName\": \"string\",\n    \"userMiddleName\": \"string\",\n    \"userLastName\": \"string\",\n    \"url\": \"string\",\n    \"thumbnailUrl\": \"string\",\n    \"cdnUrl\": \"string\",\n    \"cdnThumbnailUrl\": \"string\",\n    \"public\": true,\n    \"creationDate\": \"2022-03-10T12:15:50-04:00\",\n    \"lastUpdateDate\": \"2022-03-10T12:15:50-04:00\"\n  },\n  {\n    \"id\": 100,\n    \"key\": \"string\",\n    \"thumbnailKey\": \"string\",\n    \"companyId\": 9056,\n    \"userId\": 2307,\n    \"name\": \"promo-banner\",\n    \"description\": \"string\",\n    \"filename\": \"banner.jpg\",\n    \"size\": 524288,\n    \"type\": \"IMAGE\",\n    \"mimeType\": \"image/jpeg\",\n    \"source\": 5115,\n    \"metadata\": {\n      \"key_0\": {}\n    },\n    \"folderId\": 7198,\n    \"userEmail\": \"string\",\n    \"userFirstName\": \"string\",\n    \"userMiddleName\": \"string\",\n    \"userLastName\": \"string\",\n    \"url\": \"string\",\n    \"thumbnailUrl\": \"string\",\n    \"cdnUrl\": \"string\",\n    \"cdnThumbnailUrl\": \"string\",\n    \"public\": true,\n    \"creationDate\": \"2022-03-10T12:15:50-04:00\",\n    \"lastUpdateDate\": \"2022-03-10T12:15:50-04:00\"\n  }\n]",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "3d23aa2b-1fac-568b-a301-3e786f809c02",
                  "name": "The request is malformed, the `file` part is missing, the file is empty, or the folder is read-only.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "(Required) The file to upload.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Name of the media item in the library.",
                            "type": "text/plain"
                          },
                          "key": "name",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Description of the media item.",
                            "type": "text/plain"
                          },
                          "key": "description",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "ID of the folder the file goes in. Leave it out, or send `-1`, for the root of the library.",
                            "type": "text/plain"
                          },
                          "key": "folderId",
                          "value": "7217",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "3f0225cf-35b7-5725-a9b4-e852fc1a8b2d",
                  "name": "The API key is missing, invalid, or lacks the `MEDIA` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "(Required) The file to upload.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Name of the media item in the library.",
                            "type": "text/plain"
                          },
                          "key": "name",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Description of the media item.",
                            "type": "text/plain"
                          },
                          "key": "description",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "ID of the folder the file goes in. Leave it out, or send `-1`, for the root of the library.",
                            "type": "text/plain"
                          },
                          "key": "folderId",
                          "value": "7217",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "fdb662e4-dd18-5da2-acc1-c6b426b8e90e",
                  "name": "`folderId` is not one of your folders, or your company has no active subscription.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "(Required) The file to upload.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Name of the media item in the library.",
                            "type": "text/plain"
                          },
                          "key": "name",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Description of the media item.",
                            "type": "text/plain"
                          },
                          "key": "description",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "ID of the folder the file goes in. Leave it out, or send `-1`, for the root of the library.",
                            "type": "text/plain"
                          },
                          "key": "folderId",
                          "value": "7217",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "f5f85d23-6e61-5f55-ae06-32eb131803c4",
                  "name": "The request is larger than 10240 KiB.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "(Required) The file to upload.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Name of the media item in the library.",
                            "type": "text/plain"
                          },
                          "key": "name",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Description of the media item.",
                            "type": "text/plain"
                          },
                          "key": "description",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "ID of the folder the file goes in. Leave it out, or send `-1`, for the root of the library.",
                            "type": "text/plain"
                          },
                          "key": "folderId",
                          "value": "7217",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Request Entity Too Large",
                  "code": 413,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "9ac450ee-f026-5626-ad2d-441284711c18",
                  "name": "The file would take your company past the media storage of its subscription plan.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "(Required) The file to upload.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Name of the media item in the library.",
                            "type": "text/plain"
                          },
                          "key": "name",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Description of the media item.",
                            "type": "text/plain"
                          },
                          "key": "description",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "ID of the folder the file goes in. Leave it out, or send `-1`, for the root of the library.",
                            "type": "text/plain"
                          },
                          "key": "folderId",
                          "value": "7217",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Too Many Requests",
                  "code": 429,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "8a4e920f-6db0-536d-a1a5-feba789a8f76",
                  "name": "The media storage service, or the subscription service it checks the storage with, is unavailable. Retry after a short delay.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "(Required) The file to upload.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Name of the media item in the library.",
                            "type": "text/plain"
                          },
                          "key": "name",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Description of the media item.",
                            "type": "text/plain"
                          },
                          "key": "description",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "ID of the folder the file goes in. Leave it out, or send `-1`, for the root of the library.",
                            "type": "text/plain"
                          },
                          "key": "folderId",
                          "value": "7217",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "eda49d28-fd8a-504f-aea4-c3764fb98c22",
                  "name": "The media storage service, or the subscription service it checks the storage with, did not answer in time. Retry after a short delay.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": {
                            "content": "(Required) The file to upload.",
                            "type": "text/plain"
                          },
                          "key": "file",
                          "type": "file"
                        },
                        {
                          "description": {
                            "content": "Name of the media item in the library.",
                            "type": "text/plain"
                          },
                          "key": "name",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "Description of the media item.",
                            "type": "text/plain"
                          },
                          "key": "description",
                          "value": "string",
                          "type": "text"
                        },
                        {
                          "description": {
                            "content": "ID of the folder the file goes in. Leave it out, or send `-1`, for the root of the library.",
                            "type": "text/plain"
                          },
                          "key": "folderId",
                          "value": "7217",
                          "type": "text"
                        }
                      ]
                    }
                  },
                  "status": "Gateway Timeout",
                  "code": 504,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "942e5f98-160d-51f6-a0d8-813ea888e2bc",
              "name": "List company media",
              "request": {
                "name": "List company media",
                "description": {
                  "content": "Returns the files of your media library, one page at a time.\n\n- **Each entry** carries the file ID, name, type, MIME type, size and a URL to preview or download the file.\n- **Type**: detected from the file content at upload, one of `IMAGE`, `VIDEO`, `AUDIO`, `DOCUMENT` or `FILE`.\n- **Using a file**: the `id` of an entry is what you reference when you attach the file to a message, such as an RCS card or a WhatsApp media message, or to the content of a campaign.\n- **Pagination and sorting**: `page` is 0-based, `limit` goes from 1 to 1000 (default 10), `sortBy` takes a field such as `id` or `name`, and `sortOrder` is `asc` or `desc`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "media"
                  ],
                  "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."
                    },
                    {
                      "disabled": false,
                      "key": "sortBy",
                      "value": "string",
                      "description": "Field to sort by. Defaults to `id`."
                    },
                    {
                      "disabled": false,
                      "key": "sortOrder",
                      "value": "string",
                      "description": "Sort order: `asc` or `desc`. Defaults to `asc`."
                    }
                  ],
                  "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": "7441d830-49ba-597b-a808-0cb2422eef5b",
                  "name": "One page of media items.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "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      \"id\": 100,\n      \"key\": \"string\",\n      \"thumbnailKey\": \"string\",\n      \"companyId\": 2815,\n      \"userId\": 6021,\n      \"name\": \"promo-banner\",\n      \"description\": \"string\",\n      \"filename\": \"banner.jpg\",\n      \"size\": 524288,\n      \"type\": \"IMAGE\",\n      \"mimeType\": \"image/jpeg\",\n      \"source\": 8066,\n      \"metadata\": {\n        \"key_0\": {},\n        \"key_1\": {},\n        \"key_2\": {}\n      },\n      \"folderId\": 2868,\n      \"userEmail\": \"string\",\n      \"userFirstName\": \"string\",\n      \"userMiddleName\": \"string\",\n      \"userLastName\": \"string\",\n      \"url\": \"string\",\n      \"thumbnailUrl\": \"string\",\n      \"cdnUrl\": \"string\",\n      \"cdnThumbnailUrl\": \"string\",\n      \"public\": false,\n      \"creationDate\": \"2022-03-10T12:15:50-04:00\",\n      \"lastUpdateDate\": \"2022-03-10T12:15:50-04:00\"\n    },\n    {\n      \"id\": 100,\n      \"key\": \"string\",\n      \"thumbnailKey\": \"string\",\n      \"companyId\": 7785,\n      \"userId\": 1635,\n      \"name\": \"promo-banner\",\n      \"description\": \"string\",\n      \"filename\": \"banner.jpg\",\n      \"size\": 524288,\n      \"type\": \"IMAGE\",\n      \"mimeType\": \"image/jpeg\",\n      \"source\": 9643,\n      \"metadata\": {\n        \"key_0\": {},\n        \"key_1\": {}\n      },\n      \"folderId\": 6730,\n      \"userEmail\": \"string\",\n      \"userFirstName\": \"string\",\n      \"userMiddleName\": \"string\",\n      \"userLastName\": \"string\",\n      \"url\": \"string\",\n      \"thumbnailUrl\": \"string\",\n      \"cdnUrl\": \"string\",\n      \"cdnThumbnailUrl\": \"string\",\n      \"public\": true,\n      \"creationDate\": \"2022-03-10T12:15:50-04:00\",\n      \"lastUpdateDate\": \"2022-03-10T12:15:50-04:00\"\n    }\n  ],\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalCount\": 42,\n  \"totalPages\": 5\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "4e9272a1-5153-5484-afbc-0ab7f2b1289c",
                  "name": "The API key is missing, invalid, or lacks the `MEDIA` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "809"
                        },
                        {
                          "key": "page",
                          "value": "314"
                        },
                        {
                          "key": "sortBy",
                          "value": "string"
                        },
                        {
                          "key": "sortOrder",
                          "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": "1144263a-f4de-5281-ad82-fe9c67b9b346",
              "name": "Get a media item",
              "request": {
                "name": "Get a media item",
                "description": {
                  "content": "Returns the metadata of one media file and the URL to reach it.\n\n- **In the response**: file name, MIME type, size in bytes, creation date and a URL to download or preview the file.\n- **Typical use**: check a media item before you reference it in a message or a campaign.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "media",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "id",
                      "description": "(Required) ID of the media item."
                    }
                  ]
                },
                "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": "df738e1a-3258-5247-a3ab-f48e3b6af593",
                  "name": "The media item.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the media item."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 100,\n  \"key\": \"string\",\n  \"thumbnailKey\": \"string\",\n  \"companyId\": 7752,\n  \"userId\": 5401,\n  \"name\": \"promo-banner\",\n  \"description\": \"string\",\n  \"filename\": \"banner.jpg\",\n  \"size\": 524288,\n  \"type\": \"IMAGE\",\n  \"mimeType\": \"image/jpeg\",\n  \"source\": 2598,\n  \"metadata\": {\n    \"key_0\": {},\n    \"key_1\": {}\n  },\n  \"folderId\": 1630,\n  \"userEmail\": \"string\",\n  \"userFirstName\": \"string\",\n  \"userMiddleName\": \"string\",\n  \"userLastName\": \"string\",\n  \"url\": \"string\",\n  \"thumbnailUrl\": \"string\",\n  \"cdnUrl\": \"string\",\n  \"cdnThumbnailUrl\": \"string\",\n  \"public\": true,\n  \"creationDate\": \"2022-03-10T12:15:50-04:00\",\n  \"lastUpdateDate\": \"2022-03-10T12:15:50-04:00\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "b8651b22-b48e-5c0d-ac41-687d2a3e03aa",
                  "name": "The API key is missing, invalid, or lacks the `MEDIA` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the media item."
                        }
                      ]
                    },
                    "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": "17b51984-2700-54a9-ab3f-5fb59a1b5f89",
                  "name": "No media file with this ID in your library.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the media item."
                        }
                      ]
                    },
                    "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": "f92b786d-f395-5cf6-a315-356b58bd7b32",
              "name": "Delete a media item",
              "request": {
                "name": "Delete a media item",
                "description": {
                  "content": "Deletes a media file from your library, permanently. This cannot be undone.\n\n- **Messages already sent are not affected**: the content was delivered when they were sent.\n- **Future sends break**: a message or campaign that references the deleted media ID can no longer resolve the file.\n- **When the delete is refused**: with `409` if the media is public or still referenced by a social media post, with `400` if it is still being uploaded or sits in a read-only folder.\n\n> **Check before you delete.** Make sure that no scheduled campaign, and no message template still to be sent, references the media ID.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "media",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "5145",
                      "key": "id",
                      "description": "(Required) ID of the media item."
                    }
                  ]
                },
                "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": "584d5f52-6434-50d2-a1b0-373994d03eeb",
                  "name": "Media deleted. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the media item."
                        }
                      ]
                    },
                    "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": "ca7cff40-8889-53bc-a62a-31e04bb74c18",
                  "name": "The media is still being uploaded or sits in a read-only folder.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the media item."
                        }
                      ]
                    },
                    "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": "5b196b7e-2a81-5e80-a3da-5d32f609c182",
                  "name": "The API key is missing, invalid, or lacks the `MEDIA` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the media item."
                        }
                      ]
                    },
                    "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": "310512e9-5cce-5af1-a021-7c6b3c7cbccf",
                  "name": "No media file with this ID in your library.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the media item."
                        }
                      ]
                    },
                    "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"
                },
                {
                  "id": "800700f0-138b-5e15-a77b-593622b0d047",
                  "name": "The media is public or still referenced by a social media post.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "media",
                        ":id"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "5145",
                          "key": "id",
                          "description": "(Required) ID of the media item."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "body": {}
                  },
                  "status": "Conflict",
                  "code": 409,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "24afe06e-0737-5e28-ace2-9d596a869dbb",
              "name": "Download media file",
              "request": {
                "name": "Download media file",
                "description": {
                  "content": "Returns a pre-signed (temporary) URL to download a media file received in an inbound message.\n\n**Flow:**\n1. Receive an inbound callback with `mediaKey`\n2. Call this endpoint with the received `mediaKey`\n3. From the response, use the `url` field to download the file\n",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "files",
                    ":mediaKey"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "disabled": false,
                      "key": "expireMinutes",
                      "value": "60",
                      "description": "Pre-signed URL validity duration in minutes (1–360: values outside the range are brought back into it)"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93",
                      "key": "mediaKey",
                      "description": "(Required) Media file key (received in the inbound callback)"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "auth": null
              },
              "response": [
                {
                  "id": "01436f16-57f5-509c-af8b-39944c74c6d7",
                  "name": "Pre-signed URL for download",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "files",
                        ":mediaKey"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "expireMinutes",
                          "value": "60"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93",
                          "key": "mediaKey",
                          "description": "(Required) Media file key (received in the inbound callback)"
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"key\": \"4d8f5607/830b788d/9c106b57985ab66cf5c96ca1e9cc95b8\",\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}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "78f93f62-c089-5ef8-aabe-a1fcc69cc3c7",
                  "name": "Missing or invalid credentials. The body is empty.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "files",
                        ":mediaKey"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "expireMinutes",
                          "value": "60"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93",
                          "key": "mediaKey",
                          "description": "(Required) Media file key (received in the inbound callback)"
                        }
                      ]
                    },
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "text/plain"
                    }
                  ],
                  "body": "",
                  "cookie": [],
                  "_postman_previewlanguage": "text"
                },
                {
                  "id": "47d8f751-5d2e-5a59-ac5d-a9b7efbce583",
                  "name": "File not found",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "files",
                        ":mediaKey"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "expireMinutes",
                          "value": "60"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93",
                          "key": "mediaKey",
                          "description": "(Required) Media file key (received in the inbound callback)"
                        }
                      ]
                    },
                    "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\": \"Media with key 'b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93' not found\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "d99e5d16-962f-5667-a3f1-fd8d1933b12f",
                  "name": "Too many requests: your account exceeded its limit of requests per second, set by your subscription plan. The body is empty: wait one second, as `Retry-After` says, and retry.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "files",
                        ":mediaKey"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [
                        {
                          "key": "expireMinutes",
                          "value": "60"
                        }
                      ],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93",
                          "key": "mediaKey",
                          "description": "(Required) Media file key (received in the inbound callback)"
                        }
                      ]
                    },
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Too Many Requests",
                  "code": 429,
                  "header": [
                    {
                      "disabled": false,
                      "description": "Seconds to wait before retrying: always `1`",
                      "key": "Retry-After",
                      "value": "1"
                    },
                    {
                      "key": "Content-Type",
                      "value": "text/plain"
                    }
                  ],
                  "body": "",
                  "cookie": [],
                  "_postman_previewlanguage": "text"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            }
          ]
        },
        {
          "id": "54e754d4-4cfd-5595-a3a9-894e05335a23",
          "name": "Social profiles",
          "item": [
            {
              "id": "f172a518-3b7d-590a-ad57-3f91203ea066",
              "name": "List connected social profiles",
              "request": {
                "name": "List connected social profiles",
                "description": {
                  "content": "Returns the social media profiles connected to your account.\n\n- **What a profile is**: an authenticated connection to an external platform, such as Facebook, Instagram, LinkedIn, Google Business Profile, TikTok or YouTube. Profiles are connected from the web dashboard, through the OAuth flow of the platform: this API cannot connect them.\n- **Each entry** carries the platform, username, profile name, profile picture URL, connection date, a `disconnected` flag and the number of linked pages or sub-accounts (`pageCount`).\n- **`platform` is not a closed list**: it is the code the connection is stored under. Besides `facebook`, `instagram`, `linkedin`, `google`, `tiktok` and `youtube` it can be a calendar connection such as `google_calendar` or `gcal_booking`, so accept values you do not know.\n- **Pages only**: when only pages or sub-accounts are connected (for example a YouTube channel), `username`, `profileName`, `profilePicture`, `connectionDate` and `disconnected` are null and `pageCount` counts the pages.\n- **`disconnected` true**: the OAuth token has expired or been revoked. Connect the profile again from the web dashboard.\n\nFor the pages and sub-accounts of a platform, call `GET /socials/{platform}` with the `platform` of an entry.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "socials"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "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": "c1b722eb-b5cf-5d9f-ae05-dd1757d7b1d4",
                  "name": "The connected social profiles.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"platform\": \"facebook\",\n    \"username\": \"string\",\n    \"profileName\": \"string\",\n    \"profilePicture\": \"string\",\n    \"connectionDate\": \"string\",\n    \"disconnected\": true,\n    \"pageCount\": 4699\n  },\n  {\n    \"platform\": \"facebook\",\n    \"username\": \"string\",\n    \"profileName\": \"string\",\n    \"profilePicture\": \"string\",\n    \"connectionDate\": \"string\",\n    \"disconnected\": true,\n    \"pageCount\": 7714\n  }\n]",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "484393f6-d94d-569f-a38a-0b46182be88a",
                  "name": "The API key is missing, invalid, or lacks the `SOCIALS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "ef3f436f-4e68-5837-a894-823a16bd1821",
                  "name": "The profile service failed or did not answer in time. Retry with backoff.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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"
                },
                {
                  "id": "19bbbc12-60a5-58fe-ade1-54d0c2d1930d",
                  "name": "The profile service is unavailable. Retry with backoff.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "40b3df23-0e0f-5d69-ae1d-4fe76df26783",
                  "name": "The profile service is unavailable. Retry with backoff.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "b8d3f17f-5773-5c26-ada7-8110ceeac5e6",
                  "name": "The profile service did not answer in time. Retry with backoff.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Gateway Timeout",
                  "code": 504,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "0b18ddba-c2ca-5eca-a86f-5f2457293e2a",
              "name": "Get social profile detail",
              "request": {
                "name": "Get social profile detail",
                "description": {
                  "content": "Returns one connected social platform in full, with all its linked pages or sub-accounts, such as the Facebook Pages managed by the connected Facebook profile.\n\n- **`platform`** is the `platform` value of an entry of `GET /socials`, matched case-insensitively: for example `facebook`, `instagram`, `linkedin`, `google` (Google Business Profile), `tiktok`, `youtube`, or a calendar connection such as `google_calendar` or `gcal_booking`.\n- **Profile**: username, profile name, picture, website, biography, link count, connection date and `disconnected` flag.\n- **`pages`**: for each page, its ID, name, profile picture, username, website, biography, link count, connection and expiration dates and a `disconnected` flag.\n- **Pages only**: when only pages or sub-accounts are connected (for example a YouTube channel), the profile fields are null and the connection is described by `pages` alone.\n\nUse it to list the pages or sub-accounts of a connection, for example to choose the Facebook Page to publish to.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "socials",
                    ":platform"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "facebook",
                      "key": "platform",
                      "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                    }
                  ]
                },
                "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": "da33ac52-1a36-5e62-add7-ade9395a947f",
                  "name": "The social profile, with its pages.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials",
                        ":platform"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "facebook",
                          "key": "platform",
                          "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"platform\": \"facebook\",\n  \"username\": \"string\",\n  \"profileName\": \"string\",\n  \"profilePicture\": \"string\",\n  \"website\": \"string\",\n  \"biography\": \"string\",\n  \"linksCount\": 7513,\n  \"connectionDate\": \"string\",\n  \"disconnected\": true,\n  \"pages\": [\n    {\n      \"pageId\": \"string\",\n      \"pageName\": \"string\",\n      \"profilePicture\": \"string\",\n      \"username\": \"string\",\n      \"website\": \"string\",\n      \"biography\": \"string\",\n      \"linksCount\": 8222,\n      \"connectionDate\": \"string\",\n      \"expireDate\": \"string\",\n      \"disconnected\": false\n    },\n    {\n      \"pageId\": \"string\",\n      \"pageName\": \"string\",\n      \"profilePicture\": \"string\",\n      \"username\": \"string\",\n      \"website\": \"string\",\n      \"biography\": \"string\",\n      \"linksCount\": 2166,\n      \"connectionDate\": \"string\",\n      \"expireDate\": \"string\",\n      \"disconnected\": false\n    }\n  ]\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "bac8265d-45cd-59f2-a248-3fd8bdf17c42",
                  "name": "The API key is missing, invalid, or lacks the `SOCIALS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials",
                        ":platform"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "facebook",
                          "key": "platform",
                          "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                        }
                      ]
                    },
                    "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": "a24490ea-a510-55a3-a548-173516ed0832",
                  "name": "No connected profile for this platform: it was never connected, or it has been removed.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials",
                        ":platform"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "facebook",
                          "key": "platform",
                          "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                        }
                      ]
                    },
                    "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": "d576822a-a67b-549a-ada8-bf47027cb55f",
                  "name": "The profile service failed or did not answer in time. Retry with backoff.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials",
                        ":platform"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "facebook",
                          "key": "platform",
                          "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                        }
                      ]
                    },
                    "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"
                },
                {
                  "id": "844a4644-79c6-5f0c-ac7e-73cce5ec1018",
                  "name": "The profile service is unavailable. Retry with backoff.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials",
                        ":platform"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "facebook",
                          "key": "platform",
                          "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "09d42b0f-40d2-56d8-afef-a23ee2df0aa7",
                  "name": "The profile service is unavailable. Retry with backoff.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials",
                        ":platform"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "facebook",
                          "key": "platform",
                          "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "3d85ba95-d520-5b00-a1e0-8da07119e29b",
                  "name": "The profile service did not answer in time. Retry with backoff.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "socials",
                        ":platform"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": [
                        {
                          "disabled": false,
                          "type": "any",
                          "value": "facebook",
                          "key": "platform",
                          "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                        }
                      ]
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Gateway Timeout",
                  "code": 504,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            }
          ]
        },
        {
          "id": "28464aa3-f8c8-5aff-ad4f-ecc237cccbd6",
          "name": "Subscription",
          "item": [
            {
              "id": "6d3cb03f-a9d6-53e9-aaea-955a8c5e960d",
              "name": "Get active subscription",
              "request": {
                "name": "Get active subscription",
                "description": {
                  "content": "Returns the subscription plan currently active for your account.\n\n- **Plan**: `planCode` (such as `monthly_pro` or `annual_business`) and `status`, which is `active` for the subscription in force.\n- **Billing period**: `billingPeriodStart` and `billingPeriodEnd` bound the current invoicing cycle. At its end the plan renews, unless it has been canceled.\n- **Usage counters**: `nextRenew` is their next reset. On an annual plan it comes every month, well before `billingPeriodEnd`.\n- **Cancellation**: if `canceled` is true while `status` is still `active`, the plan stays usable until the end of the current billing period and then does not renew. `nextPlan`, when set, is the plan that takes over.\n\nUse it to check your plan before calling features that depend on the plan level, or to show the subscription in your own dashboard.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "subscription"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "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": "1347c665-b17e-5dee-a66c-315e17b1037b",
                  "name": "The active subscription.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "subscription"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"planCode\": \"annual_business\",\n  \"status\": \"active\",\n  \"billingPeriodStart\": \"2026-10-02T16:12:17+02:00\",\n  \"billingPeriodEnd\": \"2027-10-02T01:59:59+02:00\",\n  \"nextRenew\": \"2026-11-01T23:00:00Z\",\n  \"canceled\": false,\n  \"nextPlan\": null\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "454eacda-0449-58a8-a583-d5459e5df809",
                  "name": "The API key is missing, invalid, or lacks the `SUBSCRIPTION` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "subscription"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "09305852-feca-5997-ad57-9f2c43f131d9",
                  "name": "No active subscription for your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "subscription"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "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": "bfd7be2b-1f1d-5d13-aab1-224f4e54deb8",
                  "name": "The subscription service is temporarily unavailable.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "subscription"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "10974bac-f276-53af-afef-1a14b5101e12",
              "name": "Get credit balance",
              "request": {
                "name": "Get credit balance",
                "description": {
                  "content": "Returns the credit balance of your account as three values, all expressed in credits. Credit is what pays for message sending and the other billable operations of the platform.\n\n- **`credit`**: your total balance, frozen credit included.\n- **`frozenCredit`**: credit reserved for operations still in progress, such as scheduled campaigns queued but not yet fully delivered. It cannot be spent until those operations complete or are canceled.\n- **`availableCredit`**: what you can spend right now, that is `credit` minus `frozenCredit`.\n- **No credits yet**: all three values are 0.\n\nCheck it before a large campaign: if the available credit does not cover the cost, the campaign or the send can be refused. Top up from the billing dashboard or through your account manager.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "subscription",
                    "credit"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "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": "e09d1713-a7b3-5cdf-ad3c-80c2d414d09e",
                  "name": "The credit balance of your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "subscription",
                        "credit"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"credit\": 50000,\n  \"frozenCredit\": 5000,\n  \"availableCredit\": 45000\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "33f727a6-dcce-5e0d-aa20-37154d706420",
                  "name": "The API key is missing, invalid, or lacks the `SUBSCRIPTION` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "subscription",
                        "credit"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "563fc4ba-abda-5aca-af66-a32012af5719",
                  "name": "The wallet service is temporarily unavailable.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "subscription",
                        "credit"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            }
          ]
        },
        {
          "id": "5b37149f-dd17-5f08-a82f-d59e17a201a3",
          "name": "Webhooks",
          "item": [
            {
              "id": "4e00fa78-fade-5bed-a616-4f9a41a48a43",
              "name": "Configure delivery-status webhook",
              "request": {
                "name": "Configure delivery-status webhook",
                "description": {
                  "content": "Registers the HTTPS URL that receives your delivery-status events. One URL serves every channel.\n\n- **What produces events**: the messages sent through the SMS, RCS and WhatsApp send APIs, conversation replies included. Campaign messages produce no `DELIVERY` or `READ` event: follow a campaign with `GET /campaigns/{id}` and `GET /campaigns/stats`.\n- **One webhook per account**: if one is already configured, the call answers `409`. Change it with `PUT /webhooks/delivery-status` or remove it with `DELETE /webhooks/delivery-status`. A URL stored with notifications switched off on every channel does not count: this call replaces it.\n- **URL rules**: HTTPS on port 443 or 8443, no credentials, no fragment, and a host that resolves to public addresses only.\n- **Answer `2xx` within 5 seconds**. Otherwise the event is retried, up to 5 attempts in all, at least 5 minutes apart on SMS and at least 10 on RCS and WhatsApp, for messages sent in the last 10 days.\n\n> **Process events idempotently.** An event can arrive more than once.\n\n<details>\n<summary>Events and their fields</summary>\n\nEach event is a JSON object sent with `POST`: `eventType` says which kind it is. Fields without a value are left out.\n\n- **`DELIVERY`** (SMS, RCS, WhatsApp), when the delivery receipt arrives: `eventType`, `channel`, `messageId` (the `customerMessageId` of the send), `destination`, `eventDate`, `price`, `statusCode` and its `description`. An SMS event also carries `totalParts` and `numPart`: one event per message part.\n- **`READ`** (RCS, WhatsApp), when the recipient opens the message: `eventType`, `channel`, `messageId`, `destination`, `eventDate`.\n- **`INBOUND`** (RCS, WhatsApp), when the recipient writes to you: `eventType`, `channel`, `messageId` (the id of the message in the conversation), `source` (the recipient's number), `destination` (your WhatsApp number or RCS agent id), `receivedDate`, `messageType`, `text`, and `mediaKey` for media.\n\nA message still in flight (accepted on SMS, unknown on RCS and WhatsApp) has no receipt yet and produces no event.\n\n</details>\n\n<details>\n<summary>Status codes of a DELIVERY event</summary>\n\n| `statusCode` | `description` | Channels |\n|---|---|---|\n| `0` | unknown | All |\n| `2` | rejected | SMS |\n| `3` | delivered | All |\n| `4` | expired | SMS |\n| `5` | deleted | SMS |\n| `6` | undeliverable | SMS |\n| `9` | general error | RCS, WhatsApp |\n| `10` | disabled | RCS, WhatsApp |\n| `11` | unsupported | RCS, WhatsApp |\n| `12` | conversation closed | WhatsApp |\n\n- **`1` (accepted) is never sent**: an SMS event goes out only once its final receipt arrives.\n- **An RCS or WhatsApp message that expires produces no event**: its `EXPIRED` status shows only when you poll it, with `GET /messages/status`, `GET /rcs/messages/{messageId}`, `GET /whatsapp/messages/{messageId}` or `GET /messages/history`.\n- These are the codes of the Delivery Statuses table in the API overview, and the number the SMS platform's own delivery callback sends as `DELIVERY_STATUS`.\n\n</details>",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "webhooks",
                    "delivery-status"
                  ],
                  "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  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "1ce06e83-3dcb-50a8-a1ff-c7bce4cb889a",
                  "name": "Webhook configured.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Created",
                  "code": 201,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"companyId\": 1,\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "b8c385f1-3d38-55a5-af67-6a9868414503",
                  "name": "Invalid body: `callbackUrl` is missing or malformed, is not HTTPS, uses a port other than 443 or 8443, or its host is not publicly reachable.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "b63857e1-d059-501f-a3e3-6fa776eca74c",
                  "name": "The API key is missing, invalid, or lacks the `WEBHOOKS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "5a251aa6-dfe0-5fd5-a078-25154567da90",
                  "name": "A webhook is already configured. Change it with `PUT` or remove it with `DELETE`.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Conflict",
                  "code": 409,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "c1215809-09ea-5010-a810-6435a9269232",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "POST",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "e83d16a6-c293-59c8-add4-cf5ee071ae19",
              "name": "Get delivery-status webhook",
              "request": {
                "name": "Get delivery-status webhook",
                "description": {
                  "content": "Returns the HTTPS callback URL that receives the delivery-status events of your account. One URL serves every channel.\n\n- **What it receives**: an HTTP `POST` for every delivery-status event of a message sent through the SMS, RCS or WhatsApp send APIs, conversation replies included. Campaign messages produce no `DELIVERY` or `READ` event.\n- **Changed from the web dashboard**: a webhook with some channels switched off, or with SMS set to another callback format, is still returned. `PUT /webhooks/delivery-status` restores the events described on `POST /webhooks/delivery-status` on every channel.\n- **`404`**: no webhook has been configured yet, or the stored URL has notifications switched off on every channel and so receives no events. Set one up with `POST /webhooks/delivery-status`.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "webhooks",
                    "delivery-status"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "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": "2a19124a-aff0-53b3-a215-13c4ed7b9279",
                  "name": "The configured webhook.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "GET",
                    "body": {}
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"companyId\": 1,\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "6eeb4f89-68f2-5fdd-ac79-8a5cf98ab87e",
                  "name": "The API key is missing, invalid, or lacks the `WEBHOOKS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "9c30b79f-dfd0-5492-adcd-6a8809c380b5",
                  "name": "No webhook is configured, or its notifications are switched off on every channel.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "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": "ce039704-5ac9-5f16-a0f0-ddf787d9ae78",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "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": "814e0d0f-6352-52ba-ac11-67a08d2eae2e",
              "name": "Update delivery-status webhook",
              "request": {
                "name": "Update delivery-status webhook",
                "description": {
                  "content": "Replaces the callback URL of the delivery-status webhook. Use it when your endpoint changes: the next events go to the new URL at once.\n\n- **It also switches every channel back on**: notifications are enabled for SMS, RCS and WhatsApp in the JSON format described on `POST /webhooks/delivery-status`. A webhook whose channels were switched off, or whose SMS callbacks were set to another format, from the web dashboard sends every documented event again.\n- **URL rules**: the same as on creation. HTTPS on port 443 or 8443, no credentials, no fragment, and a host that resolves to a publicly reachable address.\n- **It does not create a webhook**: if none is configured the call answers `404`. Create one with `POST /webhooks/delivery-status`. As for `GET /webhooks/delivery-status`, a URL stored with notifications switched off on every channel does not count as configured.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "webhooks",
                    "delivery-status"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "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  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status-v2\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": [
                {
                  "id": "9dbc01b9-2e5d-58e8-a24c-79cc3875d920",
                  "name": "Webhook updated.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status-v2\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"companyId\": 1,\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status-v2\"\n}",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "8034f449-451d-5fa4-aaea-21da0fedc301",
                  "name": "Invalid body: `callbackUrl` is missing or malformed, is not HTTPS, uses a port other than 443 or 8443, or its host is not publicly reachable.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status-v2\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "0c631e04-8c42-5b48-acb5-790a42f6b117",
                  "name": "The API key is missing, invalid, or lacks the `WEBHOOKS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status-v2\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "88504c3f-d9df-5414-a390-87949f6477e5",
                  "name": "No webhook is configured. Create one with `POST /webhooks/delivery-status`.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status-v2\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                },
                {
                  "id": "10d946a8-6a75-5a4a-a619-7d0832ebca4c",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "PUT",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"callbackUrl\": \"https://your-server.example.com/webhooks/delivery-status-v2\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "\"\"",
                  "cookie": [],
                  "_postman_previewlanguage": "json"
                }
              ],
              "event": [],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              }
            },
            {
              "id": "9516ea45-a13b-57e3-afa5-f246bd129876",
              "name": "Revoke delivery-status webhook",
              "request": {
                "name": "Revoke delivery-status webhook",
                "description": {
                  "content": "Removes the delivery-status webhook, permanently. From then on no event is sent to the URL that was configured.\n\n- **Events already on their way** before the deletion can still reach the old URL. That is expected and is not an error.\n- **To receive events again**, create a new webhook with `POST /webhooks/delivery-status`.\n- **Switched-off webhooks too**: a URL stored with notifications switched off on every channel, which `GET /webhooks/delivery-status` does not report, is removed as well.",
                  "type": "text/plain"
                },
                "url": {
                  "path": [
                    "api",
                    "partner-gateway",
                    "webhooks",
                    "delivery-status"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "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": "cda9c053-d874-569b-acac-d0c47cd01c08",
                  "name": "Webhook removed. No response body.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "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": "64e5f012-497e-57c5-a6a0-f803bd8f51c7",
                  "name": "The API key is missing, invalid, or lacks the `WEBHOOKS` operation.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "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": "4e21c93a-b1e0-5f43-acee-308a2e0b5bb4",
                  "name": "No callback URL is stored for your account.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "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"
                },
                {
                  "id": "e3d72d82-1983-59ce-a25d-4e812235ff2c",
                  "name": "Unexpected server error.",
                  "originalRequest": {
                    "url": {
                      "path": [
                        "api",
                        "partner-gateway",
                        "webhooks",
                        "delivery-status"
                      ],
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "query": [],
                      "variable": []
                    },
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "method": "DELETE",
                    "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"
    }
  ]
}
