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.

terminal$ curl -H "Authorization: Bearer $TOKEN" \"https://YOUR_HOST/api/devices?limit=2"GET /api/devicesYOUR_HOST[{"id": 12,"name": "Van 12","status": "online"},{"id": 7,"name": "Truck 3","status": "offline"}]200 OKcontent-typeapplication/json$

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

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
curl
# 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 limit and offset; leave out attribute maps with excludeAttributes=true if 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?

A free trial, where the package has one, gives you an account where you can create devices, tokens and test data. You can also book a demo and we will show the API.

How do I authenticate a server-side integration?

Create a user with a narrow role, sign in once, create a token and store it as a secret. Tokens last up to 365 days and can be revoked. The API reference has the three calls.

Can I get live positions without polling?

Yes. Open the WebSocket at /api/socket. The API reference shows the connection and the messages.

Can I forward alerts to my own system?

Yes. Add the webhook channel to an alert rule through the API. The payload is short by default, and the address is set by your administrator. See webhooks.

Can an AI assistant use the data?

Only when your administrator enables the MCP endpoint. It is read-only and leaves out health data. See integrations and AI assistants.

How do I connect a tracker that is not in your list?

Let it connect, then approve it from the unverified devices list, as the device connection guide describes. If the protocol is not decoded, contact us.

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.

Chat with us