Shipment Data Extraction (Text, Image)

Changed on

Transform raw email data into accurate shipment information and remove manual data entry from your quote and book process. By far the easiest way to leverage powerful AI capabilities to supercharge your workflows.

Send the email subject, its body and any number of attachments in one request (attachments format). The type / data format is deprecated: end of maintenance 2 May 2027. Errors are never billed.

post/ai/shipment

Request

  • Base URL
    https://api.cargoai.co/solutions
  • URL
    https://api.cargoai.co/solutions/ai/shipment
  • Auth
    none required

Headers

x-api-keystring required

Request body

OR

Example request

{
  "attachments": [
    {
      "name": "packing.csv",
      "contentType": "text/csv",
      "content": "cGNzLGxlbmd0aCx3aWR0aCxoZWlnaHQsa2cKMiwxNDAsMTAwLDEyMCwyNTAK"
    }
  ]
}

Response

Extracted shipment

originstring
destinationstring
datestring
loadTypestring
weightnumber
volumenumber

Example response

{
  "origin": "CDG",
  "destination": "BKK",
  "date": "2024-10-28",
  "loadType": "PER",
  "weight": 500,
  "volume": 2,
  "dimensions": [
    {
      "pieces": 2,
      "length": 140,
      "width": 100,
      "height": 120,
      "weight": 250,
      "weightUnit": "kg",
      "stackable": "false"
    }
  ],
  "attachments": [
    {
      "name": "packing.csv",
      "detectedType": "csv",
      "status": "processed"
    }
  ]
}

Changes