Terminal Integration API
NEW ELD WORLD endpoints for withterminal.com
Base URL
https://mystage.neweldworld.comAuthentication
Get an API key from POST /terminal/create-api-key/, then pass it as a query parameter on every request:
?api_key=your_api_keyIntegration Flow
- 1Create API KeyPOST /terminal/create-api-key/ with username + password to get your api_key
- 2Fetch CompanyGET /terminal/company/ to retrieve company profile data
- 3Get CoordinatesGET /terminal/coordinates/ for live vehicle positions and trip history
- 4Pull HistoryGET /terminal/history/ for up to 6 months of GPS points and engine on/off events, page by page
Endpoints
- POST
/Authenticate with username/password and receive an API key for subsequent requests.api/ web/ v1/ terminal/ create-api-key/ - GET
/Vehicle GPS coordinates + location history. Filterable by VIN, vehicle ID, and date range.api/ web/ v1/ terminal/ coordinates/ - GET
/Up to 6 months of GPS points and engine power-up / shut-down events for one vehicle, cursor-paginated.api/ web/ v1/ terminal/ history/ - GET
/Company profile: name, USDOT, timezone, phone.api/ web/ v1/ terminal/ company/
Create API key#
/ api/ web/ v1/ terminal/ create-api-key/Authenticates a user and returns an API key. Use the returned key as the api_key parameter in all subsequent requests.
Request Body
usernamerequiredstringpasswordrequiredstringExample Request
curl -X POST "https://mystage.neweldworld.com/api/web/v1/terminal/create-api-key/" \
-H "Content-Type: application/json" \
-d '{"username": "manager@example.com", "password": "your_password"}'Example Response
{
"guid": "00000000-0000-0000-0000-000000000002",
"key": "manager@example.com:example-trucking-llc-0123456789abcdef012345",
"company": "00000000-0000-0000-0000-000000000001",
"client": "manager@example.com"
}Response Fields
guidstring (UUID)keystringcompanystring (UUID)clientstringCoordinates#
/ api/ web/ v1/ terminal/ coordinates/Returns current GPS position, driver assignment, and trip history for fleet vehicles. location_history lists the start point of each driving segment between start_date and end_date — the last 6 days when no dates are given. For every GPS point and engine on/off events, use /terminal/history/.
Query Parameters
api_keyrequiredstringvinstringvehicle_idstringstart_datedatetimeend_datedatetimeOmit vin/vehicle_id to get all vehicles.
Example Requests
All vehicles, current position only:
curl "https://mystage.neweldworld.com/api/web/v1/terminal/coordinates/?api_key=your_api_key"Single vehicle with trip history for a date range:
curl "https://mystage.neweldworld.com/api/web/v1/terminal/coordinates/?api_key=your_api_key&vin=YOUR_VIN_HERE&start_date=2025-08-01+04:00:00&end_date=2025-08-08+04:00:00"Example Response
[
{
"vehicle_id": "unit001",
"make": "PETERBILT",
"model": "579",
"year": 2022,
"vin": "1XPBD49X0ND000001",
"odometer": 124500,
"start_point": "3.2 mi W of Nashville, TN",
"speed": 0.0,
"coordinates": [
{
"latitude": "36.16589000000000",
"longitude": "-86.78440000000000",
"associated_date": "2025-08-15T10:22:00.000000Z"
}
],
"driver": {
"username": "driver01",
"first_name": "John",
"last_name": "Smith",
"phone_number": "5550001234"
},
"location_history": [
{
"latitude": 36.16589000000000,
"longitude": -86.78440000000000,
"associated_date": "2025-08-01T07:16:32.242146Z"
},
{
"latitude": 36.16589500000000,
"longitude": -86.78441000000000,
"associated_date": "2025-08-01T14:21:15.018615Z"
}
]
}
]Response Fields
vehicle_idstringmakestringmodelstringyearnumbervinstringodometernumberstart_pointstringspeednumbercoordinatesarraydriverobjectlocation_historyarraycoordinates[ ] object
latitudestringlongitudestringassociated_datestring (ISO 8601)driver object
usernamestringfirst_namestringlast_namestringphone_numberstringlocation_history[ ] object
latitudenumber | nulllongitudenumber | nullassociated_datestring (ISO 8601)History#
/ api/ web/ v1/ terminal/ history/Returns up to 6 months (183 days) of history for one vehicle: GPS points in location_data, thinned on the server to one point per interval seconds, and engine power-up / shut-down events in power_logs, which are never thinned. Both lists come in the same response, oldest first, and every page covers the same span of time for both.
Results are cursor-paginated — see Pagination below. The vehicle_id and vin of every vehicle your key can see come from /terminal/coordinates/.
Requests from Postman are refused with 403 — any request whose User-Agent starts with PostmanRuntime or that carries a Postman-Token header. Use curl, HTTPie or your own client, or in Postman turn off Settings → General → Send Postman Token header and set your own User-Agent.
Query Parameters
api_keyrequiredstringvehicle_idstringvinstringstart_datedatetime (ISO 8601)end_datedatetime (ISO 8601)intervalintegerpage_sizeintegercursorstringWith a cursor, the vehicle, window and interval come from the cursor: send only api_key, cursor and, optionally, page_size — anything else is ignored.
Example Requests
First page — last 7 days, one GPS point per minute:
curl "https://mystage.neweldworld.com/api/web/v1/terminal/history/?api_key=your_api_key&vehicle_id=unit001&interval=60&page_size=1000"First page — by VIN, from a given date until now:
curl "https://mystage.neweldworld.com/api/web/v1/terminal/history/?api_key=your_api_key&vin=YOUR_VIN_HERE&start_date=2026-11-01T00:00:00Z"Every next page — only the key and the cursor from the previous response:
curl "https://mystage.neweldworld.com/api/web/v1/terminal/history/?api_key=your_api_key&cursor=NEXT_CURSOR&page_size=1000"Dates are ISO 8601. For an offset other than Z, URL-encode the plus sign: +05:00 → %2B05:00.
Example Response
{
"vehicle": {
"vehicle_id": "unit001",
"vin": "1XPBD49X0ND000001",
"make": "PETERBILT",
"model": "579",
"year": 2022
},
"start_date": "2026-11-01T08:30:12.451230Z",
"end_date": "2026-11-08T08:30:12.451230Z",
"interval": 60,
"next_cursor": ".eJxVjMEKgzAQRP9lz...:1v2Xk9:Qy7fN...",
"power_logs": [
{
"type": "power_up",
"start_time": "2026-11-01T11:02:07.118904Z",
"latitude": 36.16271,
"longitude": -86.83891,
"odometer": 124500,
"engine_hours": 8112.4,
"location": "3.2 mi W of Nashville, TN",
"driver": {
"username": "driver01",
"first_name": "John",
"last_name": "Smith"
}
}
],
"location_data": [
{
"start_time": "2026-11-01T11:06:41.502117Z",
"latitude": 36.16302,
"longitude": -86.85677,
"odometer": 124501,
"engine_hours": 8112.5,
"location": "4.2 mi W of Nashville, TN",
"speed": 38,
"driver": {
"username": "driver01",
"first_name": "John",
"last_name": "Smith"
}
}
]
}Response Fields
vehicleobjectstart_datestring (ISO 8601)end_datestring (ISO 8601)intervalnumbernext_cursorstring | nullpower_logsarraylocation_dataarrayvehicle object
vehicle_idstringvinstringmakestringmodelstringyearnumberpower_logs[ ] object
typestringstart_timestring (ISO 8601)latitudenumber | nulllongitudenumber | nullodometernumber | nullengine_hoursnumber | nulllocationstringdriverobject | nulllocation_data[ ] object
start_timestring (ISO 8601)latitudenumberlongitudenumberodometernumberengine_hoursnumberlocationstringspeednumberdriverobject | nulldriver object
usernamestringfirst_namestringlast_namestringPagination
- Send the first request with
api_key,vehicle_idorvin, and the window,intervalandpage_sizeyou want. - Save
power_logsandlocation_datafrom the response. - If
next_cursorisnull, you are done. - Otherwise send
api_key=…&cursor=<next_cursor>(pluspage_sizefor a size other than 1000) and go back to step 2.
- Short pages are normal. A page can hold fewer records than
page_size— even none — and still carry a cursor. Stop only whennext_cursorisnull. - The window is fixed by the first page.
end_datedefaults to that moment; points that arrive later belong to the next walk. - Cursors are signed and expire after 30 days. A modified or expired cursor answers 400. Do not keep cursors between runs — keep
end_dateinstead (see Keeping in Sync). - Retries are safe. Repeating a request with the same cursor does no harm.
Walking a 6-month window in Python:
import time
import requests
BASE = "https://mystage.neweldworld.com/api/web/v1/terminal/history/"
def walk(api_key, vehicle_id, **window):
params = {"api_key": api_key, "vehicle_id": vehicle_id, "page_size": 5000, **window}
while True:
r = requests.get(BASE, params=params, timeout=60)
if r.status_code == 429:
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
r.raise_for_status()
page = r.json()
yield page["power_logs"], page["location_data"]
if not page["next_cursor"]:
return
params = {"api_key": api_key, "cursor": page["next_cursor"], "page_size": 5000}
for power_logs, points in walk("your_api_key", "unit001", start_date="2026-05-15T00:00:00Z"):
save(power_logs, points)Keeping in Sync
Store the end_date of each completed walk. Next time, request start_date=<previous end_date> and no end_date: the new window starts exactly where the last one ended and runs to now. A record whose start_time equals the boundary can appear in both runs — de-duplicate on vehicle, list and start_time if that matters.
Errors
400401403404429Good to Know
- One vehicle per request. For a fleet, take the vehicles from
/terminal/coordinates/and walk them one by one, or a few at a time — the 300 requests/minute limit is per API key. - At most 183 days back and at most 5,000 records per page.
- GPS time is receipt time: a point's
start_timeis when it reached our server. Points the app uploads late (after being offline) carry the late time. - Power logs come from the driver's current log: later log corrections can add, move or remove events.
- At
interval=60a 6-month pull is at most ~264,000 points per vehicle;interval=0can return millions — use it only when you need every point. - Units: speed in km/h, odometer in miles, engine hours in hours, coordinates in WGS-84 decimal degrees, all times in UTC.
Company#
/ api/ web/ v1/ terminal/ company/Returns the company profile associated with the given API key: name, DOT number, timezone, and contact info.
Query Parameters
api_keyrequiredstringExample Request
curl "https://mystage.neweldworld.com/api/web/v1/terminal/company/?api_key=your_api_key"Example Response
{
"guid": "00000000-0000-0000-0000-000000000001",
"name": "Example Trucking LLC",
"phone_number": "+1 (555) 000-1234",
"usdot": "0000001",
"avatar": null,
"home_terminal_timezone": "US/Central"
}Response Fields
guidstring (UUID)namestringphone_numberstringusdotstringavatarstring | nullhome_terminal_timezonestring