Get Token From API

Ledza year ago

year ago i was able to get token from api by user and password and after login with domain.com?token=blablabla. now i cant get token. is ther any changes? i have v5.12

Anton Tananaeva year ago

You can still get token. It's on the preferences page.

Ledza year ago

no i mean get token from api call

Ledza year ago

i want to use traccar in iframe with autologin, without entering login data by user. thats why i need token.

Anton Tananaeva year ago

You can get it using the API as well. Official web app uses exactly the same API.

Ledza year ago

can you show me the docs how to get token? cz i tried to search in traccar api reference and cant find the example how to get token

Anton Tananaeva year ago

I don't know if it's in the docs, but you can just check what the official app calls.

Ledza year ago

Dear Anton, before i was using that from your old topic and it was working, but now i cant get token from this api.

https://www.traccar.org/forums/topic/user-tokens-in-v-53/

Opera Snapshot_2024-06-04_124546_www.traccar.org.png

Anton Tananaeva year ago

And what is the response from this API?