The TrakIT Public API allows external systems to integrate with TrakIT for shipment tracking, asset location, document management, yard operations, and data retrieval.
Base URL: https://{your-trakit-domain}/api/public
All requests and responses use JSON. POST endpoints accept application/json unless otherwise noted (multipart/form-data for file uploads).
Most endpoints return a Result object with the following structure:
{
"Code": 0,
"Info": "",
"Scalar": null,
"RowsAffected": 0,
"RetInfo": null
}
Field Type Description
Code integer 0 = Success, 1 = No Action (client/validation error), 2 = Error (server error)
Info string Error message or informational text. Empty on success.
Scalar any Single return value (e.g. a boolean check or ID)
RowsAffected integer Number of records returned or affected
RetInfo object/array The primary return data payload
The API uses different authentication methods depending on the endpoint group:
Method Used By
APIKey Header GetShipment — pass the API key as a request header named APIKey
Bearer Token Yard endpoints (ExecuteMove, GetContainerPosition) - pass via Authorization: Bearer {key} header
Encrypted API Key (query string) GetAssetLocation, GetList, QueryReport, AdvReport — encrypted key passed as query parameter
Contact your TrakIT administrator to obtain an API key for your integration.
Click on an API below for more details:
GetShipment