{
  "openapi": "3.0.1",
  "info": {
    "title": "Carrier Vetting Bundle — FMCSA Safety + OFAC/SAM Screen",
    "description": "FMCSA carrier safety/authority snapshot + OFAC sanctions + SAM.gov exclusions name-screen, by DOT number, in one call — for freight-broker/3PL carrier-onboarding vetting. Orchestrates this fleet's own FMCSA, OFAC, and SAM.gov actors via real Actor.call().",
    "version": "0.1",
    "x-build-id": "Dj8hYS46FsXOrZQL4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mooseandraven~carrier-vetting-bundle/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mooseandraven-carrier-vetting-bundle",
        "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/mooseandraven~carrier-vetting-bundle/runs": {
      "post": {
        "operationId": "runs-sync-mooseandraven-carrier-vetting-bundle",
        "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/mooseandraven~carrier-vetting-bundle/run-sync": {
      "post": {
        "operationId": "run-sync-mooseandraven-carrier-vetting-bundle",
        "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": {
          "dotNumbers": {
            "title": "USDOT numbers to vet",
            "type": "array",
            "description": "USDOT numbers of the carriers to vet. Resolved by this fleet's own FMCSA Carrier Safety Suite actor — at least one of dotNumbers/carrierNames/docketNumbers is required for a real run. Example: \"80806\". Left empty by default (not pre-filled) because fmcsaWebKey has no safe default (it's your own personal key) and a populated dotNumbers with no webKey would turn Apify's own graceful no-op health-check run into a FAILED run instead -- see README's Honest limitations.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "carrierNames": {
            "title": "Carrier names to vet",
            "type": "array",
            "description": "Legal/DBA carrier names to look up (fuzzy match, may resolve to multiple carriers per name — same behavior as the underlying FMCSA actor).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "docketNumbers": {
            "title": "MC docket numbers to vet",
            "type": "array",
            "description": "Motor carrier docket numbers to look up. Plain numeric string, not prefixed with \"MC-\" (a prefixed value silently returns zero results).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "fmcsaWebKey": {
            "title": "FMCSA QCMobile API webKey",
            "type": "string",
            "description": "Your own free FMCSA QCMobile API webKey (register via Login.gov at mobile.fmcsa.dot.gov). Required for any real carrier lookup — this actor orchestrates this fleet's own FMCSA Carrier Safety Suite actor, which requires it."
          },
          "includeOfacScreen": {
            "title": "Include OFAC sanctions screen",
            "type": "boolean",
            "description": "Screen each carrier's legal/DBA name against OFAC's sanctions lists (SDN + Consolidated, fuzzy matching) via this fleet's own OFAC Sanctions Screening Suite actor. No key required.",
            "default": true
          },
          "includeSamExclusionsScreen": {
            "title": "Include SAM.gov exclusions screen",
            "type": "boolean",
            "description": "Screen each carrier's legal/DBA name against the SAM.gov Entity Exclusions list (debarred/suspended federal contractors — the FAR 9.405-2(b) check), via SAM.gov's own public daily exclusions extract. No key required.",
            "default": true
          },
          "screenDbaName": {
            "title": "Also screen the DBA name separately",
            "type": "boolean",
            "description": "When a carrier has a DBA (\"doing business as\") name on file that differs from its legal name, screen that name too (OFAC/SAM.gov), not just the legal name.",
            "default": true
          },
          "includeBasics": {
            "title": "Include BASIC safety percentiles",
            "type": "boolean",
            "description": "Fetch each carrier's 5 publicly-reported BASIC percentile scores from FMCSA.",
            "default": true
          },
          "includeAuthority": {
            "title": "Include operating authority status",
            "type": "boolean",
            "description": "Fetch each carrier's common/contract/broker operating authority status from FMCSA.",
            "default": true
          },
          "includeOos": {
            "title": "Include out-of-service orders",
            "type": "boolean",
            "description": "Fetch any out-of-service orders on file for each carrier from FMCSA — the authoritative OOS signal.",
            "default": true
          },
          "maxCarriersPerRun": {
            "title": "Max carriers per run (safety guard)",
            "minimum": 0,
            "type": "integer",
            "description": "Safety cap on total carriers vetted in one run — each carrier costs real sub-actor compute (FMCSA lookup plus the batched sanctions screens). Set to 0 for no cap.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}