{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Insurance & Authority Change Monitor",
    "description": "Monitor official daily FMCSA/DOT records for insurance cancellation or replacement filings, authority grants, reinstatements, inactive or withdrawn authority, and involuntary-suspension notices. Filter nationwide changes or a carrier watchlist.",
    "version": "0.0",
    "x-build-id": "4Adh08xa9lhqwHVLR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/theleadforge~fmcsa-insurance-authority-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-theleadforge-fmcsa-insurance-authority-monitor",
        "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/theleadforge~fmcsa-insurance-authority-monitor/runs": {
      "post": {
        "operationId": "runs-sync-theleadforge-fmcsa-insurance-authority-monitor",
        "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/theleadforge~fmcsa-insurance-authority-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-theleadforge-fmcsa-insurance-authority-monitor",
        "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",
        "required": [
          "mode",
          "eventTypes",
          "maxEvents"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "dailyFeed",
              "watchlist"
            ],
            "type": "string",
            "description": "Choose the nationwide daily change feed or restrict results to supplied carriers.",
            "default": "dailyFeed"
          },
          "usdotNumbers": {
            "title": "USDOT numbers",
            "maxItems": 500,
            "type": "array",
            "description": "Optional in nationwide mode. In watchlist mode, add USDOT numbers or docket numbers. One value per line; punctuation is removed.",
            "items": {
              "type": "string",
              "pattern": "^[0-9 .-]{1,20}$"
            },
            "default": []
          },
          "docketNumbers": {
            "title": "MC, FF, or MX docket numbers",
            "maxItems": 500,
            "type": "array",
            "description": "Optional carrier watchlist identifiers, such as MC-123456 or FF123456. One value per line.",
            "items": {
              "type": "string",
              "pattern": "^([Mm][Cc]|[Ff][Ff]|[Mm][Xx])[ ._-]*[0-9]{1,10}$"
            },
            "default": []
          },
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "Select the insurance and authority changes to return. Pending applications are controlled separately below.",
            "items": {
              "type": "string",
              "enum": [
                "insurance_cancellation_filed",
                "insurance_termination_or_replacement_filed",
                "authority_granted",
                "authority_reinstated",
                "authority_voluntarily_suspended",
                "authority_became_inactive",
                "authority_withdrawn",
                "authority_involuntary_suspension_notice"
              ],
              "enumTitles": [
                "Insurance cancellation filing",
                "Insurance termination/replacement filing",
                "Authority granted",
                "Authority reinstated",
                "Authority voluntarily suspended",
                "Authority became inactive",
                "Authority withdrawn",
                "Involuntary suspension notice"
              ]
            },
            "default": [
              "insurance_cancellation_filed",
              "insurance_termination_or_replacement_filed",
              "authority_granted",
              "authority_reinstated",
              "authority_voluntarily_suspended",
              "authority_became_inactive",
              "authority_withdrawn",
              "authority_involuntary_suspension_notice"
            ]
          },
          "includePendingAuthorities": {
            "title": "Include pending authority applications",
            "type": "boolean",
            "description": "When enabled, also return low-attention Initial Status pending authority records. These are excluded by default.",
            "default": false
          },
          "states": {
            "title": "Physical states",
            "type": "array",
            "description": "Optional carrier physical-state filter. Leave empty for all states. Events that cannot be enriched with a state will not match this filter.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "PR",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY"
              ]
            },
            "default": []
          },
          "authorityTypes": {
            "title": "Authority types",
            "type": "array",
            "description": "Optional filter for authority events. Insurance events do not carry an authority type and remain included.",
            "items": {
              "type": "string",
              "enum": [
                "Motor Carrier of Property (Except Household Goods)",
                "Broker of Property (Except Household Goods)",
                "Freight Forwarder of Property (Except Household Goods)",
                "Motor Carrier of Household Goods",
                "Motor Carrier of Passengers",
                "Broker of Household Goods",
                "Freight Forwarder of Household Goods",
                "Enterprise Motor Carrier of Property (Except Household Goods)"
              ]
            },
            "default": []
          },
          "maxEvents": {
            "title": "Maximum events",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on event records returned and eligible for charging in one run.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}