Skip to content

User Profiles

Manage user profile information separate from authentication data.

Get Profile

curl -X GET http://localhost:8000/api/sso/v1/users/USER_ID/profile \
  -H "Authorization: Bearer TOKEN"

Update Profile

curl -X PATCH http://localhost:8000/api/sso/v1/users/USER_ID/profile \
  -H "Authorization: Bearer TOKEN" \
  -d '{
    "first_name": "John",
    "last_name": "Doe",
    "avatar_url": "https://...",
    "metadata": {
      "department": "Engineering",
      "phone": "+1234567890"
    }
  }'

Profile Schema

{
  "user_id": "user:abc123",
  "first_name": "John",
  "last_name": "Doe",
  "avatar_url": "https://...",
  "metadata": {...},
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-10-04T10:00:00Z"
}