{
  "info": {
    "_postman_id": "3c919a2c-0c8c-5983-affe-b28e3226adad",
    "name": "Qlara API - RCS",
    "description": "The RCS section of API Reference in the Qlara documentation.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "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
          }
        }
      ]
    }
  ],
  "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"
    }
  ]
}
