Overview
Upload a profile photo for the authenticated user. The image is uploaded to Google Cloud Storage and the user’simage_url field is automatically updated.
Authentication
Requires Auth0 authentication. Users can only upload photos for their own profile.Upload Profile Photo
Request Body
Send asmultipart/form-data:
Image file to upload (JPEG, PNG, GIF, WebP)
Rate Limiting
- Limit: 100 image uploads per 24 hours per user
- Status Code: 429 Too Many Requests when limit exceeded
Response
Returns the updated user public profile information.User’s Auth0 ID
User’s display name
Public URL of the uploaded profile image
ISO 8601 timestamp of user registration
Example
cURL
Success Response (200 OK)
Error Responses
400 Bad Request - Missing fileNotes
- Images are stored in Google Cloud Storage in the
usersfolder - The previous profile photo URL is replaced (old image is not automatically deleted from GCS)
- Supported formats depend on your GCS configuration (typically JPEG, PNG, GIF, WebP)
- Recommended image size: 500x500 pixels or larger
- Maximum file size depends on server configuration (typically 10-50 MB)
- The rate limit is shared across all image uploads (events, destinations, routes, profile)
Related Endpoints
GET /user/- Get current user profile informationPATCH /user/- Update user profile fields (including manually settingimage_url)