Overview
Get all routes (ride history) for the currently authenticated user. Returns a paginated list of routes ordered by date (most recent first).Authentication
Required: This endpoint requires Auth0 authentication. Include a valid JWT token in the Authorization header. The routes returned will automatically be filtered to only include routes belonging to the authenticated user.Query Parameters
Page number for pagination (1-based indexing)
Number of routes per page (default: 10)
Response
Returns an array of route objects:Array of route history objects, ordered by date_started (most recent first)
Request Example
cURL
JavaScript
Python
Response Example
Error Responses
User Not Found (404)
Unauthorized (401)
Pagination
- Results are paginated to improve performance
- Default page size is 10 routes
- Use
pageparameter to navigate through pages - Use
limitparameter to adjust page size (max recommended: 50) - Routes are ordered by
date_startedin descending order (newest first)
Notes
- Only routes belonging to the authenticated user are returned
- The
eventfield includes complete event details if the route was associated with an event - Weather data is automatically fetched at the time of route creation
- Images are limited to the most recent 50 per route
- The
completedfield indicates whether the user finished the ride - Distance is in meters, duration is in seconds
- Temperature is in Fahrenheit, wind speed is in mph
Use Cases
- Activity History: Display a user’s ride history in their profile
- Statistics Dashboard: Calculate total distance, rides, etc.
- Route Replay: Visualize past rides on a map
- Challenge Progress: Show which routes contributed to challenges
- Weather Insights: Analyze riding patterns based on weather conditions