{
  "opencollection": "1.0.0",
  "info": {
    "name": "MoEngage On-Site Messaging (OSM) Template API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "OSM Templates",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create OSM Template",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-{dc}.moengage.com/v1.0/custom-templates/osm",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This API creates a new On-Site Messaging (OSM) template. You can use this API to upload templates created outside the MoEngage ecosystem to MoEngage and use them for campaign creation."
        },
        {
          "info": {
            "name": "Update OSM Template",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api-{dc}.moengage.com/v1.0/custom-templates/osm",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This API updates an OSM template as per your requirements."
        },
        {
          "info": {
            "name": "Search OSM Templates",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-{dc}.moengage.com/v1.0/custom-templates/osm/search",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This API searches the OSM templates created in your MoEngage account."
        }
      ]
    }
  ],
  "bundled": true
}