{
  "item": [
    {
      "id": "e84432f4-a012-4b2a-acea-e68781cd584a",
      "name": "Send Messages",
      "description": {
        "content": "Send SMS messages",
        "type": "text/plain"
      },
      "item": [
        {
          "id": "9c0ed467-24bd-4e4b-99f9-8da70524211d",
          "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": "5dbb87fb-cd3e-4070-a463-a92c08a9c4ef",
              "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": "c90d9907-7857-4bff-973a-3901aa154407",
              "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": "14f1ee5a-3e08-46ee-ad51-bd71dc8b08bd",
              "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": "adc1e62e-09f7-4198-ac21-74f7e6665887",
              "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": "0d568e6b-0ae3-407d-b916-94a64940cb53",
      "name": "Account",
      "description": {
        "content": "Account and credit management",
        "type": "text/plain"
      },
      "item": [
        {
          "id": "48c282b3-1ac0-422a-958b-de4cc6408298",
          "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": "a7ae0126-8608-4418-9254-0ef62f902aab",
              "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": "d878a35b-64df-43fb-a2ea-2de7107353fd",
              "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": "3ecf3ddf-1fd5-4edd-b8a1-acc1bfaca017",
              "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": "ee5b358b-d7d1-4afe-8e21-19808c1fe599",
              "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": "210d5d7c-6ce4-447f-9a85-a0af2848bfc6",
    "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"
    }
  }
}
