Public API

Real-time fleet tracking · REST · JSON

Choose your API

Base URL

https://mystage.neweldworld.com

Authentication

Pass your API key as a query parameter on every request:

?api_key=your_api_key

Get your key from the dashboard → Settings → API Keys.

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.

Endpoints

Vehicle coordinates#

GET/api/web/v1/vehicle/coordinates/

Returns current GPS coordinates, speed, odometer, and location description for every vehicle in your fleet. Use vehicle_id or vin to narrow results to a single vehicle.

Query Parameters

api_keyrequiredstring
Your API key
vehicle_idstring
Filter by power unit number (e.g. unit001)
vinstring
Filter by Vehicle Identification Number (e.g. 1XPBD49X0ND000001)

Example Requests

All vehicles:

bash
curl "https://mystage.neweldworld.com/api/web/v1/vehicle/coordinates/?api_key=your_api_key"

Single vehicle by VIN:

bash
curl "https://mystage.neweldworld.com/api/web/v1/vehicle/coordinates/?api_key=your_api_key&vin=1XPBD49X0ND000001"

Single vehicle by ID:

bash
curl "https://mystage.neweldworld.com/api/web/v1/vehicle/coordinates/?api_key=your_api_key&vehicle_id=unit001"

Example Response

json
[
  {
    "vehicle_id": "unit001",
    "make": "PETERBILT",
    "model": "579",
    "year": 2022,
    "vin": "1XPBD49X0ND000001",
    "odometer": 124500,
    "start_point": "3.2 mi W of Nashville, TN",
    "speed": 49.0,
    "coordinates": [
      {
        "latitude": "36.16589000000000",
        "longitude": "-86.78440000000000",
        "associated_date": "2025-08-15T10:22:00.000000Z"
      }
    ]
  }
]

Response Fields

vehicle_idstring
Vehicle power unit number
makestring
Manufacturer (e.g. PETERBILT, FREIGHTLINER)
modelstring
Vehicle model
yearnumber
Manufacturing year
vinstring
Vehicle Identification Number (17 chars)
odometernumber
Total mileage in miles
start_pointstring
Human-readable current location (e.g. "3.2 mi W of Nashville, TN")
speednumber
Current speed in km/h. 0.0 when vehicle is stopped.
coordinatesarray
Latest GPS fix — see coordinates object below

coordinates[ ] object

latitudestring
Latitude (decimal degrees, up to 14 decimal places)
longitudestring
Longitude (decimal degrees, up to 14 decimal places)
associated_datestring (ISO 8601)
UTC timestamp of this GPS reading

Fleet snapshot#

GET/api/web/v1/vehicle/coordinates/location-data/

Returns a complete fleet snapshot in a single call: all registered vehicles, all drivers, and current location data for each vehicle. Useful for building a live map or fleet dashboard.

Query Parameters

api_keyrequiredstring
Your API key

Example Request

bash
curl "https://mystage.neweldworld.com/api/web/v1/vehicle/coordinates/location-data/?api_key=your_api_key"

Example Response

json
{
  "vehicles": [
    {
      "guid": "00000000-0000-0000-0000-000000000001",
      "power_unit_number": "unit001",
      "make": "PETERBILT",
      "model": "579",
      "year": 2022,
      "license_plate_no": "ABC1234",
      "vin": "1XPBD49X0ND000001"
    }
  ],
  "drivers": [
    {
      "guid": "00000000-0000-0000-0000-000000000002",
      "username": "driver01",
      "profile": {
        "profile_picture": null,
        "first_name": "John",
        "last_name": "Smith",
        "email": "driver01@example.com",
        "phone_number": "5550001234"
      }
    }
  ],
  "location_data": [
    {
      "vehicle_id": "unit001",
      "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"
        }
      ]
    }
  ]
}

Response Fields

vehicles[ ]

guidstring (UUID)
Unique vehicle identifier
power_unit_numberstring
Vehicle unit number used as vehicle_id in other endpoints
makestring
Manufacturer
modelstring
Vehicle model
yearnumber
Manufacturing year
license_plate_nostring
License plate number
vinstring
Vehicle Identification Number

drivers[ ]

guidstring (UUID)
Unique driver identifier
usernamestring
Driver login username
profile.first_namestring
First name
profile.last_namestring
Last name
profile.emailstring
Email address
profile.phone_numberstring
Phone number
profile.profile_picturestring | null
Avatar URL or null

location_data[ ]

vehicle_idstring
Matches power_unit_number from vehicles[]
vinstring
Vehicle Identification Number
odometernumber
Total mileage in miles
start_pointstring
Human-readable current location
speednumber
Current speed in km/h
coordinatesarray
Latest GPS fix (latitude, longitude, associated_date)

HTTP Status Codes

200
OK
Request successful
400
Bad Request
Invalid query parameter or format
401
Unauthorized
Missing or invalid api_key
403
Forbidden
Request sent from Postman (see the note above)
404
Not Found
Vehicle or resource not found
429
Too Many Requests
Rate limit exceeded, slow down
500
Server Error
Internal error, try again later