GET /api/profile/me
Retrieves the current authenticated user’s profile information.Authentication
Valid NextAuth session token required
Response
Unique identifier for the user
User’s display name (defaults to session user name if not customized)
URL to user’s avatar image (defaults to session user image if not customized)
User biography text (max 200 characters)
Authentication provider:
secondme, github, or googleURL to profile cover image
Indicates whether the user has customized their profile
ISO 8601 timestamp of last profile update
Example Response
Error Responses
PATCH /api/profile/me
Updates the authenticated user’s profile information.Authentication
Valid NextAuth session token required
Request Body
User’s display name (1-40 characters, required if provided)
Valid HTTP/HTTPS URL for avatar image
User biography (max 200 characters)
Valid HTTP/HTTPS URL for cover image
Example Request
Response
Returns
true if the update was successfulExample Response
Error Responses
The PATCH endpoint automatically marks the profile as
customized: true and sets the provider to the session user’s provider or defaults to ‘secondme’.