Authentication
Trade organization, email, and password for a token — or use an API key for server-to-server feeds. Part of the documentation.
POST/auth/login
Signs in with organization, email, and password, and returns a bearer token valid for 12 hours. A missing organization means the default organization. One shared 401 covers unknown organization, unknown email, and wrong password, so the endpoint reveals neither which organizations nor which addresses exist.
curl -X POST https://filodos.gr/filodos-dashboard/api/scoring/auth/login \
-H 'Content-Type: application/json' \
-d '{"organization": "acme", "email": "feed@acme.example", "password": "…"}'
{"access_token": "eyJhbGciOi…", "token_type": "bearer",
"refresh_token": "rt_…"}
The answer also has a refresh_token. Use it to get a new token without the password. See POST /auth/refresh.
| Field | Required | Notes |
|---|---|---|
organization | No | Your organization slug, lowercase. Blank means the default organization. The name filodos reaches the default organization (the slug avlo) when no other organization has that slug. |
email | Yes | Matched case-insensitively inside your organization. |
password | Yes | Store it in a vault, never in code. |
client | No | Send web from a browser app to get a refresh token that lasts 30 days. Other clients get 90 days. |
POST/auth/refresh
Trades a refresh token for a new access token and a new refresh token. The old refresh token stops working. Each use moves the end of the refresh window forward. A user who opens the app every day stays signed in until the user signs out.
curl -X POST https://filodos.gr/filodos-dashboard/api/scoring/auth/refresh \
-H 'Content-Type: application/json' \
-d '{"refresh_token": "rt_…"}'
{"access_token": "eyJhbGciOi…", "token_type": "bearer",
"refresh_token": "rt_…"}
Save the new refresh_token at once. Send each refresh token only one time. If a refresh token is used a second time, the server ends all sign-ins of that device. A parallel second call within 30 seconds only gets a 401.
One shared 401 covers a refresh token that is unknown, expired, or revoked. When you get a 401, ask the user for the password again. A network error or a 5xx error is not final. Try again later with the same refresh token.
Store the refresh token in the Keychain (iOS), in encrypted storage (Android), or in the browser storage of your app. Never put it in a URL or a log. A password change by an administrator ends all refresh tokens of that user.
POST/auth/logout
Ends one sign-in on one device. Send the refresh token of that device. The server revokes it, and the next refresh gets a 401. The call answers 204 with no body, also for an unknown token.
curl -X POST https://filodos.gr/filodos-dashboard/api/scoring/auth/logout \
-H 'Content-Type: application/json' \
-d '{"refresh_token": "rt_…"}'
An access token that the server already issued stays valid until it expires, up to 12 hours.
GET/auth/me
Returns who the credential belongs to: id, email, role, organization, and — for driver logins — the visible vehicle ids. Use it after sign-in to confirm the role and the organization before you read further.
curl https://filodos.gr/filodos-dashboard/api/scoring/auth/me \
-H "Authorization: Bearer eyJhbGciOi…"
Use the credential
Send the token or key on every other call:
Authorization: Bearer <access_token or filodos_… key>
A 401 means the credential is missing, expired, revoked, or deleted — sign in again or replace the key. A client that holds a refresh token calls POST /auth/refresh after a 401, then repeats the call once. Long-running feeds should use an API key instead of a sign-in token. Never put the credential in the URL: URLs land in access logs.
Keys that start with avlo_ do not work from 2026-10-11. All keys start with filodos_.