Reading your own data through the API
Available in: 📱 App · 💻 Web portal
An API key lets you pull your RideBase data into other programs — a smart home, a spreadsheet, a dashboard or a script of your own. Typical cases: "tell me when the inspection is due", "show the odometer on the wall tablet", "pull fuel-ups into a spreadsheet every month".
What a key can do — and what it cannot​
A key can only read. Nothing is created, changed or deleted through the API.
Visible are:
- Vehicles you are the owner of
- Your own trips on those vehicles
Not visible are:
- Vehicles someone shared with you
- Vehicles of an organisation or workshop (those have their own organisation keys)
- Trips of other people on your vehicles — not even when you can see them in the app
- Trips marked as secret
- The original trips of merged trips (they would be counted twice)
Creating a key​
In the app​
- Profile → Security → API-Zugänge (API access)
- Zugang erstellen (create key)
- Enter a name (e.g. "Home Assistant") so you recognise it later
- Pick the permissions (see below)
- Optionally pick individual vehicles
- Choose how long it stays valid
- Confirm with your password
In the web portal​
- Sicherheit (Security, from the user block at the bottom left)
- Section API-Zugänge → Zugang erstellen
- Continue as above
The key is shown exactly once. Copy it right away — we only store it hashed and cannot show it to you again. If you lose it, revoke it and create a new one.
Permissions​
Every key only gets the permissions you grant it:
| Permission | What it opens |
|---|---|
| Fahrzeuge (vehicles) | Name, licence plate, odometer, master data |
| Fahrten (trips) | Times, distance, purpose, start and end location |
| Streckenverlauf (route) | The path travelled as coordinates — a movement profile |
| Timeline-Einträge (entries) | Fuel-ups, service, odometer readings, files |
| Kosten (costs) | Amounts in entries and recurring costs |
| Servicepläne (service plans) | Intervals and due dates |
| Komponenten (components) | Fitted parts and their wear |
Two permissions are deliberately separate:
- Route is not part of "trips". A logbook needs the distance in kilometres, not the path travelled.
- Costs is a filter, not an addition: without it a key returns the same service entry, just without amounts — and expenses do not show up at all.
Limiting a key to individual vehicles​
While creating a key you can select individual vehicles. The key then only sees those. Select none and it covers all of your vehicles, including ones you add later.
Validity​
The default is 90 days. You can also choose 30 days, one year, or unlimited. A key without an expiry date stays valid until you revoke it — convenient for a permanent automation, but worth keeping an eye on.
The list shows when each key was last used. A key that has not fetched anything for months is usually no longer needed.
Revoking​
Revoking takes effect immediately and cannot be undone. A program using that key stops working — create a new one if you still need it.
Keys also end automatically:
- when the expiry date is reached
- when you reset your password — this revokes all personal keys. A password reset is the way back after a suspicion; a key surviving it would be exactly the door that is supposed to close. The reset email says so.
- when you delete your account
Using it​
The key belongs in the X-Api-Key header:
curl -H "X-Api-Key: rb_user_..." \
https://api.ridebase.app/public/v1/me/vehicles
To find out which user or organisation a key belongs to:
curl -H "X-Api-Key: rb_user_..." \
https://api.ridebase.app/public/v1/me
All endpoints, fields and filters are listed in the API documentation.
Limits​
- 60 requests per minute per key
- Lists return at most 500 entries per request; page through them with
limitandoffset - At most 10 valid keys at a time
Security​
Treat the key like a password:
- Not in public repositories, shared documents or screenshots
- One separate key per program — then you can revoke one without disturbing the others
- Only grant the permissions the program actually needs
If a key goes missing: revoke it, create a new one, swap it in the program.
Keys for organisations​
If you own an organisation or are an administrator there, you can additionally create organisation keys (app: Organisationen → API keys; portal: Organisation). Those open members, vehicles and business trips of the organisation — not your private data. The reverse holds too: a personal key cannot reach organisation data.