Skip to main content

Get My Profile

Authentication Required: This endpoint requires a valid JWT token.
Authorization
string
required
Bearer token for authentication
GET /api/me/profile
Retrieve the authenticated user’s profile information.

Response

status
string
Response status (“success” or “error”)
message
string
Response message
data
object
Profile information
id
long
Profile ID
slug
string
Unique profile slug
fullName
string
Full name of the user
headline
string
Professional headline
bio
string
User biography
contactEmail
string
Contact email address
location
string
User location
avatarUrl
string
URL to profile avatar image
resumeUrl
string
URL to user’s resume/CV
curl -X GET https://api.portfoliohub.com/api/me/profile \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Update My Profile

Authentication Required: This endpoint requires a valid JWT token.
PUT /api/me/profile
Update the authenticated user’s profile information.

Request Body

fullName
string
required
Full name (max 120 characters)
headline
string
required
Professional headline (max 160 characters)
bio
string
required
User biography (max 5000 characters)
contactEmail
string
required
Contact email address (must be valid email, max 160 characters)
location
string
User location (max 100 characters)

Response

status
string
Response status (“success” or “error”)
message
string
Response message
data
object
Updated profile information (same structure as GET response)
curl -X PUT https://api.portfoliohub.com/api/me/profile \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "fullName": "John Doe",
    "headline": "Senior Full Stack Developer",
    "bio": "Passionate developer with extensive experience in modern web technologies...",
    "contactEmail": "[email protected]",
    "location": "San Francisco, CA"
  }'

Update Contact Email

Authentication Required: This endpoint requires a valid JWT token.
PUT /api/me/settings/contact-email
Update only the contact email address for the authenticated user.

Request Body

email
string
required
New contact email address (must be valid email format)

Response

status
string
Response status (“success” or “error”)
message
string
Response message
data
object
Updated profile information with new contact email
curl -X PUT https://api.portfoliohub.com/api/me/settings/contact-email \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]"
  }'

Build docs developers (and LLMs) love