Developers
Your data, through the same API we use.
The web app talks to a REST API. You can call it with a token, with exactly the rights of the user who made it. Read devices, positions, events and reports, send commands, and get live updates over a WebSocket.
Choose a package in the portal; you see the first invoice before you confirm.
The API
What you can do with the API
Six things developers ask for first.
- Read
Devices, groups, positions, events, geofences, drivers and maintenance, as JSON.
- Report
Route, trip, stop and summary reports for a day or a month, as JSON, CSV or Excel.
Reports and exports - Command
Send commands to a device. A command to an offline device is queued and delivered when it reconnects.
Remote commands - Follow
Open one WebSocket and receive positions, device status changes and alerts as they happen.
- Forward
Send alert events to your own system as JSON.
Webhooks - Export
Positions as CSV, GPX, KML or KMZ. Everything stored about a person as one ZIP.
Privacy and data export
Documentation
Four places to start
First call
A token and one line of curl
Sign in, ask for a token with that session, and send it as a bearer token. The answer is a JSON list of your devices; the fields depend on the device.
On this installation the API is served at https://app.alongpin.com/api.
The three calls, step by step# Create a token once, then call the API with it
curl -H "Authorization: Bearer $TOKEN" \
"https://YOUR_HOST/api/devices?limit=2"Before you build
Things to know before you build
- Paging
- Page long lists with
limitandoffset; leave out attribute maps withexcludeAttributes=trueif you do not need them. - Queued commands
- Sending to an offline device answers 202 and delivers when the device reconnects; 200 means delivered.
- Password confirmation
- Exports and erasure need a fresh password confirmation; a reauth token lasts five minutes.
- Minimal messages
- Email, SMS and webhooks do not carry locations by default.
- Units
- Dates are ISO-8601 instants. Speed is in knots, distance in metres, durations in milliseconds, fuel in litres.
- Errors
- Errors are RFC 9457 problem details (
application/problem+json).
FAQ
Developer questions
Is there a sandbox?
How do I authenticate a server-side integration?
Can I get live positions without polling?
/api/socket. The API reference shows the connection and the messages.Can I forward alerts to my own system?
Can an AI assistant use the data?
How do I connect a tracker that is not in your list?
Get a token and make your first call
Create an account, or talk to us about your integration. Choose a package in the portal; you see the first invoice before you confirm.