Get Token From API

Ledz7 months 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 Tananaev7 months ago

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

Ledz7 months ago

no i mean get token from api call

Ledz7 months ago

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

Anton Tananaev7 months ago

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

Ledz7 months 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 Tananaev7 months ago

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

Ledz7 months 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 Tananaev7 months ago

And what is the response from this API?