Overview
Retrieve and update the authenticated user’s profile information.Authentication
Requires Auth0 authentication. Users can only access and update their own profile.Get User Profile
Response
User’s Auth0 ID (primary key)
User’s email address
User’s display name
URL of the user’s profile image stored in Google Cloud Storage
User’s home address
Coordinates of the user’s home location
User’s work address
Coordinates of the user’s work location
ISO 8601 timestamp of when the user registered
Example
cURL
Success Response (200 OK)
Error Responses
404 Not Found - User not foundUpdate User Profile
Request Body
All fields are optional. Only include the fields you want to update.User’s display name
URL of the user’s profile image. Use
POST /user/upload-photo/ to upload a new image.User’s home address
Coordinates of the user’s home location (format: “longitude,latitude”)
User’s work address
Coordinates of the user’s work location (format: “longitude,latitude”)
Response
Status of the update operation (“success”)
List of field names that were updated
Example
cURL
Success Response (200 OK)
Error Responses
400 Bad Request - Invalid JSON or validation errorNotes
- The
auth0_user_id,email, anddate_registeredfields are read-only and cannot be updated - All address and coordinate fields are optional and can be set to
null - For uploading profile photos, use the dedicated
POST /user/upload-photo/endpoint which handles image upload to GCS and automatically updates theimage_urlfield - Coordinate format should be “longitude,latitude” as a string
Related Endpoints
POST /user/upload-photo/- Upload a profile photoGET /user/stats/- Get user statisticsGET /user/routes/- Get user’s route history