{
  "openapi": "3.0.3",
  "info": {
    "title": "CarrierOk API",
    "version": "v2",
    "description": "CarrierOk provides FMCSA carrier data via a REST API: carrier profiles, autocomplete, and monitoring watchlists. Authenticate with your API key as a Bearer token: `Authorization: Bearer sk_live_...` (`sk_test_` for sandbox). The `x-api-key` header is also accepted. Base URL: `https://api.carrierok.com`. Get a sandbox key free at https://developers.carrierok.com; the first $50 of usage is credited on activation.",
    "contact": {
      "email": "support@carrierok.com",
      "url": "https://developers.carrierok.com"
    },
    "termsOfService": "https://www.carrierok.com/api-terms",
    "license": {
      "name": "Proprietary"
    }
  },
  "servers": [
    {
      "url": "https://api.carrierok.com",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Profiles",
      "description": "Carrier profile data — DOT lookups, search by company / EIN / VIN / etc., autocomplete"
    },
    {
      "name": "Monitoring",
      "description": "Watchlist management — add/remove DOTs to monitor for changes, list monitored set"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Preferred. Pass your key as a Bearer token: Authorization: Bearer sk_live_...  (sk_test_ for sandbox)."
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Alternative to Bearer: pass the same key in the `x-api-key` header."
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Human-readable error message",
            "example": "Missing required parameter: dot_number"
          },
          "code": {
            "type": "string",
            "description": "Machine-readable error code (when available)",
            "example": "MISSING_PARAM"
          },
          "hint": {
            "type": "string",
            "description": "Developer hint for resolution (when available)",
            "example": "Pass dot_number as a query parameter, e.g. ?dot_number=568253"
          }
        }
      }
    }
  },
  "paths": {
    "/v2/profile": {
      "get": {
        "operationId": "getV2Profile",
        "tags": [
          "Profiles"
        ],
        "summary": "Look up a carrier by USDOT number",
        "description": "Retrieve a carrier profile using its USDOT number. Returns the full carrier profile including identity, authority, safety, BASIC percentiles, ISS scores, risk factors, insurance, fleet, inspections, violations, and crash history.\n\n**Search by one of:**\n- `dot_number` — DOT: Look up a carrier by USDOT number\n- `docket_number` — Docket Number: Look up a carrier by MC or MX docket number\n- `company` — Company: Search carriers by company name\n- `ein` — EIN: Look up a carrier by Employer Identification Number\n- `email` — Email: Search carriers by email address or domain\n- `address` — Address: Search carriers by physical address\n- `phone` — Phone: Search carriers by phone number\n- `vin` — VIN: Look up carriers associated with a Vehicle Identification Number\n- `plate_number` — Plate: Look up carriers associated with a license plate number\n- `unit_number` — Unit Number: Look up carriers associated with a fleet unit number",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request — missing or invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "dot_number",
            "in": "query",
            "required": false,
            "description": "The USDOT number assigned to the motor carrier by FMCSA.",
            "schema": {
              "type": "string"
            },
            "example": "568253"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number of the result set to retrieve. The default value is set to 1.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "The number of profile ids returned per page. The default value is set to 100.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          },
          {
            "name": "docket_number",
            "in": "query",
            "required": false,
            "description": "The MC or MX docket number (e.g., 277621 or MC277621).",
            "schema": {
              "type": "string"
            },
            "example": "277621"
          },
          {
            "name": "company",
            "in": "query",
            "required": false,
            "description": "Company name to search for. Supports partial matches.",
            "schema": {
              "type": "string"
            },
            "example": "Cheetah"
          },
          {
            "name": "ein",
            "in": "query",
            "required": false,
            "description": "9-digit Employer Identification Number.",
            "schema": {
              "type": "string"
            },
            "example": "954485461"
          },
          {
            "name": "email",
            "in": "query",
            "required": false,
            "description": "Email address or domain to search.",
            "schema": {
              "type": "string"
            },
            "example": "compliance@landstar.com"
          },
          {
            "name": "address",
            "in": "query",
            "required": false,
            "description": "Physical address to search.",
            "schema": {
              "type": "string"
            },
            "example": "3552 GREEN AVENUE"
          },
          {
            "name": "phone",
            "in": "query",
            "required": false,
            "description": "Phone number to search (digits only or formatted).",
            "schema": {
              "type": "string"
            },
            "example": "5624304100"
          },
          {
            "name": "vin",
            "in": "query",
            "required": false,
            "description": "17-character Vehicle Identification Number.",
            "schema": {
              "type": "string"
            },
            "example": "3C7WRTCLXNG338793"
          },
          {
            "name": "plate_number",
            "in": "query",
            "required": false,
            "description": "License plate number.",
            "schema": {
              "type": "string"
            },
            "example": "3354005"
          },
          {
            "name": "plate_state",
            "in": "query",
            "required": false,
            "description": "Two-letter state code to narrow plate search.",
            "schema": {
              "type": "string"
            },
            "example": "MO"
          },
          {
            "name": "unit_number",
            "in": "query",
            "required": false,
            "description": "Fleet unit number.",
            "schema": {
              "type": "string"
            },
            "example": "1234"
          },
          {
            "name": "unit_type",
            "in": "query",
            "required": false,
            "description": "TRUCK or TRAILER filter.",
            "schema": {
              "type": "string"
            },
            "example": "TRUCK"
          }
        ],
        "x-carrierok-variants": [
          {
            "slug": "dot",
            "title": "DOT",
            "summary": "Look up a carrier by USDOT number",
            "example_url": "https://api.carrierok.com/v2/profile?dot_number=568253",
            "primary_param": "dot_number"
          },
          {
            "slug": "docket-number",
            "title": "Docket Number",
            "summary": "Look up a carrier by MC or MX docket number",
            "example_url": "https://api.carrierok.com/v2/profile?docket_number=277621",
            "primary_param": "docket_number"
          },
          {
            "slug": "company",
            "title": "Company",
            "summary": "Search carriers by company name",
            "example_url": "https://api.carrierok.com/v2/profile?company=Cheetah",
            "primary_param": "company"
          },
          {
            "slug": "ein",
            "title": "EIN",
            "summary": "Look up a carrier by Employer Identification Number",
            "example_url": "https://api.carrierok.com/v2/profile?ein=954485461",
            "primary_param": "ein"
          },
          {
            "slug": "email",
            "title": "Email",
            "summary": "Search carriers by email address or domain",
            "example_url": "https://api.carrierok.com/v2/profile?email=compliance@landstar.com",
            "primary_param": "email"
          },
          {
            "slug": "address",
            "title": "Address",
            "summary": "Search carriers by physical address",
            "example_url": "https://api.carrierok.com/v2/profile?address=3552+GREEN+AVENUE",
            "primary_param": "address"
          },
          {
            "slug": "phone",
            "title": "Phone",
            "summary": "Search carriers by phone number",
            "example_url": "https://api.carrierok.com/v2/profile?phone=5624304100",
            "primary_param": "phone"
          },
          {
            "slug": "vin",
            "title": "VIN",
            "summary": "Look up carriers associated with a Vehicle Identification Number",
            "example_url": "https://api.carrierok.com/v2/profile?vin=3C7WRTCLXNG338793",
            "primary_param": "vin"
          },
          {
            "slug": "plate",
            "title": "Plate",
            "summary": "Look up carriers associated with a license plate number",
            "example_url": "https://api.carrierok.com/v2/profile?plate_number=3354005",
            "primary_param": "plate_number"
          },
          {
            "slug": "unit-number",
            "title": "Unit Number",
            "summary": "Look up carriers associated with a fleet unit number",
            "example_url": "https://api.carrierok.com/v2/profile?unit_number=1234",
            "primary_param": "unit_number"
          }
        ]
      }
    },
    "/v2/profile-lite": {
      "get": {
        "operationId": "getV2ProfileLite",
        "tags": [
          "Profiles"
        ],
        "summary": "Lightweight carrier lookup",
        "description": "Returns a reduced field set optimized for high-volume integrations, browser extensions, and quick lookups. Same search parameters as /v2/profile. Metered per unique DOT number per calendar month.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request — missing or invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "dot_number",
            "in": "query",
            "required": false,
            "description": "USDOT number",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "docket_number",
            "in": "query",
            "required": false,
            "description": "MC or MX docket number",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "required": false,
            "description": "Company name (partial match)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ein",
            "in": "query",
            "required": false,
            "description": "Employer Identification Number",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "email",
            "in": "query",
            "required": false,
            "description": "Contact email address",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "phone",
            "in": "query",
            "required": false,
            "description": "Phone number",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "address",
            "in": "query",
            "required": false,
            "description": "Physical address",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vin",
            "in": "query",
            "required": false,
            "description": "Vehicle Identification Number",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "plate_number",
            "in": "query",
            "required": false,
            "description": "License plate number",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number of the result set to retrieve. The default value is set to 1.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "The number of profile ids returned per page. The default value is set to 100.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          }
        ],
        "x-carrierok-slug": "profile-lite",
        "x-carrierok-title": "Profiles Lite",
        "x-carrierok-example_url": "https://api.carrierok.com/v2/profile-lite?dot_number=568253"
      }
    },
    "/v2/autocomplete": {
      "get": {
        "operationId": "getV2Autocomplete",
        "tags": [
          "Profiles"
        ],
        "summary": "Carrier typeahead search",
        "description": "Lightweight prefix search returning minimal carrier identity for typeahead interfaces. Minimum query length of 2 characters. Results are cached for 5 minutes.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request — missing or invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Search query (minimum 2 characters).",
            "schema": {
              "type": "string"
            },
            "example": "hansen"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of results (max: 15).",
            "schema": {
              "type": "integer",
              "default": 8
            }
          }
        ],
        "x-carrierok-slug": "autocomplete",
        "x-carrierok-title": "Autocomplete",
        "x-carrierok-example_url": "https://api.carrierok.com/v2/autocomplete?q=hansen"
      }
    },
    "/v2/profile-fmcsa": {
      "get": {
        "operationId": "getV2ProfileFmcsa",
        "tags": [
          "Profiles"
        ],
        "summary": "Consolidated FMCSA data for one carrier",
        "description": "Consolidated FMCSA registration, authority, safety, inspection, crash, and insurance-adequacy data for a single carrier — 236 fields drawn from FMCSA sources, with no CarrierOk-derived risk intelligence. Every response carries the full fixed field set (null where FMCSA has no value), so the schema is stable across carriers. Lookups by dot_number or docket_number only (GET). A dot_number lookup returns exactly one record per carrier — the live registration, deduplicated across any lapsed dockets. Billed per request: a matched lookup bills once; a 404 (no carrier found) is free, and upstream data-store failures return an unbilled 503 (retry) — never a false 404.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request — missing or invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "dot_number",
            "in": "query",
            "required": false,
            "description": "The USDOT number assigned to the motor carrier by FMCSA. Provide dot_number or docket_number.",
            "schema": {
              "type": "string"
            },
            "example": "568253"
          },
          {
            "name": "docket_number",
            "in": "query",
            "required": false,
            "description": "The MC or MX docket number (e.g., 277621 or MC277621). Provide dot_number or docket_number.",
            "schema": {
              "type": "string"
            },
            "example": "277621"
          }
        ],
        "x-carrierok-slug": "profile-fmcsa",
        "x-carrierok-title": "FMCSA Profile",
        "x-carrierok-example_url": "https://api.carrierok.com/v2/profile-fmcsa?dot_number=568253",
        "x-carrierok-response_sample_file": "profile-fmcsa.json"
      }
    },
    "/v2/monitoring/add": {
      "post": {
        "operationId": "postV2MonitoringAdd",
        "tags": [
          "Monitoring"
        ],
        "summary": "Add carriers to monitoring",
        "description": "Add carrier profiles to the monitoring watchlist. Plan-capped callers are validated against their plan's profile limit. OEM (consumption-billed) callers may submit up to 20,000 profile_ids per request; each unique monitored profile is billed once per calendar month under the configured per-profile rate. Removing mid-month does not refund; re-adding the same profile in the same month is free (idempotent). Billing is eventually consistent — the response returns 202 once the watchlist is committed and meter events are queued.",
        "responses": {
          "200": {
            "description": "Legacy plan-capped caller — write committed synchronously",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "202": {
            "description": "OEM caller — write committed, billing queued"
          },
          "207": {
            "description": "Partial commit failure mid-batch; failed_profile_ids returned"
          },
          "400": {
            "description": "Missing profile_ids",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Plan limit exceeded (legacy callers only)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Batch size exceeds 20,000 (OEM callers)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "The request adds a docket to a DOT that would then hold more than 25 monitored dockets; `dots` names up to 5 of them",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Monthly profile cap exceeded (OEM callers)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Array of carrier profile IDs to monitor (max 20,000 per request for OEM callers)"
                  }
                },
                "required": [
                  "profile_ids"
                ]
              }
            }
          }
        }
      }
    },
    "/v2/monitoring/remove": {
      "post": {
        "operationId": "postV2MonitoringRemove",
        "tags": [
          "Monitoring"
        ],
        "summary": "Remove carriers from monitoring",
        "description": "Remove carrier profiles from the monitoring watchlist. Removal is free for OEM callers and does not refund the current month's billing. Up to 20,000 profile_ids per request for OEM callers.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request — missing or invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Array of carrier profile IDs to remove (max 20,000 per request for OEM callers)"
                  }
                },
                "required": [
                  "profile_ids"
                ]
              }
            }
          }
        }
      }
    },
    "/v2/monitoring/list": {
      "get": {
        "operationId": "getV2MonitoringList",
        "tags": [
          "Monitoring"
        ],
        "summary": "List monitored carriers with change tracking",
        "description": "Returns a paginated list of monitored carriers with optional filtering by change type (insurance, authority, safety, fleet, contact, risk), date range, and sort order. Supports granular change visibility flags.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request — missing or invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Results per page (clamped to 500 max)",
            "schema": {
              "type": "integer",
              "default": 100
            }
          },
          {
            "name": "view_changes",
            "in": "query",
            "required": false,
            "description": "Filter to profiles with any changes",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "view_changes_insurance",
            "in": "query",
            "required": false,
            "description": "Filter to insurance changes",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "view_changes_authority",
            "in": "query",
            "required": false,
            "description": "Filter to authority changes",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "view_changes_safety",
            "in": "query",
            "required": false,
            "description": "Filter to safety changes",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "view_changes_fleet",
            "in": "query",
            "required": false,
            "description": "Filter to fleet changes",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "view_changes_contact",
            "in": "query",
            "required": false,
            "description": "Filter to contact changes",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "view_changes_risk",
            "in": "query",
            "required": false,
            "description": "Filter to risk factor changes",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "date_type",
            "in": "query",
            "required": false,
            "description": "Date field to filter: last_changed_date, started_monitoring_at, last_acknowledged_at, mcs150_date_current, latest_review_date_current, safety_rating_date_current, last_crash_date_current, insurance_pending_cancel_date_current. started_monitoring_at and last_acknowledged_at are timestamps, and their bounds cut on the UTC calendar day",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date_min",
            "in": "query",
            "required": false,
            "description": "Earliest date to include, inclusive (YYYYMMDD format). Requires date_type. May be sent without date_max. When a view_changes_* filter is set, also send view_changes=true.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date_max",
            "in": "query",
            "required": false,
            "description": "Latest date to include, inclusive (YYYYMMDD format). Requires date_type. May be sent without date_min. When a view_changes_* filter is set, also send view_changes=true.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "description": "Sort field",
            "schema": {
              "type": "string",
              "default": "last_changed_date"
            }
          },
          {
            "name": "sortOrder",
            "in": "query",
            "required": false,
            "description": "Sort direction: asc or desc",
            "schema": {
              "type": "string",
              "default": "desc"
            }
          },
          {
            "name": "profile_id",
            "in": "query",
            "required": false,
            "description": "Filter to a single profile",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  }
}