{
  "openapi": "3.0.1",
  "info": {
    "title": "CSV to Dashboard Report",
    "description": "Turn a CSV export (Jira issues, Etsy orders and statements, biometric attendance or any table) into a one-file HTML dashboard report: KPI cards, charts, plain-English findings and bordered tables, plus a dataset of every KPI.",
    "version": "1.0",
    "x-build-id": "FT6Rsio61b0QvSUjk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vpcapps~csv-to-dashboard-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vpcapps-csv-to-dashboard-report",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/vpcapps~csv-to-dashboard-report/runs": {
      "post": {
        "operationId": "runs-sync-vpcapps-csv-to-dashboard-report",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/vpcapps~csv-to-dashboard-report/run-sync": {
      "post": {
        "operationId": "run-sync-vpcapps-csv-to-dashboard-report",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "csvUrl": {
            "title": "CSV file (link or upload)",
            "type": "string",
            "description": "A public link to a .csv, .tsv or .txt file (comma, semicolon or tab separated, first row = column names), or upload the file here. Up to 20 MB. Leave empty to use the built-in synthetic sample."
          },
          "csvText": {
            "title": "Or paste CSV text",
            "type": "string",
            "description": "Paste the CSV contents instead of a file. Used when filled in (it wins over the link)."
          },
          "template": {
            "title": "Report template",
            "enum": [
              "auto",
              "jira",
              "etsy",
              "attendance",
              "generic"
            ],
            "type": "string",
            "description": "Auto picks from the column names: Jira issues export, Etsy Order Items or payments statement, biometric attendance (punch log or daily In/Out), otherwise a general dashboard of any table.",
            "default": "auto"
          },
          "title": {
            "title": "Report title",
            "maxLength": 120,
            "type": "string",
            "description": "Heading of the report. Empty = a title that fits the template (for example \"QA status report\")."
          },
          "secondCsvUrl": {
            "title": "Etsy: second file (link or upload)",
            "type": "string",
            "description": "Etsy only: give the Order Items CSV and the payments statement CSV together for true profit after fees, ads and refunds. Either file alone also works."
          },
          "productCostPercent": {
            "title": "Etsy: product cost (% of sales)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Your cost of making the items, as a percent of item sales. Used for the profit figure.",
            "default": 0
          },
          "jiraIssueType": {
            "title": "Jira: issue type",
            "type": "string",
            "description": "Which issue type to report on, for example Bug or Story. Empty = Bug when the file has bugs, else all types. * = all types."
          },
          "shiftStart": {
            "title": "Attendance: shift start",
            "type": "string",
            "description": "24-hour time, for example 09:30.",
            "default": "09:30"
          },
          "shiftEnd": {
            "title": "Attendance: shift end",
            "type": "string",
            "description": "24-hour time, for example 18:30.",
            "default": "18:30"
          },
          "graceMinutes": {
            "title": "Attendance: grace minutes",
            "minimum": 0,
            "maximum": 240,
            "type": "integer",
            "description": "Minutes after the shift start before an arrival counts as late.",
            "default": 10
          },
          "weeklyOff": {
            "title": "Attendance: weekly off days",
            "enum": [
              "0",
              "0,6",
              "5",
              "none"
            ],
            "type": "string",
            "description": "Days that are not working days.",
            "default": "0"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}