Get Token From API

Ledz 2 years 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 Tananaev 2 years ago

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

Ledz 2 years ago

no i mean get token from api call

Ledz 2 years ago

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

Anton Tananaev 2 years ago

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

Ledz 2 years 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 Tananaev 2 years ago

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

Ledz 2 years 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 Tananaev 2 years ago

And what is the response from this API?