Users and access

Users

User management

Fetch a list of Users

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

Parameters

userIdstringquery

Can only be used by admin or manager users

limitintegerquery

Limit the number of returned results

offsetintegerquery

Offset for pagination

keywordstringquery

Search keyword filter (searches name, email)

Response

OK

Response fields application/json
Show child attributes
idinteger<int64>

Unique user identifier

namestring

User display name

emailstring

Email address used for login and notifications

phonestring | null

Contact phone number for alerts

readonlyboolean

When true, the user cannot change settings

administratorboolean

Grants full administrative privileges when enabled

mapstring | null

Preferred default map layer for the user

latitudenumber

Default map center latitude for this user

longitudenumber

Default map center longitude for this user

zoominteger

Default map zoom level on login

passwordstring

Password for user authentication

coordinateFormatstring | null

Preferred coordinate display format

disabledboolean

Indicates whether the user account is disabled

expirationTimestring<date-time> | null

in ISO 8601 format. eg. 1963-11-22T18:30:00Z

deviceLimitinteger

Maximum number of devices the user can manage

userLimitinteger

Maximum number of subordinate users

deviceReadonlyboolean

Restricts user from modifying device attributes

limitCommandsboolean

Prevents user from sending unsupported commands

fixedEmailboolean

Locks the email field to avoid changes

poiLayerstring | null

External POI layer configured for the user

attributesobject

Additional custom user attributes

400Bad Request

No Permission

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Create a User

POST
https://demo.traccar.org/api/users

Body

application/json
idinteger<int64>

Unique user identifier

namestring

User display name

emailstring

Email address used for login and notifications

phonestring | null

Contact phone number for alerts

readonlyboolean

When true, the user cannot change settings

administratorboolean

Grants full administrative privileges when enabled

mapstring | null

Preferred default map layer for the user

latitudenumber

Default map center latitude for this user

longitudenumber

Default map center longitude for this user

zoominteger

Default map zoom level on login

passwordstring

Password for user authentication

coordinateFormatstring | null

Preferred coordinate display format

disabledboolean

Indicates whether the user account is disabled

expirationTimestring<date-time> | null

in ISO 8601 format. eg. 1963-11-22T18:30:00Z

deviceLimitinteger

Maximum number of devices the user can manage

userLimitinteger

Maximum number of subordinate users

deviceReadonlyboolean

Restricts user from modifying device attributes

limitCommandsboolean

Prevents user from sending unsupported commands

fixedEmailboolean

Locks the email field to avoid changes

poiLayerstring | null

External POI layer configured for the user

attributesobject

Additional custom user attributes

Response

200OKUser

OK

Response fields application/json
idinteger<int64>

Unique user identifier

namestring

User display name

emailstring

Email address used for login and notifications

phonestring | null

Contact phone number for alerts

readonlyboolean

When true, the user cannot change settings

administratorboolean

Grants full administrative privileges when enabled

mapstring | null

Preferred default map layer for the user

latitudenumber

Default map center latitude for this user

longitudenumber

Default map center longitude for this user

zoominteger

Default map zoom level on login

passwordstring

Password for user authentication

coordinateFormatstring | null

Preferred coordinate display format

disabledboolean

Indicates whether the user account is disabled

expirationTimestring<date-time> | null

in ISO 8601 format. eg. 1963-11-22T18:30:00Z

deviceLimitinteger

Maximum number of devices the user can manage

userLimitinteger

Maximum number of subordinate users

deviceReadonlyboolean

Restricts user from modifying device attributes

limitCommandsboolean

Prevents user from sending unsupported commands

fixedEmailboolean

Locks the email field to avoid changes

poiLayerstring | null

External POI layer configured for the user

attributesobject

Additional custom user attributes

400Bad Request

Bad request

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Generate TOTP secret

POST
https://demo.traccar.org/api/users/totp

Response

200OKstring

OK

Response fields text/plain
string
400Bad Request

Bad request

Fetch a User

GET
https://demo.traccar.org/api/users/{id}

Parameters

idintegerrequiredpath

Response

200OKUser

OK

Response fields application/json
idinteger<int64>

Unique user identifier

namestring

User display name

emailstring

Email address used for login and notifications

phonestring | null

Contact phone number for alerts

readonlyboolean

When true, the user cannot change settings

administratorboolean

Grants full administrative privileges when enabled

mapstring | null

Preferred default map layer for the user

latitudenumber

Default map center latitude for this user

longitudenumber

Default map center longitude for this user

zoominteger

Default map zoom level on login

passwordstring

Password for user authentication

coordinateFormatstring | null

Preferred coordinate display format

disabledboolean

Indicates whether the user account is disabled

expirationTimestring<date-time> | null

in ISO 8601 format. eg. 1963-11-22T18:30:00Z

deviceLimitinteger

Maximum number of devices the user can manage

userLimitinteger

Maximum number of subordinate users

deviceReadonlyboolean

Restricts user from modifying device attributes

limitCommandsboolean

Prevents user from sending unsupported commands

fixedEmailboolean

Locks the email field to avoid changes

poiLayerstring | null

External POI layer configured for the user

attributesobject

Additional custom user attributes

401Unauthorized

Unauthorized

404Not Found

Not found

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Update a User

PUT
https://demo.traccar.org/api/users/{id}

Body

application/json
idinteger<int64>

Unique user identifier

namestring

User display name

emailstring

Email address used for login and notifications

phonestring | null

Contact phone number for alerts

readonlyboolean

When true, the user cannot change settings

administratorboolean

Grants full administrative privileges when enabled

mapstring | null

Preferred default map layer for the user

latitudenumber

Default map center latitude for this user

longitudenumber

Default map center longitude for this user

zoominteger

Default map zoom level on login

passwordstring

Password for user authentication

coordinateFormatstring | null

Preferred coordinate display format

disabledboolean

Indicates whether the user account is disabled

expirationTimestring<date-time> | null

in ISO 8601 format. eg. 1963-11-22T18:30:00Z

deviceLimitinteger

Maximum number of devices the user can manage

userLimitinteger

Maximum number of subordinate users

deviceReadonlyboolean

Restricts user from modifying device attributes

limitCommandsboolean

Prevents user from sending unsupported commands

fixedEmailboolean

Locks the email field to avoid changes

poiLayerstring | null

External POI layer configured for the user

attributesobject

Additional custom user attributes

Parameters

idintegerrequiredpath

Response

200OKUser

OK

Response fields application/json
idinteger<int64>

Unique user identifier

namestring

User display name

emailstring

Email address used for login and notifications

phonestring | null

Contact phone number for alerts

readonlyboolean

When true, the user cannot change settings

administratorboolean

Grants full administrative privileges when enabled

mapstring | null

Preferred default map layer for the user

latitudenumber

Default map center latitude for this user

longitudenumber

Default map center longitude for this user

zoominteger

Default map zoom level on login

passwordstring

Password for user authentication

coordinateFormatstring | null

Preferred coordinate display format

disabledboolean

Indicates whether the user account is disabled

expirationTimestring<date-time> | null

in ISO 8601 format. eg. 1963-11-22T18:30:00Z

deviceLimitinteger

Maximum number of devices the user can manage

userLimitinteger

Maximum number of subordinate users

deviceReadonlyboolean

Restricts user from modifying device attributes

limitCommandsboolean

Prevents user from sending unsupported commands

fixedEmailboolean

Locks the email field to avoid changes

poiLayerstring | null

External POI layer configured for the user

attributesobject

Additional custom user attributes

400Bad Request

Bad request

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Delete a User

DELETE
https://demo.traccar.org/api/users/{id}

Parameters

idintegerrequiredpath

Response

204No Content

No Content

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)