Home / API
The Autonautics Lite API
Read your fleet's vehicles, positions, trips and alerts from your own systems. The API only reads: it can never change anything.
Your own key
An Admin makes one in the app, under Account → API keys. It reads your own fleet, and makes 60 calls a minute.
Try it first, on our demo
Ask for a demo: with your demo login comes a demo key, by email. It reads the demo's made-up vehicles, makes 10 calls a minute, and stops when the demo ends.
Book a demoCalls · What you can read · Times, periods and pages · Errors · Data push
Reading your data with an API key
Your own systems, such as an ERP, a dispatch tool or a spreadsheet, can read your fleet’s data. Make a key under Account → API keys, and send it with every call. A key only reads: it can never change anything.
Every call is a GET to https://fleet.example.com/api/public/v1, with the key in the Authorization header. The answer is JSON. For example, your vehicles:
KEY=lk_EXAMPLEyourkey curl -H "Authorization: Bearer $KEY" "https://fleet.example.com/api/public/v1/vehicles"
and the trips of one day:
curl -H "Authorization: Bearer $KEY" \ "https://fleet.example.com/api/public/v1/trips?from=2026-10-01T00:00:00Z&to=2026-10-02T00:00:00Z"
Keep the key on your server, like a password. Don’t put it in a web page: browsers can’t call the API, and anyone who sees the page would see the key. If a key may have leaked, revoke it and make a new one.
What you can read
GET /vehicles
Your vehicles, by registration. Takes: page.
id- The vehicle’s id, for the other calls.
registration- Such as KA01AB1234.
group- Its depot or branch, or null.
makeModel, driverName- Only when switched on under Vehicles → Settings; null when not filled in.
GET /positions/latest
Each vehicle’s latest position, by registration. All but the vehicle are null for one that has never reported. Takes: vehicleId (optional), page.
vehicleId, registration- The vehicle.
time- When the tracker took the position, in UTC.
latitude, longitude- Where it was, in degrees.
speedKmh, course- Its speed in km/h, and its heading in degrees from north.
GET /trips
Trips under way in the period, as on the Trips report: by registration, then oldest first. Takes: from, to, vehicleId (optional), page.
vehicleId, registration, group- The vehicle.
startTime, endTime- When the trip started and ended, in UTC.
start, end- Where, as latitude and longitude.
distanceKm, maxSpeedKmh- How far it went, and its top speed.
GET /alerts
Alerts raised in the period, oldest first. Takes: from, to, page.
id, time- The alert, and when it happened, in UTC.
type- geofence, speeding or offline.
vehicleId, registration- The vehicle.
what, where- As the Alerts screen says it, such as “Left Okhla depot”.
acknowledgedAt- When someone acknowledged it, or null.
Times, periods and pages
- Times are in UTC, written like
2026-10-01T08:05:00Z. Givefromandtothe same way. - A period is at most 31 days, and goes back only as far as your history is kept. The answer’s
historyFromsays where that starts. - Lists come in pages of up to 500 in
data. WhennextPageisn’t null, ask again withpage=that number. - Each key can make 60 calls a minute.
Errors
An error answers with its status and a title saying what was wrong.
400- Something asked is wrong, such as a missing period or one longer than 31 days. The answer says what.
401- No key, a wrong key, a revoked key, or your account is suspended. The answer is the same for each.
403- API access, or the screen the data comes from, isn’t part of your plan. Ask us to switch it on.
404- That vehicle isn’t one of yours.
429- More than 60 calls in a minute with one key, or many wrong keys from one address. Wait for the seconds in the Retry-After header.
Data push: positions sent to your server
With Data push, each of your vehicles’ positions is sent to your own server as it arrives, so your systems don’t have to ask. Our team switches it on and enters your server’s address, which must start with https://. You get a secret with it, once: keep it on your server, like a password.
Each position is a POST to your address, with a JSON body, times in UTC:
{
"id": "5f1c2b9e-8d4a-4c3e-9b7a-2e6f0a1d3c55",
"registration": "KA01AB1234",
"imei": "356307040000000",
"time": "2026-11-23T16:43:10Z",
"latitude": 12.9716,
"longitude": 77.5946,
"speedKmh": 42,
"course": 180,
"ignition": true
}
id- The position’s own id. A position sent again, after a call that timed out, has the same id: use it to spot a repeat.
registration- The vehicle’s registration.
imei- The IMEI of the vehicle’s tracker.
time- When the tracker took the position, in UTC.
latitude, longitude- Where, in degrees.
speedKmh- Speed, in km/h.
course- Heading, in degrees from north.
ignition- Whether the ignition was on:
trueorfalse, ornullwhen the tracker doesn’t report it.
Answer with any 2xx status within 10 seconds. Any other status, no answer, or a redirect counts as not delivered, and the position is sent again.
Checking that a call is genuine
Each call carries two headers: X-Push-Timestamp, when it was sent, in Unix seconds, and X-Push-Signature, sha256= and the HMAC-SHA256, in hex, of the timestamp, a full stop and the body, made with your secret. Work it out the same way and compare: refuse the call if they differ, or if the timestamp is more than 5 minutes old, so an old copy sent again is refused. For example, in Node.js:
import { createHmac, timingSafeEqual } from 'node:crypto'
// body: the request's body exactly as it arrived, before it is parsed
function isGenuine(body, timestamp, signature, secret) {
const age = Math.abs(Date.now() / 1000 - Number(timestamp))
if (!(age <= 300)) return false
const hmac = createHmac('sha256', secret)
.update(timestamp + '.' + body)
.digest('hex')
const expected = Buffer.from('sha256=' + hmac)
const given = Buffer.from(signature)
return expected.length === given.length && timingSafeEqual(expected, given)
}
If you gave our team a key of your own for your server, each call also carries it, in the header you named, such as X-API-Key.
When your server is down
The positions are kept and sent again, with longer waits each time, up to 5 minutes. Each vehicle’s positions arrive in time order: while one is waiting, the later ones wait behind it.
When positions have been waiting, they come in batches: a JSON array of up to 500 of the same records, in time order for each vehicle. Then they come one per call again, as they arrive.
A position that couldn’t be sent within 24 hours is dropped, and our team is told which ones.