{
  "opencollection": "1.0.0",
  "info": {
    "name": "Salesforce Einstein Discovery API",
    "version": "58.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://login.salesforce.com/services/oauth2/authorize",
      "accessTokenUrl": "https://login.salesforce.com/services/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Stories",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Einstein List stories",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/stories",
            "params": [
              {
                "name": "q",
                "value": "",
                "type": "query",
                "description": "Search query to filter stories by name."
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query",
                "description": "Number of stories to return per page."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number."
              }
            ]
          },
          "docs": "Returns a list of all Einstein Discovery stories."
        },
        {
          "info": {
            "name": "Salesforce Einstein Create a story",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/stories",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new Einstein Discovery story from a dataset."
        },
        {
          "info": {
            "name": "Salesforce Einstein Get a story",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/stories/:storyId",
            "params": [
              {
                "name": "storyId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the story."
              }
            ]
          },
          "docs": "Returns details of a specific Einstein Discovery story."
        },
        {
          "info": {
            "name": "Salesforce Einstein Update a story",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/stories/:storyId",
            "params": [
              {
                "name": "storyId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the story."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing Einstein Discovery story."
        },
        {
          "info": {
            "name": "Salesforce Einstein Delete a story",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/stories/:storyId",
            "params": [
              {
                "name": "storyId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the story."
              }
            ]
          },
          "docs": "Deletes an Einstein Discovery story."
        },
        {
          "info": {
            "name": "Salesforce Einstein Get story statistics",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/stories/:storyId/stats",
            "params": [
              {
                "name": "storyId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the story."
              }
            ]
          },
          "docs": "Returns insights and statistical analysis from a story."
        }
      ]
    },
    {
      "info": {
        "name": "Models",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Einstein List prediction models",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/models",
            "params": [
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a list of Einstein Discovery prediction models."
        },
        {
          "info": {
            "name": "Salesforce Einstein Get a prediction model",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/models/:modelId",
            "params": [
              {
                "name": "modelId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the model."
              }
            ]
          },
          "docs": "Returns details of a specific prediction model."
        },
        {
          "info": {
            "name": "Salesforce Einstein Delete a prediction model",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/models/:modelId",
            "params": [
              {
                "name": "modelId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the model."
              }
            ]
          },
          "docs": "Deletes an Einstein Discovery prediction model."
        }
      ]
    },
    {
      "info": {
        "name": "Predictions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Einstein Make a prediction",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/prediction",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Makes a prediction using an Einstein Discovery model. Provide the model ID and input field values to receive a prediction with explanatory factors."
        }
      ]
    },
    {
      "info": {
        "name": "Lenses",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Einstein List lenses",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/lenses",
            "params": [
              {
                "name": "q",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a list of analytics lenses (datasets)."
        },
        {
          "info": {
            "name": "Salesforce Einstein Get a lens",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/lenses/:lensId",
            "params": [
              {
                "name": "lensId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns details of a specific analytics lens."
        }
      ]
    },
    {
      "info": {
        "name": "Dashboards",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Einstein List dashboards",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/dashboards",
            "params": [
              {
                "name": "q",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a list of analytics dashboards."
        },
        {
          "info": {
            "name": "Salesforce Einstein Get a dashboard",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/dashboards/:dashboardId",
            "params": [
              {
                "name": "dashboardId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns details of a specific analytics dashboard."
        }
      ]
    }
  ],
  "bundled": true
}