{
  "info": {
    "name": "SAP-RPT API",
    "description": "API collection for SAP-RPT Playground prediction service.\n\nSet the `token` variable to your API token (obtain from Settings → API Tokens).\n\nBase URL: https://rpt.cloud.sap",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://rpt.cloud.sap"
    },
    {
      "key": "token",
      "value": ""
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{token}}" }]
  },
  "item": [
    {
      "name": "Predict — Inline Rows",
      "request": {
        "method": "POST",
        "url": "{{base_url}}/api/predict",
        "header": [
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": {
          "mode": "raw",
          "options": { "raw": { "language": "json" } },
          "raw": "{\n  \"rows\": [\n    {\n      \"PRODUCT\": \"Laptop Pro\",\n      \"CATEGORY\": \"Electronics\",\n      \"SALESGROUP\": \"Enterprise\"\n    },\n    {\n      \"PRODUCT\": \"Standing Desk\",\n      \"CATEGORY\": \"Furniture\",\n      \"SALESGROUP\": \"Office\"\n    },\n    {\n      \"PRODUCT\": \"Wireless Headset\",\n      \"CATEGORY\": \"Electronics\",\n      \"SALESGROUP\": \"[PREDICT]\"\n    }\n  ],\n  \"index_column\": \"PRODUCT\"\n}"
        },
        "description": "Basic prediction with inline context rows. Two context rows provide examples; one query row contains [PREDICT] placeholder."
      }
    },
    {
      "name": "Predict — Multi-Column",
      "request": {
        "method": "POST",
        "url": "{{base_url}}/api/predict",
        "header": [
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": {
          "mode": "raw",
          "options": { "raw": { "language": "json" } },
          "raw": "{\n  \"rows\": [\n    {\n      \"PRODUCT\": \"Laptop Pro\",\n      \"QUANTITY\": 45,\n      \"REVENUE\": 44999.55\n    },\n    {\n      \"PRODUCT\": \"Standing Desk\",\n      \"QUANTITY\": 28,\n      \"REVENUE\": 15372.00\n    },\n    {\n      \"PRODUCT\": \"Wireless Headset\",\n      \"QUANTITY\": \"[PREDICT]\",\n      \"REVENUE\": \"[PREDICT]\"\n    }\n  ],\n  \"index_column\": \"PRODUCT\"\n}"
        },
        "description": "Predict multiple columns at once. Set [PREDICT] on each target column in the query row."
      }
    },
    {
      "name": "Predict — With Dates",
      "request": {
        "method": "POST",
        "url": "{{base_url}}/api/predict",
        "header": [
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": {
          "mode": "raw",
          "options": { "raw": { "language": "json" } },
          "raw": "{\n  \"rows\": [\n    {\n      \"ORDER_ID\": \"A001\",\n      \"ORDER_DATE\": \"2025-01-15\",\n      \"DELIVERY_DAYS\": 5\n    },\n    {\n      \"ORDER_ID\": \"A002\",\n      \"ORDER_DATE\": \"2025-02-28\",\n      \"DELIVERY_DAYS\": 3\n    },\n    {\n      \"ORDER_ID\": \"A003\",\n      \"ORDER_DATE\": \"2025-03-10\",\n      \"DELIVERY_DAYS\": \"[PREDICT]\"\n    }\n  ],\n  \"index_column\": \"ORDER_ID\"\n}"
        },
        "description": "Prediction with date columns. Dates must use ISO 8601 format (YYYY-MM-DD). Formats like DD/MM/YYYY or DD-MM-YYYY are auto-normalized but may fail in edge cases. See /docs/api/date-formats for details."
      }
    },
    {
      "name": "Predict — Remote Data Source",
      "request": {
        "method": "POST",
        "url": "{{base_url}}/api/predict",
        "header": [
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": {
          "mode": "raw",
          "options": { "raw": { "language": "json" } },
          "raw": "{\n  \"dataSource\": {\n    \"type\": \"url\",\n    \"url\": \"https://my-bucket.s3.amazonaws.com/sales_data.csv\"\n  },\n  \"index_column\": \"CUSTOMER_ID\"\n}"
        },
        "description": "Use a remote CSV file as context data. The server fetches, parses, and downsamples it automatically. Replace the URL with your own pre-signed HTTPS link."
      }
    },
    {
      "name": "Predict — With Explanations",
      "request": {
        "method": "POST",
        "url": "{{base_url}}/api/predict",
        "header": [
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": {
          "mode": "raw",
          "options": { "raw": { "language": "json" } },
          "raw": "{\n  \"rows\": [\n    {\n      \"PRODUCT\": \"Laptop Pro\",\n      \"CATEGORY\": \"Electronics\",\n      \"SALESGROUP\": \"Enterprise\"\n    },\n    {\n      \"PRODUCT\": \"Standing Desk\",\n      \"CATEGORY\": \"Furniture\",\n      \"SALESGROUP\": \"Office\"\n    },\n    {\n      \"PRODUCT\": \"Wireless Headset\",\n      \"CATEGORY\": \"Electronics\",\n      \"SALESGROUP\": \"[PREDICT]\"\n    }\n  ],\n  \"index_column\": \"PRODUCT\",\n  \"explanations\": {\n    \"top_column_scores\": 4,\n    \"top_relevant_context_rows\": 3\n  }\n}"
        },
        "description": "Prediction with explanations enabled. The response includes per-prediction column scores and the most relevant context rows. `top_column_scores` and `top_relevant_context_rows` accept integers between 1 and 20."
      }
    }
  ]
}
