{
  "item": [
    {
      "id": "423df4b2-9375-41df-b15b-34e35043cf80",
      "name": "Send Messages",
      "description": {
        "content": "Send SMS messages",
        "type": "text/plain"
      },
      "item": [
        {
          "id": "dac35087-c3c8-4459-b4f7-5daaaea9ff6e",
          "name": "Send SMS Legacy",
          "request": {
            "name": "Send SMS Legacy",
            "description": {
              "content": "Send one or more SMS messages in Legacy mode.\nSupports multi-recipient sending (multiple numbers per message) and multi-message sending (multiple messages in a single request).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "services",
                "sms",
                "send"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": null,
            "body": {
              "mode": "raw",
              "raw": "{\n  \"enableConcatenated\": true,\n  \"enableUnicode\": true,\n  \"enableDelivery\": true,\n  \"simulation\": false,\n  \"messages\": [\n    {\n      \"destinations\": [\n        \"+393401234567\"\n      ],\n      \"sender\": \"MyCompany\",\n      \"body\": \"Ciao! Il tuo ordine è stato spedito.\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "id": "7dd001e1-a9f8-4e89-a677-b7aa1355512a",
              "name": "Request processed successfully. Contains the summary of processed messages and the remaining credit.",
              "originalRequest": {
                "url": {
                  "path": [
                    "services",
                    "sms",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"enableConcatenated\": true,\n  \"enableUnicode\": true,\n  \"enableDelivery\": true,\n  \"simulation\": false,\n  \"messages\": [\n    {\n      \"destinations\": [\n        \"+393401234567\"\n      ],\n      \"sender\": \"MyCompany\",\n      \"body\": \"Ciao! Il tuo ordine è stato spedito.\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"globalId\": \"campaign-2025-001\",\n  \"processedMessages\": 1,\n  \"processedSmsParts\": 2,\n  \"credit\": 150.5\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "13884a2f-45f2-4e1f-9fe3-64bde569ff34",
              "name": "Invalid request",
              "originalRequest": {
                "url": {
                  "path": [
                    "services",
                    "sms",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"enableConcatenated\": true,\n  \"enableUnicode\": true,\n  \"enableDelivery\": true,\n  \"simulation\": false,\n  \"messages\": [\n    {\n      \"destinations\": [\n        \"+393401234567\"\n      ],\n      \"sender\": \"MyCompany\",\n      \"body\": \"Ciao! Il tuo ordine è stato spedito.\"\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    \"messages\": \"'messages' can't be empty\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "43b6fcdf-50c8-4533-a259-5f7ee56ce726",
              "name": "Invalid or missing credentials",
              "originalRequest": {
                "url": {
                  "path": [
                    "services",
                    "sms",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"enableConcatenated\": true,\n  \"enableUnicode\": true,\n  \"enableDelivery\": true,\n  \"simulation\": false,\n  \"messages\": [\n    {\n      \"destinations\": [\n        \"+393401234567\"\n      ],\n      \"sender\": \"MyCompany\",\n      \"body\": \"Ciao! Il tuo ordine è stato spedito.\"\n    }\n  ]\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": "834d2f7a-b11d-4e82-aad6-0a3b7d699a1f",
              "name": "IP not in whitelist or unauthorized resource",
              "originalRequest": {
                "url": {
                  "path": [
                    "services",
                    "sms",
                    "send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"enableConcatenated\": true,\n  \"enableUnicode\": true,\n  \"enableDelivery\": true,\n  \"simulation\": false,\n  \"messages\": [\n    {\n      \"destinations\": [\n        \"+393401234567\"\n      ],\n      \"sender\": \"MyCompany\",\n      \"body\": \"Ciao! Il tuo ordine è stato spedito.\"\n    }\n  ]\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": "7a158d70-b036-439b-85a6-8563f59b8777",
      "name": "Account",
      "description": {
        "content": "Account and credit management",
        "type": "text/plain"
      },
      "item": [
        {
          "id": "12f407f3-9e05-4742-a4d9-8404ea2e3c79",
          "name": "Check credit",
          "request": {
            "name": "Check credit",
            "description": {
              "content": "Returns the available SMS credit for the current account.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "services",
                "sms",
                "credit"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [
            {
              "id": "0e425f45-3f8a-46c8-a9cf-a9c6949cbc53",
              "name": "Available credit",
              "originalRequest": {
                "url": {
                  "path": [
                    "services",
                    "sms",
                    "credit"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"credit\": 150.5\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "4bc842c1-fa1b-474e-890a-609a0e248a79",
              "name": "Invalid request",
              "originalRequest": {
                "url": {
                  "path": [
                    "services",
                    "sms",
                    "credit"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {\n    \"messages\": \"'messages' can't be empty\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "353d98a7-9322-4f41-a26f-7287a5ba317d",
              "name": "Invalid or missing credentials",
              "originalRequest": {
                "url": {
                  "path": [
                    "services",
                    "sms",
                    "credit"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"fail\",\n  \"data\": {}\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7e7fc1e1-8ba5-4d3c-96aa-0307475c1b63",
              "name": "IP not in whitelist or unauthorized resource",
              "originalRequest": {
                "url": {
                  "path": [
                    "services",
                    "sms",
                    "credit"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "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": []
    }
  ],
  "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": "daf94ae4-a7c4-470c-909d-fec5f7f5a619",
    "name": "AgileTelecom SMS Legacy API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": {
      "content": "REST API for sending SMS messages in Legacy mode. Supports multi-recipient and multi-message sending in a single request. Compatible with existing integrations.\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- Multi-recipient and multi-message SMS sending\n- Automatic concatenation for long messages\n- Unicode support\n- Delivery notifications\n- Scheduled sending\n- Available credit check\n\n\nContact Support:\n Name: AgileTelecom",
      "type": "text/plain"
    }
  }
}
