Overview
Get a list of all events created by a specific user. Returns events ordered by creation date (newest first).Authentication
Required: This endpoint requires Auth0 authentication. Include a valid JWT token in the Authorization header.Path Parameters
The Auth0 user ID (sub claim) of the user whose events you want to retrieve (e.g.,
"google-oauth2|115315991711634062214")Response
Returns an object with a count and array of events created by the user:Total number of events created by this user
Array of event objects created by the user, ordered by creation date (newest first)
Request Example
cURL
JavaScript
Python
Response Example
Error Responses
User Not Found (404)
Unauthorized (401)
Notes
- Events are returned in reverse chronological order (newest first)
- All events created by the user are returned, regardless of their status (active, past, or future)
- The
created_byfield in each event will match theuser_idpath parameter - Both destination-based and route-based events are included
- Leisure routes (permanent routes with no time restrictions) are included
- Empty arrays are returned for users who haven’t created any events
Use Cases
- User Profile Pages: Display a user’s created events on their profile
- Event Management: Allow users to view and manage their own events
- Analytics: Track how many events a user has created
- Portfolio: Showcase a user’s contributions to the cycling community