{
  "opencollection": "1.0.0",
  "info": {
    "name": "PureCloud Platform Agent Assistants WebMessaging API",
    "version": "v2"
  },
  "items": [
    {
      "info": {
        "name": "WebMessaging",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Add a new device information",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v2/webmessaging/deployments/:deploymentId/pushdevices/:tokenId",
            "params": [
              {
                "name": "deploymentId",
                "value": "",
                "type": "path",
                "description": "WebMessaging deployment id"
              },
              {
                "name": "tokenId",
                "value": "",
                "type": "path",
                "description": "Device token id or cookie id"
              }
            ]
          },
          "docs": "Add a new device information"
        },
        {
          "info": {
            "name": "Edit device information",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/api/v2/webmessaging/deployments/:deploymentId/pushdevices/:tokenId",
            "params": [
              {
                "name": "deploymentId",
                "value": "",
                "type": "path",
                "description": "WebMessaging deployment id"
              },
              {
                "name": "tokenId",
                "value": "",
                "type": "path",
                "description": "Device token id or cookie id"
              }
            ]
          },
          "docs": "Edit device information"
        },
        {
          "info": {
            "name": "Delete device information",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v2/webmessaging/deployments/:deploymentId/pushdevices/:tokenId",
            "params": [
              {
                "name": "deploymentId",
                "value": "",
                "type": "path",
                "description": "WebMessaging deployment id"
              },
              {
                "name": "tokenId",
                "value": "",
                "type": "path",
                "description": "Device token id or cookie id"
              }
            ]
          },
          "docs": "Delete device information"
        },
        {
          "info": {
            "name": "Get the messages for a web messaging session.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v2/webmessaging/messages",
            "params": [
              {
                "name": "pageSize",
                "value": "",
                "type": "query",
                "description": "Page size"
              },
              {
                "name": "pageNumber",
                "value": "",
                "type": "query",
                "description": "Page number"
              }
            ]
          },
          "docs": "Get the messages for a web messaging session."
        }
      ]
    }
  ],
  "bundled": true
}