Server and monitoring

Server

Server information

Fetch Server information

GET
https://demo.traccar.org/api/server

Response

200OKServer

OK

Response fields application/json
idinteger<int64>

Unique server configuration identifier

registrationboolean

Whether new user registrations are allowed

readonlyboolean

When true only administrators can modify server-wide settings

deviceReadonlyboolean

Disallow device attribute changes for non-admins

limitCommandsboolean

Restrict command execution to supported protocol commands

mapstring

Default map layer identifier

bingKeystring

Bing Maps API key used when Bing is selected as a provider

mapUrlstring

Custom tile server URL template if configured

poiLayerstring

External point-of-interest layer configuration

announcementstring

Message displayed to all users in the web application

latitudenumber

Default map center latitude

longitudenumber

Default map center longitude

zoominteger

Default map zoom level

versionstring

Traccar server version string

forceSettingsboolean

Forces users to use the server-wide settings instead of their own

coordinateFormatstring

Default coordinate format for displaying positions

openIdEnabledboolean

Indicates whether OpenID authentication is available

openIdForceboolean

Require OpenID authentication for all users when enabled

attributesobject

Additional server-level configuration values

400Bad Request

Bad request

Update Server information

PUT
https://demo.traccar.org/api/server

Body

application/json
idinteger<int64>

Unique server configuration identifier

registrationboolean

Whether new user registrations are allowed

readonlyboolean

When true only administrators can modify server-wide settings

deviceReadonlyboolean

Disallow device attribute changes for non-admins

limitCommandsboolean

Restrict command execution to supported protocol commands

mapstring

Default map layer identifier

bingKeystring

Bing Maps API key used when Bing is selected as a provider

mapUrlstring

Custom tile server URL template if configured

poiLayerstring

External point-of-interest layer configuration

announcementstring

Message displayed to all users in the web application

latitudenumber

Default map center latitude

longitudenumber

Default map center longitude

zoominteger

Default map zoom level

versionstring

Traccar server version string

forceSettingsboolean

Forces users to use the server-wide settings instead of their own

coordinateFormatstring

Default coordinate format for displaying positions

openIdEnabledboolean

Indicates whether OpenID authentication is available

openIdForceboolean

Require OpenID authentication for all users when enabled

attributesobject

Additional server-level configuration values

Response

200OKServer

OK

Response fields application/json
idinteger<int64>

Unique server configuration identifier

registrationboolean

Whether new user registrations are allowed

readonlyboolean

When true only administrators can modify server-wide settings

deviceReadonlyboolean

Disallow device attribute changes for non-admins

limitCommandsboolean

Restrict command execution to supported protocol commands

mapstring

Default map layer identifier

bingKeystring

Bing Maps API key used when Bing is selected as a provider

mapUrlstring

Custom tile server URL template if configured

poiLayerstring

External point-of-interest layer configuration

announcementstring

Message displayed to all users in the web application

latitudenumber

Default map center latitude

longitudenumber

Default map center longitude

zoominteger

Default map zoom level

versionstring

Traccar server version string

forceSettingsboolean

Forces users to use the server-wide settings instead of their own

coordinateFormatstring

Default coordinate format for displaying positions

openIdEnabledboolean

Indicates whether OpenID authentication is available

openIdForceboolean

Require OpenID authentication for all users when enabled

attributesobject

Additional server-level configuration values

400Bad Request

Bad request

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Reverse geocode coordinates

GET
https://demo.traccar.org/api/server/geocode

Parameters

latitudenumber<double>requiredquery
longitudenumber<double>requiredquery

Response

200OKstring

OK

Response fields text/plain
string
401Unauthorized

Unauthorized

500Internal Server Error

Reverse geocoding is not enabled

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Fetch available timezones

GET
https://demo.traccar.org/api/server/timezones

Response

200OKArray<string>

OK

Response fields application/json
Array<string>
401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Upload a server file

POST
https://demo.traccar.org/api/server/file/{path}

Body

application/octet-stream
string<binary>

Parameters

pathstringrequiredpath

Response

200OK

OK

400Bad Request

Bad request

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Trigger garbage collection

GET
https://demo.traccar.org/api/server/gc

Response

200OK

OK

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Fetch cache diagnostics

GET
https://demo.traccar.org/api/server/cache

Response

200OKstring

OK

Response fields text/plain
string
401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Reboot the server process

POST
https://demo.traccar.org/api/server/reboot

Response

200OK

OK

400Bad Request

Bad request

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)