traccar api token

Hello,
I was able to get a traccar client position in a map using the api with a token generatd on the traccar account dashboaed, but it expired
How can I get the token automatically for the api use without generating manually peridically

regards,

Anton Tananaev6 years ago

Tokens don't expire.

Ok so if I generate a token (in the permissions popup) I can use it for the api undefinitely? I get the impression it was temporary because the token I got yesterday was not accepted today in my website (I am using demo server for the moment)

Anton Tananaev6 years ago

It works until you change it to something else. There is no expiration.

Lpk naura3 years ago

hi Anton, how to make token with api, without login?

Anton Tananaev3 years ago

You'll need a login, obviously.