{
  "openapi": "3.1.0",
  "info": {
    "title": "FleetStatute U.S. Motor Carrier Statutory, Motus & IFTA API",
    "version": "4.0.0",
    "description": "Public zero-auth read-only JSON API for live FMCSA Motus operating authority & BMC-91X/BMC-35/BOC-3/BMC-84 vetting, daily D1 federal time-series stats, 4Q 2026 IFTA & weight-distance rates, 49 CFR § 383.91 CDL checks, § 390.19T MCS-150 schedules, and 2026 CVSA roadside OOS criteria.",
    "license": {
      "name": "CC BY 4.0 (Attribution to https://fleetstatute.com)",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://fleetstatute.com",
      "description": "Cloudflare Global Edge Production"
    }
  ],
  "paths": {
    "/api/docket/": {
      "get": {
        "operationId": "lookupUsdotOrMcDocket",
        "summary": "Query live FMCSA Motus authority, BMC-91X insurer, BOC-3 & broker bond readiness",
        "description": "Fetches zero-PII federal carrier/broker docket status, AM Best/RRG insurer rating, BOC-3 agent, and seasoning days.",
        "x-openai-isConsequential": false,
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "USDOT number (e.g. 3436760) or MC/FF docket number (e.g. MC1115046)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Carrier or broker readiness report",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/mcs150/": {
      "get": {
        "operationId": "decodeMcs150BiennialSchedule",
        "summary": "Decode exact FMCSA Form MCS-150 biennial update month and year from USDOT digits",
        "description": "Implements 49 CFR § 390.19T(b)(2)-(3) last-two-digits filing month and odd/even year schedule.",
        "x-openai-isConsequential": false,
        "parameters": [
          {
            "name": "usdot",
            "in": "query",
            "required": true,
            "description": "USDOT number digits (e.g. 3436760)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Decoded MCS-150 filing cycle and next due date",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cdl-check/": {
      "get": {
        "operationId": "checkCdlAndComplianceThresholds",
        "summary": "Evaluate truck GVWR + trailer GVWR against 49 CFR § 383.91 CDL, IFTA, ELD, 2290 & FET rules",
        "description": "Deterministic federal & 5-state weight-distance threshold evaluator.",
        "x-openai-isConsequential": false,
        "parameters": [
          {
            "name": "truck_gvwr",
            "in": "query",
            "required": true,
            "description": "Power unit door-sticker GVWR in lbs (e.g. 14000)",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "trailer_gvwr",
            "in": "query",
            "required": false,
            "description": "Towed trailer VIN-plate GVWR in lbs (default 0)",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "axles",
            "in": "query",
            "required": false,
            "description": "Power unit axles (default 2)",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "CDL, ELD, Clearinghouse, IFTA, IRP, Form 2290, and state weight-distance verdict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/roadside-oos/": {
      "get": {
        "operationId": "evaluateRoadsideOosCriteria",
        "summary": "Evaluate 2026 CVSA Level I Roadside Out-of-Service vs. citation thresholds (brakes, tires, ELD)",
        "x-openai-isConsequential": false,
        "parameters": [
          {
            "name": "total_brakes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "defective_brakes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "steer_tread",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "drive_tread",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "eld_status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eld_days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "CVSA Out-of-Service vs. citation triage result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ifta-rates/": {
      "get": {
        "operationId": "getIftaRates4Q2026",
        "summary": "Fetch all 61 US/Canadian 4Q 2026 IFTA diesel rates, KY/VA split surcharges, and weight-distance flags",
        "x-openai-isConsequential": false,
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "json (default) or csv",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "61-jurisdiction 4Q 2026 IFTA schedule",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/stats/": {
      "get": {
        "operationId": "getDailyMotusTimeSeries",
        "summary": "Fetch daily U.S. DOT Motus operating authority grant & suspension time-series archived in D1",
        "x-openai-isConsequential": false,
        "responses": {
          "200": {
            "description": "30-day rolling federal Motus authority & BMC-91X diff time-series",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}