just/mocks_
mockzilla.org →
Catalog /automotive /Traccar API

Traccar API

PROVIDER · Traccar SPEC v5.6 · OpenAPI 3.0.1 MOCK · LIVE
▸ TRY IT
https://api.justmocks.com/traccar
Open mock →

Mock the Traccar API in seconds. Open Source GPS Tracking Platform

[01]

About

overview

Mock the Traccar API as a turnkey Mockzilla sim with 61 OpenAPI endpoints, realistic JSON payloads, no upstream signup or sandbox keys. Open Source GPS Tracking Platform Methods: 23x GET, 14x POST, 12x DELETE, 12x PUT. Top resource groups: Commands, Notifications, Devices, Reports. Hit https://api.justmocks.com/traccar for the Mockzilla API Explorer landing and per-endpoint sample requests.

Endpoints
61 across 17 resource groups
Methods
GET 23 · POST 14 · PUT 12 · DEL 12 none deprecated
OpenAPI
3.0.1 spec version 5.6
Source spec
56 KB · YAML
[02]

Endpoints

61 operations · 17 resource groups
GET /attributes/computed
Attributes
Fetch a list of Attributes
Without params, it returns a list of Attributes the user has access to. Mocked via Mockzilla.
POST /attributes/computed
Attributes
Create an Attribute
DEL /attributes/computed/{id}
Attributes
Delete an Attribute
PUT /attributes/computed/{id}
Attributes
Update an Attribute
GET /calendars
Calendars
Fetch a list of Calendars
Without params, it returns a list of Calendars the user has access to
POST /calendars
Calendars
Create a Calendar
DEL /calendars/{id}
Calendars
Delete a Calendar
PUT /calendars/{id}
Calendars
Update a Calendar
GET /commands
Commands
Fetch a list of Saved Commands
Without params, it returns a list of Saved Commands the user has access to
POST /commands
Commands
Create a Saved Command
GET /commands/send
Commands
Fetch a list of Saved Commands supported by Device at the moment
Return a list of saved commands linked to Device and its groups, filtered by current Device protocol support
POST /commands/send
Commands
Dispatch commands to device
Dispatch a new command or Saved Command if body.id set
GET /commands/types
Commands
Fetch a list of available Commands for the Device or all possible Commands if Device ommited
DEL /commands/{id}
Commands
Delete a Saved Command
PUT /commands/{id}
Commands
Update a Saved Command
GET /devices
Devices
Fetch a list of Devices
Without any params, returns a list of the user's devices. Available as a Mockzilla mock endpoint.
POST /devices
Devices
Create a Device
DEL /devices/{id}
Devices
Delete a Device
PUT /devices/{id}
Devices
Update a Device
PUT /devices/{id}/accumulators
Devices
Update total distance and hours of the Device
GET /drivers
Drivers
Fetch a list of Drivers
Without params, it returns a list of Drivers the user has access to
POST /drivers
Drivers
Create a Driver
DEL /drivers/{id}
Drivers
Delete a Driver
PUT /drivers/{id}
Drivers
Update a Driver
GET /events/{id}
Events
GET /geofences
Geofences
Fetch a list of Geofences
Without params, it returns a list of Geofences the user has access to
POST /geofences
Geofences
Create a Geofence
DEL /geofences/{id}
Geofences
Delete a Geofence
PUT /geofences/{id}
Geofences
Update a Geofence
GET /groups
Groups
Fetch a list of Groups
Without any params, returns a list of the Groups the user belongs to
POST /groups
Groups
Create a Group
DEL /groups/{id}
Groups
Delete a Group
PUT /groups/{id}
Groups
Update a Group
GET /maintenance
Maintenance
Fetch a list of Maintenance
Without params, it returns a list of Maintenance the user has access to
POST /maintenance
Maintenance
Create a Maintenance
DEL /maintenance/{id}
Maintenance
Delete a Maintenance
PUT /maintenance/{id}
Maintenance
Update a Maintenance
GET /notifications
Notifications
Fetch a list of Notifications
Without params, it returns a list of Notifications the user has access to. Mockzilla mock: no signup, no API key.
POST /notifications
Notifications
Create a Notification
POST /notifications/test
Notifications
Send test notification to current user via Email and SMS
GET /notifications/types
Notifications
Fetch a list of available Notification types
DEL /notifications/{id}
Notifications
Delete a Notification
PUT /notifications/{id}
Notifications
Update a Notification
DEL /permissions
Permissions
Unlink an Object from another Object
POST /permissions
Permissions
Link an Object to another Object
GET /positions
Positions
Fetches a list of Positions
We strongly recommend using Traccar WebSocket API instead of periodically polling positions endpoint. Without any params, it returns a list of last known positions for all the user's Devices. from and to fields are not required with id.
GET /reports/events
Reports
Fetch a list of Events within the time period for the Devices or Groups
At least one deviceId or one groupId must be passed
GET /reports/route
Reports
Fetch a list of Positions within the time period for the Devices or Groups
At least one deviceId or one groupId must be passed
GET /reports/stops
Reports
Fetch a list of ReportStops within the time period for the Devices or Groups
At least one deviceId or one groupId must be passed
GET /reports/summary
Reports
Fetch a list of ReportSummary within the time period for the Devices or Groups
At least one deviceId or one groupId must be passed. Served by the Mockzilla mock runtime.
GET /reports/trips
Reports
Fetch a list of ReportTrips within the time period for the Devices or Groups
At least one deviceId or one groupId must be passed
GET /server
Server
Fetch Server information
PUT /server
Server
Update Server information
DEL /session
Session
Close the Session
GET /session
Session
Fetch Session information
POST /session
Session
Create a new Session
GET /statistics
Statistics
Fetch server Statistics
GET /users
Users
Fetch a list of Users
POST /users
Users
Create a User
DEL /users/{id}
Users
Delete a User
PUT /users/{id}
Users
Update a User