Skip to content

Send commands to a tracker

On this page, we will guide you through the process of sending commands to your trackers.

⚠️ Currently, this feature is exclusively available for trackers registered using Targa.

To get started, you'll need to register a tracker.

Once registered and validated as connected, you can send commands to it.

We offer commands for lock/unlock doors and block/unblock engine.

Sending a command

Send a POST request with the command to execute:

POST /commands/tracker/<tracker_oid>/send_command?command_name=DOOR_LOCKED

The response is 204 No Content if the command was sent successfully.

Checking command status

Once the command is sent, poll the command status endpoint to check whether the tracker executed it:

GET /commands/tracker/<tracker_oid>/command_status?command_name=DOOR_LOCKED

If the command was executed, you'll receive 200 OK with:

json
{
  "msg": "Command Executed",
  "data": {
    "command_status": true,
    "datetime": "2023-10-27T09:08:57.000000+00:00"
  }
}

If the tracker has not yet executed the command, the response will be 204 No Content.

Available commands

CommandDescription
DOOR_LOCKEDLock the tracker's doors
DOOR_UNLOCKEDUnlock the tracker's doors
ENGINE_BLOCK_ONBlock the tracker's engine
ENGINE_BLOCK_OFFUnblock the tracker's engine

For any questions, please get in touch with us at support@astaraconnect.com.

Astara Connect API Documentation