API


The API Keys section allows you to generate keys to access GPStoApp’s APIs for managing devices and retrieving device data.

Creating an API Key

  1. Navigate to the API Keys section in the dashboard.
  2. Click on Generate API Key.
  3. Copy and securely store the generated API key. It will not be shown again.

Using API Keys

API keys are required to authenticate API requests. Include the token in the header of your API calls.

Endpoints

  • Get Devices:
    • URL: https://api.gpstoapp.com/devices
    • Method: GET
    • Headers: Authorization: Bearer {API_KEY}
    • Body: Not required.
  • Get Device Data:
    • URL: https://api.gpstoapp.com/devicedata
    • Method: POST
    • Headers: Authorization: Bearer {API_KEY}
    • Body (example): {"imei": "350612078356019", "startDate": "2024-12-02T00:30:00Z", "endDate": "2024-12-03T23:59:00Z" }

      Notes

      • Ensure the API key is included in the header for all API calls.
      • Secure your API keys to prevent unauthorized access.