Users and access

Share

Share devices and groups

Share device location

POST
https://demo.traccar.org/api/share/device

Body

application/x-www-form-urlencoded
deviceIdintegerrequired
expirationstring<date-time>required

Response

200OKstring

OK

Response fields text/plain
string
403Forbidden

Sharing is disabled or temporary user

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Share group devices

POST
https://demo.traccar.org/api/share/group

Body

application/x-www-form-urlencoded
groupIdintegerrequired
expirationstring<date-time>required

Response

200OKstring

OK

Response fields text/plain
string
403Forbidden

Sharing is disabled or temporary user

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)