Skip to content

Traccar (6.10.0)

Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free demo servers. For production use you can install your own server or get a subscription service.

Download OpenAPI description
Overview
Languages
Servers
Mock server
https://docs2.mygpsapi.com/_mock/openapi
Doha Dynamics API (Production)
https://mygpsapi.com/api

Server

Server information

Operations

Session

User session management

Operations

Devices

Device management

Operations

Groups

Group management

Operations

Users

User management

Operations

Permissions

User permissions and other object linking

Operations

Link an Object to another Object

Request

Security
BasicAuth or ApiKey
Bodyapplication/jsonrequired
userIdinteger(int64)

User id, can be only first parameter

deviceIdinteger(int64)

Device id, can be first parameter or second only in combination with userId

groupIdinteger(int64)

Group id, can be first parameter or second only in combination with userId

geofenceIdinteger(int64)

Geofence id, can be second parameter only

notificationIdinteger(int64)

Notification id, can be second parameter only

calendarIdinteger(int64)

Calendar id, can be second parameter only and only in combination with userId

attributeIdinteger(int64)

Computed attribute id, can be second parameter only

driverIdinteger(int64)

Driver id, can be second parameter only

managedUserIdinteger(int64)

User id, can be second parameter only and only in combination with userId

commandIdinteger(int64)

Saved command id, can be second parameter only

curl -i -X POST \
  -u <username>:<password> \
  https://docs2.mygpsapi.com/_mock/openapi/permissions \
  -H 'Content-Type: application/json' \
  -d '{
    "userId": 0,
    "deviceId": 0,
    "groupId": 0,
    "geofenceId": 0,
    "notificationId": 0,
    "calendarId": 0,
    "attributeId": 0,
    "driverId": 0,
    "managedUserId": 0,
    "commandId": 0
  }'

Responses

No Content

Body

Unlink an Object from another Object

Request

Security
BasicAuth or ApiKey
Bodyapplication/jsonrequired
userIdinteger(int64)

User id, can be only first parameter

deviceIdinteger(int64)

Device id, can be first parameter or second only in combination with userId

groupIdinteger(int64)

Group id, can be first parameter or second only in combination with userId

geofenceIdinteger(int64)

Geofence id, can be second parameter only

notificationIdinteger(int64)

Notification id, can be second parameter only

calendarIdinteger(int64)

Calendar id, can be second parameter only and only in combination with userId

attributeIdinteger(int64)

Computed attribute id, can be second parameter only

driverIdinteger(int64)

Driver id, can be second parameter only

managedUserIdinteger(int64)

User id, can be second parameter only and only in combination with userId

commandIdinteger(int64)

Saved command id, can be second parameter only

curl -i -X DELETE \
  -u <username>:<password> \
  https://docs2.mygpsapi.com/_mock/openapi/permissions \
  -H 'Content-Type: application/json' \
  -d '{
    "userId": 0,
    "deviceId": 0,
    "groupId": 0,
    "geofenceId": 0,
    "notificationId": 0,
    "calendarId": 0,
    "attributeId": 0,
    "driverId": 0,
    "managedUserId": 0,
    "commandId": 0
  }'

Responses

No Content

Body

Positions

Retrieving raw location information

Operations

Events

Retrieving event information

Operations

Reports

Reports generation

Operations

Notifications

User notifications management

Operations

Geofences

Geofence management

Operations

Commands

Sending commands to devices and stored command management

Operations

Attributes

Computed attributes management

Operations

Drivers

Drivers management

Operations

Maintenance

Maintenance management

Operations

Calendars

Calendar management

Operations

Statistics

Retrieving server statistics

Operations