{
  "opencollection": "1.0.0",
  "info": {
    "name": "Coveo Activity Activities Streaming Model Response API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://platform.cloud.coveo.com/oauth/authorize",
      "accessTokenUrl": "https://platform.cloud.coveo.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Streaming Model Response",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Model Response Events for a Query Stream",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://platform.cloud.coveo.com/rest/organizations/:organizationId/machinelearning/streaming/:streamId",
            "params": [
              {
                "name": "organizationId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the target Coveo Cloud organization"
              },
              {
                "name": "streamId",
                "value": "",
                "type": "path",
                "description": "Unique Identifier for the response stream. For details on how to obtain the streamId for this response, refer to [Streaming model responses](https://docs.coveo.com/en/pc8b3515/)"
              }
            ]
          },
          "docs": "<details><summary>Privilege required</summary>\n```\n{\"owner\":\"SEARCH_API\",\"targetDomain\":\"EXECUTE_QUERY\",\"targetId\":\"*\"}\n```\n</details>"
        }
      ]
    }
  ],
  "bundled": true
}