{
  "openapi": "3.0.1",
  "info": {
    "title": "CAD Manufacturability Check (DFM) for STL & STEP",
    "description": "Check STL and STEP parts for CNC machining, injection molding, sheet metal and 3D printing problems: thin walls, sharp inside corners, small or deep holes, missing draft, undercuts. Pass/review/fail with measured values, plus size, volume and stock.",
    "version": "0.0",
    "x-build-id": "oANcvcWhULUUvmo0T"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alecrm98~cad-manufacturability-check-dfm-for-stl-step/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alecrm98-cad-manufacturability-check-dfm-for-stl-step",
        "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/alecrm98~cad-manufacturability-check-dfm-for-stl-step/runs": {
      "post": {
        "operationId": "runs-sync-alecrm98-cad-manufacturability-check-dfm-for-stl-step",
        "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/alecrm98~cad-manufacturability-check-dfm-for-stl-step/run-sync": {
      "post": {
        "operationId": "run-sync-alecrm98-cad-manufacturability-check-dfm-for-stl-step",
        "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": {
          "files": {
            "title": "File links",
            "type": "array",
            "description": "Direct download links to STL, STEP/STP, IGES/IGS, OBJ, 3MF or PLY files. One row per file and process is returned. Leave empty for a free demo run on a sample part.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "fileUpload": {
            "title": "Or upload one file",
            "type": "string",
            "description": "Upload a single part instead of giving a link."
          },
          "processes": {
            "title": "Processes",
            "type": "array",
            "description": "Which processes to check each part against. Each file x process is one billed check.",
            "items": {
              "type": "string",
              "enum": [
                "cnc_3axis",
                "injection_molding",
                "sheet_metal",
                "fdm"
              ],
              "enumTitles": [
                "CNC machining (3-axis)",
                "Injection molding",
                "Sheet metal",
                "FDM 3D printing"
              ]
            },
            "default": [
              "cnc_3axis"
            ]
          },
          "units": {
            "title": "File units",
            "enum": [
              "mm",
              "cm",
              "m",
              "in"
            ],
            "type": "string",
            "description": "Units the file was exported in. STEP files usually carry their own units and are read in mm.",
            "default": "mm"
          },
          "material": {
            "title": "Material (for weight estimate and molding shrink)",
            "type": "string",
            "description": "Optional. One of PLA, PETG, ABS, ASA, NYLON, TPU, PC, PP, ALUMINUM_6061, STEEL, STAINLESS_304, BRASS."
          },
          "pullAxis": {
            "title": "Mold pull direction",
            "enum": [
              "+Z",
              "-Z",
              "+X",
              "-X",
              "+Y",
              "-Y"
            ],
            "type": "string",
            "description": "Injection molding only. Direction the mold opens.",
            "default": "+Z"
          },
          "printerEnvelopeMm": {
            "title": "Printer build volume [x, y, z] mm",
            "type": "array",
            "description": "FDM only. Parts bigger than this are flagged.",
            "default": [
              256,
              256,
              256
            ]
          },
          "fdmInfill": {
            "title": "FDM infill fraction",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Used only for the filament weight estimate (0.2 = 20%).",
            "default": 0.2
          },
          "cncStockMarginMm": {
            "title": "CNC stock margin per side (mm)",
            "minimum": 0,
            "type": "number",
            "description": "Extra material added to each side of the bounding box for the CNC stock size.",
            "default": 3
          },
          "includeFindings": {
            "title": "Include full findings",
            "type": "boolean",
            "description": "Each rule's measured value, limit and problem location. Turn off for a compact spreadsheet export.",
            "default": true
          },
          "fileType": {
            "title": "Force file type",
            "type": "string",
            "description": "Only needed when the link has no file extension (e.g. stl, step)."
          },
          "maxFiles": {
            "title": "Max files per run",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many files in one run.",
            "default": 100
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "type": "number",
            "description": "Skip files bigger than this.",
            "default": 50
          },
          "concurrency": {
            "title": "Files checked at once",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many files are processed in parallel. Higher is faster but needs more memory.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}