Carrier FMCSA Violations
Carrier FMCSA Violations Endpoint
Retrieve standalone FMCSA violation history (per-inspection violation rows) for one or more carriers, without pulling FMCSA detail, sightings, equipment, scores, or insurance.
Authentication
Include your
Access-Tokenin the header of your requests.Include your
x-api-keyThe API key provided by GenLogs. This header must be included in the request.
Permissions
external-api-carrier-fmcsa-violations
Required to access this endpoint
Endpoint
URL:
https://api.genlogs.io/carrier/profile/fmcsa/violationsMethod:
GET
Headers
Access-Token: (string, required): Access token obtained from the "Create Access Token" endpoint.
x-api-key (string, required): The API key provided by GenLogs.
Query Parameters:
usdot_number (array of string, required): One or more USDOT numbers; repeat the parameter for multiple values, e.g.
?usdot_number=10553&usdot_number=2350084.start_date (string, optional): Inclusive start date (YYYY-MM-DD) for
inspection_datefiltering. Omit for full history.end_date (string, optional): Inclusive end date (YYYY-MM-DD) for
inspection_datefiltering. Omit for full history.
Understanding FMCSA violations information
FMCSA Violations returns one object per USDOT:
violations (array): One entry per inspection violation record.
report_number: (string, nullable) The inspection report number.
inspection_date: (string, nullable) Date of the inspection (YYYY-MM-DD).
violation_code: (string, nullable) FMCSA violation code.
description: (string, nullable) Human-readable violation description.
vins: (array of string, nullable) VIN(s) associated with the violation.
basic_category: (string, nullable) BASIC category the violation rolls up to (e.g. Unsafe Driving).
basic_severity_weight: (integer, nullable) FMCSA severity weight for the violation.
oos: (boolean, nullable) Whether the violation resulted in an out-of-service order.
oos_weight: (integer, nullable) Out-of-service weight, if applicable.
Response:
200 OK: A JSON object containing a
violationsarray per requested USDOT.400 Bad Request: If
usdot_numberis missing/empty, exceeds the allowed limit, orstart_date/end_dateis not valid YYYY-MM-DD.401 Unauthorized: If the authentication credentials (Access-Token) is missing or incorrect.
403 Forbidden: If the
external-api-carrier-fmcsa-violationspermission has not been added to your user.404 Not Found: If none of the requested USDOT numbers exist.
500 Internal Server Error: If there is an issue on the server that prevents processing the request.
Response Body:
Data (object): Set of
{ "violations": [...] }objects grouped byusdot_number.
Request Example:
Response Example:
Retrieve standalone FMCSA violation history (per-inspection violation rows) for specified USDOT numbers, without pulling FMCSA detail, sightings, equipment, scores, or insurance. Violations are sorted by inspection_date descending (most recent first). Roles must include external-api-carrier-fmcsa-violations.
USDOT numbers to get FMCSA violations for
Inclusive start date (YYYY-MM-DD) for inspection_date filtering. Omit for full history.
Inclusive end date (YYYY-MM-DD) for inspection_date filtering. Omit for full history.
Token for authentication
GenLogs generated API Key for authentication
Successful response
Bad Request - invalid or missing usdot_number, or invalid start_date/end_date
Unauthorized – missing token
Forbidden – invalid token or insufficient permissions
Not Found - none of the requested USDOT numbers exist
Internal Server Error
GET /carrier/profile/fmcsa/violations?usdot_number=text HTTP/1.1
Host: api.genlogs.io
Access-Token: text
x-api-key: text
Accept: */*
{
"10553": {
"violations": [
{
"report_number": "CA123456",
"inspection_date": "2025-03-14",
"violation_code": "392.2S",
"description": "Speeding 6-10 mph over limit",
"vins": [
"1FUJA6CK67LX14816"
],
"basic_category": "Unsafe Driving",
"basic_severity_weight": 5,
"oos": false,
"oos_weight": null
}
]
}
}Last updated