{
  "item": [
    {
      "id": "7a843f15-775b-4e6f-9f26-257699122943",
      "name": "Phone Numbers",
      "description": {
        "content": "WhatsApp Business numbers associated with your account",
        "type": "text/plain"
      },
      "item": [
        {
          "id": "a6b1260d-2f3c-49f2-b410-e3ebd57d8243",
          "name": "List WhatsApp Business numbers",
          "request": {
            "name": "List WhatsApp Business numbers",
            "description": {
              "content": "Returns all WhatsApp Business numbers associated with your account with pagination.\nFrom the response, use the `id` field of the number as the `phoneNumberId` in send requests.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "message-server",
                "whatsapp",
                "phone-numbers"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "10",
                  "description": "Maximum number of items per page"
                },
                {
                  "disabled": false,
                  "key": "page",
                  "value": "0",
                  "description": "Page number (0-based)"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [
            {
              "id": "f8a2ebc6-5f48-45a1-8ec8-7a5c7f32fb1e",
              "name": "List of numbers",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "phone-numbers"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": [\n    {\n      \"id\": 5,\n      \"phoneNumber\": \"+393209998877\",\n      \"displayName\": \"My Business\",\n      \"onboardingScope\": \"RECEIVE_AND_SEND\"\n    }\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "a641c47b-c576-4088-926f-dad3a5c86159",
              "name": "Invalid or missing credentials",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "phone-numbers"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {}\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "799dccba-9ebc-4053-8287-d3677cf3800e",
          "name": "WhatsApp Business number details",
          "request": {
            "name": "WhatsApp Business number details",
            "description": {},
            "url": {
              "path": [
                "message-server",
                "whatsapp",
                "phone-numbers",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "8383",
                  "key": "id",
                  "description": "(Required) WhatsApp Business number ID"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [
            {
              "id": "37e06c85-c21f-42e4-98c0-d32ece33199a",
              "name": "Number details",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "phone-numbers",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "8383",
                      "key": "id",
                      "description": "(Required) WhatsApp Business number ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 5623,\n  \"phoneNumber\": \"string\",\n  \"displayName\": \"string\",\n  \"onboardingScope\": \"RECEIVE_AND_SEND\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "0d4d123d-ff95-4308-84a4-ac60211417ae",
              "name": "Resource not found",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "phone-numbers",
                    ":id"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "8383",
                      "key": "id",
                      "description": "(Required) WhatsApp Business number ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": \"Resource not found\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "id": "453de8d3-9783-4c06-aa5d-722ae12b599d",
      "name": "Templates",
      "description": {
        "content": "WhatsApp template management (CRUD)",
        "type": "text/plain"
      },
      "item": [
        {
          "id": "40765a93-df54-4aed-9c89-f0c73fe696ad",
          "name": "List WhatsApp templates",
          "request": {
            "name": "List WhatsApp templates",
            "description": {
              "content": "Returns templates with pagination and optional filters.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "message-server",
                "whatsapp",
                "templates"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "10",
                  "description": "Maximum number of items per page"
                },
                {
                  "disabled": false,
                  "key": "page",
                  "value": "0",
                  "description": "Page number (0-based)"
                },
                {
                  "disabled": false,
                  "key": "category",
                  "value": "UTILITY",
                  "description": "Filter by category"
                },
                {
                  "disabled": false,
                  "key": "status",
                  "value": "PENDING",
                  "description": "Filter by status"
                },
                {
                  "disabled": false,
                  "key": "phoneNumberId",
                  "value": "8383",
                  "description": "Filter by phone number"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [
            {
              "id": "460ec29a-a64b-458f-8005-ca690c8a1adc",
              "name": "List of templates",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "templates"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    },
                    {
                      "key": "category",
                      "value": "UTILITY"
                    },
                    {
                      "key": "status",
                      "value": "PENDING"
                    },
                    {
                      "key": "phoneNumberId",
                      "value": "8383"
                    }
                  ],
                  "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\": 6407,\n      \"name\": \"string\",\n      \"lang\": \"string\",\n      \"category\": \"MARKETING\",\n      \"status\": \"DISABLED\"\n    },\n    {\n      \"id\": 7035,\n      \"name\": \"string\",\n      \"lang\": \"string\",\n      \"category\": \"AUTHENTICATION\",\n      \"status\": \"REJECTED\"\n    }\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "aae7af5e-3b62-4889-a82d-441e8aaa6e44",
          "name": "Create WhatsApp template",
          "request": {
            "name": "Create WhatsApp template",
            "description": {
              "content": "Creates a new WhatsApp template. The template must be approved by Meta before it can be used for sending.\n\n**Supported variants:**\n- Simple text template\n- Template with buttons (URL, phone, quick reply)\n- Template with image/video/document header\n- Template with tracked links in the body\n- Template with tracked links in buttons\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "message-server",
                "whatsapp",
                "templates"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "phoneNumberId",
                  "value": "8383",
                  "description": "(Required) WhatsApp Business number ID to associate the template with"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": null,
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"marketing_Welcome\",\n  \"lang\": \"it\",\n  \"category\": \"MARKETING\",\n  \"headerText\": \"Welcome\",\n  \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n  \"footer\": \"Per info visita il sito\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "id": "0da20f2c-4a48-4899-8032-4010c580d3a1",
              "name": "Template created",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "templates"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "phoneNumberId",
                      "value": "8383"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"marketing_Welcome\",\n  \"lang\": \"it\",\n  \"category\": \"MARKETING\",\n  \"headerText\": \"Welcome\",\n  \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n  \"footer\": \"Per info visita il sito\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 7971,\n  \"name\": \"string\",\n  \"lang\": \"string\",\n  \"category\": \"AUTHENTICATION\",\n  \"status\": \"APPROVED\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "c04b30a3-7947-46b9-b3e5-4f51e5862502",
              "name": "Bad request",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "templates"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "phoneNumberId",
                      "value": "8383"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"marketing_Welcome\",\n  \"lang\": \"it\",\n  \"category\": \"MARKETING\",\n  \"headerText\": \"Welcome\",\n  \"body\": \"Ciao {firstName} siamo contentissimi di averti tra noi\",\n  \"footer\": \"Per info visita il sito\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {\n    \"destination\": \"'destination' can't be blank\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "1e88e875-d92e-4a8c-86aa-be7362ffe5a3",
          "name": "Template details",
          "request": {
            "name": "Template details",
            "description": {
              "content": "Returns the complete details of a template, including components (header, body, footer, buttons).",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "message-server",
                "whatsapp",
                "templates",
                ":templateId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "8383",
                  "key": "templateId",
                  "description": "(Required) Template ID"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [
            {
              "id": "952537ca-6a97-4366-94c3-bfab09ed6409",
              "name": "Template details",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "8383",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 7971,\n  \"name\": \"string\",\n  \"lang\": \"string\",\n  \"category\": \"AUTHENTICATION\",\n  \"status\": \"APPROVED\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "1fc8f5b8-c939-43fd-9b06-6e58cc1f7783",
              "name": "Resource not found",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "8383",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": \"Resource not found\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "cc6799c0-ff64-4473-95d8-879a00554bd5",
          "name": "Update template",
          "request": {
            "name": "Update template",
            "description": {
              "content": "Updates an existing template. Only the provided fields are modified.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "message-server",
                "whatsapp",
                "templates",
                ":templateId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "8383",
                  "key": "templateId",
                  "description": "(Required) Template ID"
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PATCH",
            "auth": null,
            "body": {
              "mode": "raw",
              "raw": "{\n  \"headerText\": \"Suuuper Welcome\",\n  \"body\": \"Ciao {firstName} siamo gasatissimi di averti tra noi\",\n  \"footer\": \"Sul nostro sito trovi tutte le info\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "id": "d60ef2a3-280f-4036-b3bf-12a952371e3e",
              "name": "Template updated",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "8383",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PATCH",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"headerText\": \"Suuuper Welcome\",\n  \"body\": \"Ciao {firstName} siamo gasatissimi di averti tra noi\",\n  \"footer\": \"Sul nostro sito trovi tutte le info\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 7971,\n  \"name\": \"string\",\n  \"lang\": \"string\",\n  \"category\": \"AUTHENTICATION\",\n  \"status\": \"APPROVED\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "c56ca9e2-81ce-4995-932f-d7d8fad52135",
              "name": "Resource not found",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "8383",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PATCH",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"headerText\": \"Suuuper Welcome\",\n  \"body\": \"Ciao {firstName} siamo gasatissimi di averti tra noi\",\n  \"footer\": \"Sul nostro sito trovi tutte le info\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": \"Resource not found\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "8feafa12-74bb-4596-b20e-dab227d757e9",
          "name": "Delete template",
          "request": {
            "name": "Delete template",
            "description": {},
            "url": {
              "path": [
                "message-server",
                "whatsapp",
                "templates",
                ":templateId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "8383",
                  "key": "templateId",
                  "description": "(Required) Template ID"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "auth": null
          },
          "response": [
            {
              "id": "89269c0e-23dc-452c-bd85-2384ca936f24",
              "name": "Template deleted",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "8383",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "method": "DELETE",
                "body": {}
              },
              "status": "No Content",
              "code": 204,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/plain"
                }
              ],
              "body": "",
              "cookie": [],
              "_postman_previewlanguage": "text"
            },
            {
              "id": "02a22303-1529-45e9-b11f-595af4ac298e",
              "name": "Resource not found",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "templates",
                    ":templateId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "8383",
                      "key": "templateId",
                      "description": "(Required) Template ID"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "DELETE",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": \"Resource not found\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "id": "2baf5992-cf25-41bc-9aad-972f811bba08",
      "name": "Send Messages",
      "description": {
        "content": "Send WhatsApp messages",
        "type": "text/plain"
      },
      "item": [
        {
          "id": "9c5447c0-823b-4f9f-9d6d-5f8d9d72abfe",
          "name": "Send WhatsApp message",
          "request": {
            "name": "Send WhatsApp message",
            "description": {
              "content": "Sends a WhatsApp message. The content can be:\n- A Meta-**approved template** (`template`)\n- A **free-form message** (`body`) — only within the 24h window from the user's last message\n\nThe `template` and `body` fields are **mutually exclusive**: one of the two is required.\n\n**Fallback:** If the message cannot be delivered via WhatsApp, fallback to RCS and/or SMS can be configured.\n\n**Tracked links:** For templates with tracked links, insert the `shortLinkT1` placeholder in the `placeholders` map with the actual destination URL.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "message-server",
                "whatsapp",
                "send"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": null,
            "body": {
              "mode": "raw",
              "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "id": "cbb59ca3-ef56-463d-8fa8-1ef5754adaee",
              "name": "Request processed. Check `results.whatsapp.accepted` to verify whether the message was accepted.\n\n**Note:** `accepted: true` means the message was accepted for sending, not that it was delivered. Delivery confirmation arrives via webhook.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"messageId\": \"e76614d1-4ac1-4d94-89f0-d07f1b5a190c\",\n  \"simulation\": false,\n  \"results\": {\n    \"whatsapp\": {\n      \"accepted\": true\n    },\n    \"rcs\": null,\n    \"sms\": null\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "44b7018a-0206-4f7a-9fa7-42449585843c",
              "name": "Bad request",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {\n    \"destination\": \"'destination' can't be blank\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "91a2a9d6-f8cf-4de0-b0d0-507f3d10b00d",
              "name": "Invalid or missing credentials",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {}\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "662c51b8-68a6-4625-98f8-b0263d0ed24b",
              "name": "IP not whitelisted or unauthorized resource",
              "originalRequest": {
                "url": {
                  "path": [
                    "message-server",
                    "whatsapp",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"destination\": \"+393401234567\",\n  \"phoneNumberId\": 5,\n  \"template\": {\n    \"id\": 42\n  },\n  \"enableNotification\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {}\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "id": "80676fdc-0e43-4cfc-92b0-d38003d6239d",
      "name": "Media",
      "description": {
        "content": "Download media files from inbound messages",
        "type": "text/plain"
      },
      "item": [
        {
          "id": "96394955-af9b-46df-a9d7-d97b14cfad9f",
          "name": "Download media file",
          "request": {
            "name": "Download media file",
            "description": {
              "content": "Returns a pre-signed (temporary) URL to download a media file received in an inbound message.\n\n**Flow:**\n1. Receive an inbound callback with `mediaKey`\n2. Call this endpoint with the received `mediaKey`\n3. From the response, use the `url` field to download the file\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "files",
                ":mediaKey"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "expireMinutes",
                  "value": "180",
                  "description": "Pre-signed URL validity duration in minutes"
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93",
                  "key": "mediaKey",
                  "description": "(Required) Media file key (received in the inbound callback)"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [
            {
              "id": "049faf2b-4524-47a9-9e10-f872eab5bd85",
              "name": "Pre-signed URL for download",
              "originalRequest": {
                "url": {
                  "path": [
                    "files",
                    ":mediaKey"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "expireMinutes",
                      "value": "180"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93",
                      "key": "mediaKey",
                      "description": "(Required) Media file key (received in the inbound callback)"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"key\": \"4d8f5607/830b788d/9c106b57985ab66cf5c96ca1e9cc95b8\",\n  \"url\": \"https://fs-lora-namespace-public.fsn1.your-objectstorage.com/4d8f5607/830b788d/9c106b57985ab66cf5c96ca1e9cc95b8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=10800&X-Amz-Signature=...\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "id": "970b0bed-02fb-46a0-8bce-8f0e14435eb9",
      "name": "Webhooks: Delivery & Inbound",
      "description": {
        "content": "HTTP POST callbacks sent by the system to your URL configured in the platform.\nThese are **not** endpoints to call, but describe the format of the data you will receive.\n",
        "type": "text/plain"
      },
      "item": [],
      "event": []
    }
  ],
  "event": [],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://lora-api.agiletelecom.com",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "YOUR_API_KEY",
      "type": "string"
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-Api-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "info": {
    "_postman_id": "b26d5a8d-d73e-4677-8d09-8ca7a8523f5e",
    "name": "AgileTelecom WhatsApp API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": {
      "content": "REST API for sending WhatsApp Business messages, template management, and phone number management.\n\n## Authentication\n\nAll requests require **one** of the following methods:\n\n- **API Key** — Header `X-Api-Key: <api-key>`\n- **Basic Auth** — Header `Authorization: Basic <base64(username:password)>`\n\n## Main features\n\n- Send messages via Meta-approved templates or free-form content\n- Template management (create, update, delete)\n- Fallback chain: WhatsApp → RCS → SMS\n- Delivery, read, and inbound message notifications (webhook)\n- Media file download from inbound messages\n- Tracked links (short links) in the body or template buttons\n\n\nContact Support:\n Name: AgileTelecom",
      "type": "text/plain"
    }
  }
}
