> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Get sms safety records

> You need the individual inspections, violations or crashes behind a carrier's SMS totals.

## Request contract

* **Method and path:** POST /apis/v1/safer-fmcsa-dot-gov/carriers/get-sms-safety-records
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/safer-fmcsa-dot-gov/carriers/get-sms-safety-records`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/safer-fmcsa-dot-gov.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "safer-fmcsa-dot-gov.carriers.get-sms-safety-records",
  "method": "POST",
  "path": "/apis/v1/safer-fmcsa-dot-gov/carriers/get-sms-safety-records",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "usdot_number": "2796384"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "basic": {
              "description": "Restrict the export to one BASIC (the site's Download focus). Default all. crash_indicator exports crashes only.\n\nProvider reference: allowed values [\"all\", \"unsafe_driving\", \"hos_compliance\", \"driver_fitness\", \"drugs_alcohol\", \"vehicle_maintenance\", \"hm_compliance\", \"crash_indicator\"].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "all",
                  "unsafe_driving",
                  "hos_compliance",
                  "driver_fitness",
                  "drugs_alcohol",
                  "vehicle_maintenance",
                  "hm_compliance",
                  "crash_indicator"
                ]
              }
            },
            "continuation": {
              "description": "Opaque cursor from a previous call's meta.page.next_cursor (the record offset); omit for the first page.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "usdot_number": {
              "description": "USDOT number (digits) or an SMS /SMS/Carrier/{dot}/ URL.",
              "type": "string"
            }
          },
          "required": [
            "usdot_number"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/safer-fmcsa-dot-gov.json POST /apis/v1/safer-fmcsa-dot-gov/carriers/get-sms-safety-records
openapi: 3.1.0
info:
  description: ''
  title: FMCSA SAFER and SMS carrier registry
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    safer-fmcsa-dot-gov:
      description: ''
      title: FMCSA SAFER and SMS carrier registry
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 6b659525cfa540179bbae271780805248fe642a3f7d9b6b6880372bf1d95d269
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/safer-fmcsa-dot-gov/carriers/get-carrier-snapshot
    - /apis/v1/safer-fmcsa-dot-gov/carriers/get-sms-overview
    - /apis/v1/safer-fmcsa-dot-gov/carriers/get-sms-safety-records
    - /apis/v1/safer-fmcsa-dot-gov/carriers/search-carriers
    - /apis/v1/safer-fmcsa-dot-gov/carriers/search-sms-carriers
    - /apis/v1/safer-fmcsa-dot-gov/carriers/suggest-sms-carrier-names
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:37b376621a1218fa806272ac1b99ffc2b7bc0eee0556fd74bd52a80973e9a88a
    facts_hash: 6b659525cfa540179bbae271780805248fe642a3f7d9b6b6880372bf1d95d269
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: safer-fmcsa-dot-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/safer-fmcsa-dot-gov/carriers/get-sms-safety-records:
    post:
      tags:
        - FMCSA SAFER and SMS carrier registry
      summary: Get sms safety records
      description: >-
        You need the individual inspections, violations or crashes behind a
        carrier's SMS totals.
      operationId: safer-fmcsa-dot-gov.carriers.get-sms-safety-records
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  usdot_number: '2796384'
            schema:
              additionalProperties: true
              properties:
                basic:
                  description: >-
                    Restrict the export to one BASIC (the site's Download
                    focus). Default all. crash_indicator exports crashes only.


                    Provider reference: allowed values ["all", "unsafe_driving",
                    "hos_compliance", "driver_fitness", "drugs_alcohol",
                    "vehicle_maintenance", "hm_compliance", "crash_indicator"].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - all
                      - unsafe_driving
                      - hos_compliance
                      - driver_fitness
                      - drugs_alcohol
                      - vehicle_maintenance
                      - hm_compliance
                      - crash_indicator
                continuation:
                  description: >-
                    Opaque cursor from a previous call's meta.page.next_cursor
                    (the record offset); omit for the first page.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                usdot_number:
                  description: USDOT number (digits) or an SMS /SMS/Carrier/{dot}/ URL.
                  type: string
              required:
                - usdot_number
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-04.
                  summary: Official provider example
                  value:
                    basic:
                      code: 0
                      name: All
                    count: 4
                    crashes: []
                    inspections:
                      - hazmat_inspection: false
                        inspection_date: '2025-11-19'
                        level: 2
                        placardable_hazmat_vehicle_inspection: false
                        report_number: WI2346000341
                        report_state: WI
                        time_weight: 2
                        vehicles:
                          - license_number: TS62324
                            license_state: WI
                            unit: 1
                            unit_type: Truck Tractor
                            vin: 1XP7DB9X05D871994
                          - license_number: '843357'
                            license_state: WI
                            unit: 2
                            unit_type: Semi-Trailer
                            vin: 1W1MAFYW94A239062
                        violations:
                          - basic: Vehicle Maint.
                            code: 393.11B-CSSRR
                            convicted_of_different_charge: false
                            description: >-
                              Conspicuity Systems - Trailers, side retro
                              reflective sheeting inadequate on vehicle
                              manufactured on or after December 1, 1993
                            out_of_service: false
                            time_severity_weight: 3
                            unit: '2'
                          - basic: Vehicle Maint.
                            code: 396.3A1-BALR
                            convicted_of_different_charge: false
                            description: Air Brake - Fails air loss rate test
                            out_of_service: true
                            time_severity_weight: 6
                            unit: '1'
                          - basic: Vehicle Maint.
                            code: 396.3A1-BALAC
                            convicted_of_different_charge: false
                            description: Brake - Audible air leak from a brake chamber
                            out_of_service: false
                            time_severity_weight: 4
                            unit: '1'
                          - basic: Vehicle Maint.
                            code: 393.9A-LTSI
                            convicted_of_different_charge: false
                            description: >-
                              Lighting - Turn signal - Any inoperative on the
                              rearmost vehicle.
                            out_of_service: true
                            time_severity_weight: 8
                            unit: '2'
                          - basic: Vehicle Maint.
                            code: 393.9A-LSML
                            convicted_of_different_charge: false
                            description: Lighting - Side marker lamp(s) inoperative
                            out_of_service: false
                            time_severity_weight: 2
                            unit: '2'
                          - basic: Vehicle Maint.
                            code: 393.9A-LSLIWR
                            convicted_of_different_charge: false
                            description: >-
                              Lighting - Stop lamps - Both inoperative when
                              required to be on
                            out_of_service: true
                            time_severity_weight: 8
                            unit: '2'
                          - basic: Vehicle Maint.
                            code: 393.9A-LIL
                            convicted_of_different_charge: false
                            description: Lighting - Identification lamp(s) inoperative
                            out_of_service: false
                            time_severity_weight: 2
                            unit: '2'
                          - basic: Vehicle Maint.
                            code: 393.95A1
                            convicted_of_different_charge: false
                            description: >-
                              Emergency Equipment - Fire Extinguishers - no fire
                              extinguisher present or not properly rated.
                            out_of_service: false
                            time_severity_weight: 2
                            unit: '1'
                          - basic: Vehicle Maint.
                            code: 393.55D2-B
                            convicted_of_different_charge: false
                            description: >-
                              Air Brake - ABS malfunction lamp defective on
                              truck-tractor manufactured on or after March 1,
                              2001 for towed vehicle.
                            out_of_service: false
                            time_severity_weight: 4
                            unit: '2'
                          - basic: Vehicle Maint.
                            code: 393.55D1-B
                            convicted_of_different_charge: false
                            description: >-
                              Air Brake - ABS malfunction lamp defective on
                              truck-tractor manufactured on or after March 1,
                              1997 and each single unit CMV on or after 1998.
                            out_of_service: false
                            time_severity_weight: 4
                            unit: '1'
                      - hazmat_inspection: false
                        inspection_date: '2025-12-17'
                        level: 2
                        placardable_hazmat_vehicle_inspection: false
                        report_number: WI2346000402
                        report_state: WI
                        time_weight: 2
                        vehicles:
                          - license_number: TS62322
                            license_state: WI
                            unit: 1
                            unit_type: Truck Tractor
                            vin: 1XP5DB9X25N856835
                          - license_number: '869490'
                            license_state: WI
                            unit: 2
                            unit_type: Semi-Trailer
                            vin: 1W1MAF1AX2A235615
                        violations:
                          - basic: Unsafe Driving
                            code: 392.2-SLLS3
                            convicted_of_different_charge: false
                            description: >-
                              State/Local Laws - Speeding 11-14 miles per hour
                              over the speed limit
                            out_of_service: false
                            time_severity_weight: 7
                            unit: D
                          - basic: Vehicle Maint.
                            code: 396.3A1-BALR
                            convicted_of_different_charge: false
                            description: Air Brake - Fails air loss rate test
                            out_of_service: true
                            time_severity_weight: 6
                            unit: '2'
                          - basic: Vehicle Maint.
                            code: 396.3A1-BALAC
                            convicted_of_different_charge: false
                            description: Brake - Audible air leak from a brake chamber
                            out_of_service: false
                            time_severity_weight: 4
                            unit: '2'
                          - basic: Vehicle Maint.
                            code: 393.55E-B
                            convicted_of_different_charge: false
                            description: >-
                              Air Brake - ABS malfunction lamp defective on
                              trailers manufactured on or after March 1, 1998
                            out_of_service: false
                            time_severity_weight: 4
                            unit: '2'
                          - basic: Vehicle Maint.
                            code: 393.55D1-B
                            convicted_of_different_charge: false
                            description: >-
                              Air Brake - ABS malfunction lamp defective on
                              truck-tractor manufactured on or after March 1,
                              1997 and each single unit CMV on or after 1998.
                            out_of_service: false
                            time_severity_weight: 4
                            unit: '1'
                      - hazmat_inspection: false
                        inspection_date: '2026-03-10'
                        level: 3
                        placardable_hazmat_vehicle_inspection: false
                        report_number: WI2486003052
                        report_state: WI
                        time_weight: 3
                        vehicles:
                          - license_number: TS62322
                            license_state: WI
                            unit: 1
                            unit_type: Truck Tractor
                            vin: 1XP5DB9X25N856835
                          - license_number: '869490'
                            license_state: WI
                            unit: 2
                            unit_type: Semi-Trailer
                            vin: 1W1MAF1AX2A235615
                        violations:
                          - basic: Unsafe Driving
                            code: 392.2-SLLS2
                            convicted_of_different_charge: false
                            description: >-
                              State/Local Laws - Speeding 6-10 miles per hour
                              over the speed limit
                            out_of_service: false
                            time_severity_weight: 4
                            unit: D
                      - hazmat_inspection: false
                        inspection_date: '2026-03-20'
                        level: 3
                        placardable_hazmat_vehicle_inspection: false
                        report_number: WI2551002051
                        report_state: WI
                        time_weight: 3
                        vehicles:
                          - license_number: TS60803
                            license_state: WI
                            unit: 1
                            unit_type: Truck Tractor
                            vin: 1XP5DB9X1XN481491
                          - license_number: '838601'
                            license_state: WI
                            unit: 2
                            unit_type: Semi-Trailer
                            vin: 5WSAA4320EN045238
                        violations:
                          - basic: Unsafe Driving
                            code: 392.2-SLLS2
                            convicted_of_different_charge: false
                            description: >-
                              State/Local Laws - Speeding 6-10 miles per hour
                              over the speed limit
                            out_of_service: false
                            time_severity_weight: 4
                            unit: D
                          - basic: Unsafe Driving
                            code: 392.2-SLLTCD
                            convicted_of_different_charge: false
                            description: >-
                              State/Local Laws - Failed to obey a traffic
                              control device - Permanent or Temporary - e.g.,
                              safety official, signal, sign, light, lane
                              marking, other
                            out_of_service: false
                            time_severity_weight: 5
                            unit: D
                    observed_at_ms: 1791157546174
                    offset: 0
                    page_size: 50
                    serious_violations: []
                    snapshot_date: '2026-08-28'
                    source_url: >-
                      https://ai.fmcsa.dot.gov/SMS/Carrier/2796384/Download.aspx?BASIC=0&FileType=XML
                    total_crashes: 0
                    total_inspections: 4
                    total_records: 4
                    total_serious_violations: 0
                    usdot_number: '2796384'
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            SMS per-carrier export
            (ai.fmcsa.dot.gov/SMS/Carrier/{dot}/Download.aspx, XML): every
            roadside inspection of the 24-month record with its vehicles and
            violations, every reportable crash with its vehicle, and serious
            violations, optionally restricted to one BASIC. The site exports
            everything at once (several MB for large fleets); this function
            pages the records client-side, 50 per call, inspections first, then
            crashes, then serious violations, with totals of each and the
            export's snapshot date.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `basic` | object |  |

            | `count` | number |  |

            | `crashes` | object[] |  |

            | `inspections` | object[] |  |

            | `observed_at_ms` | number |  |

            | `offset` | number |  |

            | `page_size` | number |  |

            | `serious_violations` | object[] |  |

            | `snapshot_date` | string | ISO date from the export file name (the
            monthly SMS snapshot). |

            | `source_url` | string |  |

            | `total_crashes` | number |  |

            | `total_inspections` | number |  |

            | `total_records` | number |  |

            | `total_serious_violations` | number |  |

            | `usdot_number` | string |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.