v2
tms
v2
tms
carriers

Ai Parse Capacity

Parse natural language text or screenshot into carrier capacity form data.

Uses AI to extract lane or availability data from descriptions or screenshots and returns pre-fill data for the Add Lane / Add Truck forms.

post/v2/tms/carriers/{carrier_id}/ai-parse-capacity

Request

  • Base URL
    https://api.mentium.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

carrier_idstring required

Headers

mentium-workspace-idstring nullable

Request body

textstring nullable

Natural language description of the lane or availability

image_base64string nullable

Base64-encoded image (screenshot), max ~5 MB

capacity_type'lane' | 'availability' required

Type of capacity data to extract: 'lane' or 'availability'

current_carrier_namestring nullable

Name of the carrier whose page is currently open. Helps the AI distinguish carrier names from place names in ambiguous input.

available_carriersstring[] nullable

List of carrier names available in the system. The AI uses this to match fuzzy carrier references to exact names.

Example request

{
  "capacity_type": "lane",
  "text": "Dry van from Dallas TX to Chicago IL, preferred carrier, $2500 line haul"
}

Response

Successful Response

capacity_type'lane' | 'availability' required

Type of capacity data extracted

confidencenumber required

Overall confidence score (0-1)

warningsstring[]

Warnings about fields that couldn't be extracted

Changes

No recorded changes to this operation across all 2 revisions of this API.