{"openapi":"3.0.3","info":{"title":"Keel API","version":"1.0.0","description":"Read carrier status and trigger packet requests. Sandbox keys use the keel_test_ prefix and only see the brokerage that minted them. The docs sample keel_test_SANDBOX_EXAMPLE is not a working key. No load, tender, or allow-load fields are accepted or returned. Document downloads respect brokerage ownership or a carrier access grant."},"servers":[{"url":"https://keelfirst.com"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Authority":{"type":"object","properties":{"common":{"type":"string","nullable":true,"description":"Active, Inactive, None, or Pending. Null when the stored common code is null or blank."},"contract":{"type":"string","nullable":true,"description":"Null for Motus rows, because Motus has no common/contract split. Frozen May 14 rows are Active, Inactive, None, or Pending, and null when the stored contract code is null or blank."},"broker":{"type":"string","nullable":true,"description":"Active, Inactive, None, or Pending. Null when the stored broker code is null or blank."},"active":{"type":"boolean"},"source":{"type":"string","nullable":true,"description":"motus when the row comes from Motus Carrier. Null means FMCSA's May 14, 2026 file."},"as_of":{"type":"string","nullable":true,"description":"YYYY-MM-DD. The Motus refresh date, or 2026-05-14 when source is not motus."}}},"Sms":{"type":"object","nullable":true,"description":"SMS AB PassProperty. Null when FMCSA has no row for this carrier, which is not zero inspections. BASIC percentiles are null because FMCSA does not publish them for property carriers.","properties":{"acute":{"type":"array","items":{"type":"string"},"description":"BASIC labels where FMCSA found an acute or critical violation in an investigation in the last 12 months."},"measures":{"type":"object","description":"BASIC measures from FMCSA. Not percentiles.","properties":{"unsafe":{"type":"number","nullable":true},"hos":{"type":"number","nullable":true},"fitness":{"type":"number","nullable":true},"controlled":{"type":"number","nullable":true},"vehicle":{"type":"number","nullable":true}}},"viol_insp":{"type":"object","description":"Inspections with a violation, by BASIC.","properties":{"unsafe":{"type":"number"},"hos":{"type":"number"},"fitness":{"type":"number"},"controlled":{"type":"number"},"vehicle":{"type":"number"}}},"source":{"type":"string","description":"sms_ab_passproperty when the row comes from FMCSA SMS AB PassProperty (4y6x-dmck)."}}}}},"security":[{"bearer":[]}],"paths":{"/api/v1/carriers/{dot}":{"get":{"summary":"Current status for a USDOT, or an MC docket such as MC135797","description":"authority.source is motus when the row comes from Motus Carrier, and null when it is FMCSA's May 14, 2026 file. authority.as_of is the refresh date (YYYY-MM-DD), or 2026-05-14 when source is not motus. sms.acute, sms.measures, sms.viol_insp, and sms.source come from SMS AB PassProperty. sms is null when FMCSA has no SMS row.","responses":{"200":{"description":"Carrier status","content":{"application/json":{"schema":{"type":"object","properties":{"listing_status":{"type":"string","enum":["active","inactive","pending","no_authority"],"description":"active when the census status is active. inactive when the census status is inactive or any code other than active or pending. pending when the census status is pending. no_authority when the census status is active, the carrier is for hire with an MC number, and neither common nor contract authority is active."},"power_units_check":{"type":"string","nullable":true,"enum":["ok","unverified","placeholder",null],"description":"ok when the power-unit count can be used for fleet size. unverified when the mileage on file does not support a count over 1,000. placeholder when FMCSA built the count from placeholder MCS-150 entries. Null until a census run writes it."},"authority":{"$ref":"#/components/schemas/Authority"},"insurance":{"type":"object","properties":{"insurer":{"type":"string","nullable":true,"description":"Company on the BIPD filing. Null when none is stored. A BMC-84 broker bond or BMC-85 trust fund is not this filing."},"insurer_kind":{"type":"string","nullable":true,"enum":["insurance","surety_bond",null],"description":"insurance for a BI&PD policy (type 1). surety_bond when the BIPD filing is a BMC-82 surety bond. Null when insurer is null."}}},"sms":{"$ref":"#/components/schemas/Sms"}}}}}}}}},"/api/v1/carriers/{dot}/snapshot":{"get":{"summary":"Latest or named timestamped verification snapshot. The key may be a USDOT or an MC docket."}},"/api/v1/carriers/{dot}/documents":{"get":{"summary":"Document metadata and 15-minute download URLs. The key may be a USDOT or an MC docket."}},"/api/v1/packets/request":{"post":{"summary":"Trigger a packet or update request","responses":{"400":{"description":"Add your brokerage name in Settings first."}}}},"/api/v1/packets/{requestId}":{"get":{"summary":"Packet request status"}},"/api/v1/network":{"get":{"summary":"Monitored carriers"}}},"webhooks":{"packet.completed":{},"status.changed":{},"alert.triggered":{},"access.granted":{},"contact.changed":{}}}