For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Mismatch Alerts

Creates trailer mismatch observation alerts for the authenticated customer from standalone USDOT numbers, standalone MC numbers, and paired MC/USDOT records. Endpoint: POST /mismatch-observations.

Authentication

  • Include your Access-Token and x-api-key in the header of your requests.

Permissions

The external-api-mismatch-observations permission is required to access this endpoint.

Endpoint

  • URL: https://api.genlogs.io/mismatch-observations

  • Method: POST

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.

  • Content-Type (string, required): application/json. Without it the request is rejected with a 400.

Request body:

At least one of usdots, mcs, or pairs must contain a value. Any property not listed here is rejected with a 400.

  • usdots (array of strings, optional): Standalone USDOT numbers. Each one creates one mismatch alert.

  • mcs (array of strings, optional): Standalone MC numbers. Each one creates one mismatch alert.

  • pairs (array of objects, optional): Paired MC/USDOT records. Each object creates one combined mismatch alert with both values. Both mc and usdot are required in each object.

  • alert_name (string, optional): Name of the alert(s) for your reference. Omitted or blank names are stored as null.

  • logos (array of strings, optional): Trailer logos to watch, up to 20. Each value must be one of the values returned by the List logos endpoint. Values are case-insensitive and stored in lowercase.

How alerts are counted

  • One alert is created for each USDOT in usdots, each MC in mcs, and each object in pairs.

  • USDOT and MC values must be numeric. Leading zeros are removed. A non-numeric value rejects the whole request with a 400.

  • Empty values are skipped and not counted.

  • Repeated values in the same request are created only once.

  • Values are not compared with alerts you already have, so sending the same request twice creates the alerts twice.

Request Example:

Response:

  • 201 Created: Returns a confirmation message and the number of alerts created.

  • 400 Bad Request: Missing or invalid request parameters.

  • 401 Unauthorized: Missing, invalid, or expired Access-Token.

  • 403 Forbidden: The API key is missing or invalid, or your user does not have the required permission.

  • 500 Internal Server Error: Server error while processing the request.

Response Body:

201 Created

The request example above creates 6 alerts: 3 USDOTs, 2 MCs, and 1 pair.

400 Bad Request

A property that is not allowed was sent:

The body was not sent as JSON (for example, without the Content-Type: application/json header):

401 Unauthorized

403 Forbidden

Create mismatch observation alerts

post

Creates one alert row per standalone USDOT or MC value, and one combined row per item in pairs. At least one of usdots, mcs, or pairs must be non-empty. alert_name is optional; when omitted or blank, stored as null. logos is optional and, when present, is normalized to lowercase, stored in logos, and used by mismatch detection. Logo matching remains case-insensitive. Unknown JSON properties are rejected. USDOT and MC values must be numeric (leading zeros are removed); empty values are skipped and repeated values in the same request are created once. Values are not compared with existing alerts. Requires Content-Type: application/json.

Authorizations
Access-TokenstringRequired
x-api-keystringRequired
Body
usdotsstring[]Optional

USDOT numbers (strings). Each non-empty entry creates one alert.

Default: []
mcsstring[]Optional

MC numbers (strings). Each non-empty entry creates one alert.

Default: []
logosstring[] · nullableOptional

Optional trailer logos list. Each value must be a non-empty string. Values are trimmed, deduplicated, and stored in lowercase format. Matching against the logos catalog.

alert_namestring · nullableOptional

Optional display name; omitted or whitespace-only is stored as null.

Responses
201

Mismatch alerts created successfully.

application/json
messagestringRequiredExample: Mismatch alerts created successfully.
post/mismatch-observations
POST /mismatch-observations HTTP/1.1
Host: api.genlogs.io
Access-Token: YOUR_API_KEY
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "usdots": [
    "1234567"
  ],
  "mcs": []
}
{
  "message": "Mismatch alerts created successfully.",
  "data": {
    "created": 3
  }
}

Last updated