{
  "info": {
    "name": "Neopolis SMS API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://www.neopolis.net"
    },
    {
      "key": "apiKey",
      "value": ""
    },
    {
      "key": "messageId",
      "value": ""
    },
    {
      "key": "idempotencyKey",
      "value": "replace-for-each-new-send"
    },
    {
      "key": "mediaId",
      "value": ""
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Queue SMS or MMS",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotencyKey}}"
          }
        ],
        "url": "{{baseUrl}}/api/v1/messages",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"to\": \"+12105550199\",\n  \"text\": \"Hello from Neopolis!\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "List account messages",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{baseUrl}}/api/v1/messages"
      }
    },
    {
      "name": "Validate without sending or reserving funds",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": "{{baseUrl}}/api/v1/messages/validate",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"to\": \"+12105550199\",\n  \"text\": \"Hello from Neopolis!\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Get account message status",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{baseUrl}}/api/v1/messages/{{messageId}}"
      }
    },
    {
      "name": "Balance and test restrictions",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{baseUrl}}/api/v1/account"
      }
    },
    {
      "name": "Active dedicated numbers",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{baseUrl}}/api/v1/numbers"
      }
    },
    {
      "name": "Upload one JPEG/PNG/GIF",
      "request": {
        "method": "POST",
        "header": [],
        "url": "{{baseUrl}}/api/v1/media",
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "file",
              "type": "file",
              "src": ""
            }
          ]
        }
      }
    },
    {
      "name": "Check MMS draft",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": "{{baseUrl}}/api/v1/media/draft",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"media\": [],\n  \"text\": \"Hello\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Check MMS check",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": "{{baseUrl}}/api/v1/media/check",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"media\": [],\n  \"text\": \"Hello\",\n  \"name\": \"photo.jpg\",\n  \"size\": 50000\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Download an account image",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{baseUrl}}/api/message-media/{{mediaId}}",
        "description": "Set mediaId to the image ID returned by an upload or message media entry. This is different from the message UUID."
      }
    }
  ]
}